Skip to content

Support icons#180

Open
saipyae2004 wants to merge 1 commit into
fencer-so:mainfrom
saipyae2004:icons
Open

Support icons#180
saipyae2004 wants to merge 1 commit into
fencer-so:mainfrom
saipyae2004:icons

Conversation

@saipyae2004

Copy link
Copy Markdown

Summary

Adds support for goal icons across the client.

Changes

  • Added an optional icon field to the Goal type (src/api/types.ts)
  • Display the goal's icon on each goal card (GoalCard.tsx)
  • Integrated the emoji-mart emoji picker
  • Updated GoalManager.tsx so users can add and change a goal's icon
  • Persist icon changes via the updateGoal PUT request (src/api/lib.ts)

Testing

  • Icons display on goal cards and the emoji picker opens
  • Icon changes persist after a page refresh

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