Summary
src/components/BuyPolicyModal.tsx shows the computed oracle key for crop policies (e.g., rainfall:1.5,36.8:2026-06) in a read-only preview at line 209-213, but never fetches or displays the actual historical rainfall data for that location and period.
src/lib/api.ts line 146-150 already exposes fetchRainfallPreview(lat, lng, year, month):
export function fetchRainfallPreview(
lat: number, lng: number, year: number, month: number,
): Promise<{ value: string; confidence: number }> {
return get('/oracle/rainfall', { params: { lat, lng, year, month } });
}
Without showing this data in the modal, a user buying a rainfall parametric policy has no indication of what the historical baseline is for their chosen location and month. They cannot verify whether the oracle conditions are likely to trigger.
Acceptance criteria
Summary
src/components/BuyPolicyModal.tsxshows the computed oracle key for crop policies (e.g.,rainfall:1.5,36.8:2026-06) in a read-only preview at line 209-213, but never fetches or displays the actual historical rainfall data for that location and period.src/lib/api.tsline 146-150 already exposesfetchRainfallPreview(lat, lng, year, month):Without showing this data in the modal, a user buying a rainfall parametric policy has no indication of what the historical baseline is for their chosen location and month. They cannot verify whether the oracle conditions are likely to trigger.
Acceptance criteria
fetchRainfallPreviewresult inline (e.g.,"Avg rainfall: 45.2 mm · Confidence: 87%")