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

Implement Favorite Proposal Toggle & Persistence #1632

Open
minikin opened this issue Jan 23, 2025 · 0 comments
Open

Implement Favorite Proposal Toggle & Persistence #1632

minikin opened this issue Jan 23, 2025 · 0 comments
Labels
dart Pull requests that update Dart code F14

Comments

@minikin
Copy link
Collaborator

minikin commented Jan 23, 2025

Summary

Allow users to mark/unmark proposals as favorites, storing the state locally for persistence.

Description

  • Add a favorite (⭐️) button to the proposal details header.
  • Implement toggle functionality:
    • Clicking the button adds/removes the proposal from Favorites.
    • The button updates visually to reflect the favorited state.
  • Store Favorites list locally:
    • Use local database .
    • Link saved favorites to the Proposal ID.
  • Ensure Favorites persist after page refresh.
  • Use mock data for now; replace with API integration later.

Acceptance Criteria

  • Users can mark/unmark a proposal as Favorite by clicking the ⭐️ button.
  • The button updates visually when toggled.
  • Favorites are stored locally and persist after reload.
  • Works entirely on the frontend (backend does not track favorites).
  • UI follows the Figma design and updates smoothly.

References

Image

Depends on

@minikin minikin added dart Pull requests that update Dart code F14 labels Jan 23, 2025
@minikin minikin added this to the Fund14 Technical Readiness milestone Jan 23, 2025
@minikin minikin changed the title Implement Save to Favorite Proposal Implement Favorite Proposal Toggle & Persistence Jan 23, 2025
@minikin minikin moved this from New to 🔖 Ready in Catalyst Jan 23, 2025
@minikin minikin moved this from 🔖 Ready to 🛑 Blocked in Catalyst Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dart Pull requests that update Dart code F14
Projects
Status: 🛑 Blocked
Development

No branches or pull requests

1 participant