You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Citations: Region filter dropdown is permanently empty #598
The Region filter dropdown on the Citations page is permanently empty — it only ever shows "All Regions". loadData creates const regions = new Set<string>() and never adds anything to it, so the if (regions.size > 0) guard is always false and availableRegions stays [] forever. The select still renders, offering a filter that can never be used.
The filter side works: picking a region (if one existed) would be applied server-side. Only the option discovery is dead.
The overview payload has no region data to read from: citations.ts#L67-L78 (CitationsOverview type) — region is selected from prompt_results in the queries but never aggregated into the response
Suggested fix
Two acceptable scopes — the issue can be closed with either:
Small: hide the Region select when availableRegions is empty (and delete the dead Set), so no unusable control is shown.
Complete: have getCitationsOverview return the distinct regions it already reads from prompt_results, populate availableRegions from that, and keep the select.
Acceptance criteria
Either the Region select is hidden when there are no options, or it lists the regions actually observed in the data.
Activity