Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Season Filtering and User Preference Persistence #232

Merged
merged 13 commits into from
Oct 14, 2023
Merged

Conversation

ryanmio
Copy link
Owner

@ryanmio ryanmio commented Oct 14, 2023

This PR introduces the ability for users to filter pumpkins by season in the dashboard. It also persists the user's selected season as a user preference in Firestore, allowing the selected season to be remembered across sessions.

Key changes:

  1. Added a dropdown in the dashboard to select the season. The dropdown is populated with unique seasons from the user's pumpkins.

  2. When a season is selected, the dashboard filters the displayed pumpkins to only show pumpkins from the selected season.

  3. The selected season is saved to the user's document in Firestore as a user preference.

  4. When the dashboard is loaded, the user's preferred season is fetched from Firestore and set as the default value for the season dropdown.

This enhancement improves the user experience by allowing users to view pumpkins from specific seasons and by remembering user preferences across sessions.

@ryanmio ryanmio merged commit d4447db into main Oct 14, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant