Enhance PlantCard and Dashboard with Select UI and AI improvements - #3
Open
Anoop-K-A wants to merge 9 commits into
Open
Enhance PlantCard and Dashboard with Select UI and AI improvements#3Anoop-K-A wants to merge 9 commits into
Anoop-K-A wants to merge 9 commits into
Conversation
frontend
Add @radix-ui/react-select to dependencies and introduce a reusable Select component (client/src/components/ui/select.jsx) for consistent select UIs. Update PlantCard to use useNavigate and make the entire card clickable, show location badge and days-since-last-watered, and refine actions/styles for a cleaner quick-hydrate flow. In CollectionPage, initialize plants from localStorage for offline persistence, add a WEATHER_API_KEY constant, and add search-related state (query, results, loading, selectedLocation, dropdown) to prepare for location/search UX. (Lockfile updated by package manager.)
Install @google/generative-ai (added package files under server/node_modules and updated server package.json) and update server code/config. Update server/.env GEMINI API key. Update client DashboardPage.jsx to add a confirm-delete state/UX (two-tap confirmation with visual pulse) and refactor the delete logic to avoid immediate window.confirm. Also include minor changes to server/src/controllers/ai.controller.js and add several files to server/uploads.
Add Radix Select component and enhance PlantCard with search state
Prevent duplicate Analyze runs and ensure loading state is always cleared in DashboardPage. Reset diagnosis result before requests, replace the previous delayed fallback handler with an immediate local fallback object, add a live AI sync status banner and a 'Done - Start New Session' button to clear state. Update server environment GEMINI_API_KEY and add models_list.txt, nodemon.json and server_log. Add several node module shims/packages (path, process, util and related files) and update server package metadata and dependencies; also modify server AI controller to align with the new fallback behavior.
Improve Dashboard AI fallback and add node shims
Author
Updated project details, installation steps, and integrated AI usage information.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.