Skip to content

feat: added commodity prices page , redesigned commodity page

Praveena Veeranki requested to merge agri_hack into develop

🚀 Overview

Restructured the core navigation flow to prioritize a simplified "landing page" experience on the Home page while centralizing all search, price discovery, and voice intelligence on the Commodities page.

Key Changes

1. Home Page Simplification

  • Landing Focused: Removed the bilingual search bar and live price tickers to reduce initial cognitive load.
  • Improved Journey: Added a "Featured Crops" grid that provides a high-level overview of available commodities, guiding users to the Commodities page for detailed insights.
  • Hero Update: Redesigned the Hero section with clear Call-to-Actions for "Explore Commodities" and "Nearby Markets."

2. Commodities Page Intelligence Hub

  • Voice Discovery: Added prominent voice-search prompts (English & Telugu) to encourage hands-free navigation.
  • Enhanced Feedback: Implemented a new animated voiceStatus toast using describeIntent logic to provide real-time, localized feedback on speech recognition results.
  • Bilingual Search Hub: Consolidated all search logic into this page, making it the primary tool for market intelligence.

3. UI/UX & Theme Refinement

  • Theme Synchronization: Aligned the Commodities page background and typography with the Home page's light-theme sections for a unified look and feel.
  • Intelligent Data Display: Updated CommodityCard to conditionally hide "Modal Price" and "Price Range" sections when data is unavailable (N/A), resulting in a cleaner, data-driven interface.
  • Dark Hero / Light Body: Maintained the premium dark green Hero aesthetics while using a high-contrast light body for commodity listings to improve readability.

4. Technical Updates

  • Bun Migration: Finalized the transition to Bun. Removed package-lock.json, added bun.lock, and updated .gitignore.
  • Code Cleanup: Removed unused imports and legacy price-display components from the main page.tsx.

🛠️ Verification

  • Verified navigation from Home "Featured Crops" to filtered Commodities results.
  • Tested bilingual voice search intents (e.g., "Tomato prices in Guntur", "వరి ధరలు").
  • Confirmed responsive layout across mobile and desktop viewports.
  • Verified that cards without price data no longer show distracting "N/A" placeholders.

Merge request reports

Loading