Skip to content

Feat/update filter fetch

Banuri Koushik Reddy requested to merge feat/update-filter-fetch into main

Title: Improve fetch reliability, cascading filters, and translations for Kisan Mandi

Summary: This MR refactors the data-fetch flow to reduce 429 rate-limit failures, restores stable cascading filters for state/district/commodity selection, and completes UI translation coverage across the search and pricing views. It also improves the display logic for summaries, tables, and state overviews.

Key Changes:

  • Added a queued API client with sequential request handling and 429-aware backoff.
  • Updated crop data fetching to avoid duplicate requests and preserve partial results on rate limits.
  • Refactored filter behavior so state, district, and commodity selections cascade correctly.
  • Kept Telangana and Andhra Pradesh visible in the selector while maintaining stable dropdown options.
  • Updated the main UI to use committed temp filters with explicit Fetch action.
  • Expanded translation coverage for English, Hindi, and Telugu.
  • Localized search, table pagination, price cards, and state overview labels.
  • Improved loading skeleton and summary layout.
  • Removed extra grid/card toggle confusion and kept the intended table view control.

Validation:

  • Syntax checks passed for edited files.
  • Main fetch path now serializes requests and handles 429 responses more safely.
  • UI renders with updated translations and filter flow.

Merge request reports

Loading