-
Notifications
You must be signed in to change notification settings - Fork 27
π Issue #28 β Implement AI Assistant Query HistoryΒ #57
Description
Harvest Finance will add a Query History feature for the AI Assistant. Contributors will implement functionality that stores and displays previous questions and AI responses, allowing farmers to review past advice and make informed decisions.
This enhances the LLM-powered killer feature, making it more usable, trackable, and trustworthy.
Objectives
Store all AI Assistant queries and responses for each farmer
Display query history in the Farm Vault Dashboard
Allow farmers to search, filter, or revisit advice
Optional: export AI insights for record-keeping or sharing
Requirements
1οΈβ£ Backend
Store queries and responses in PostgreSQL / Supabase
Include timestamps, vault context, and seasonal data
Secure endpoints using JWT authentication
2οΈβ£ Frontend
Display query history as a scrollable list or card layout
Include search/filter options
Provide option to revisit or re-run queries
3οΈβ£ UI / UX
Green & white dashboard theme
Smooth animations for opening history items
Mobile-first, responsive design
Technical Suggestions
Frontend: React / Next.js, TailwindCSS, Framer Motion
Backend: NestJS, TypeORM / Supabase
Optional caching of responses for faster retrieval
Reuse Card and Badge components for consistency
Expected Outcome
Farmers can view all past AI queries and responses
History is organized, searchable, and visually intuitive
Integrates seamlessly with dashboard and AI Assistant
Acceptance Criteria
All queries and responses are stored accurately
History displays correctly in the dashboard
Search/filter works as intended
UI is responsive and visually consistent