Skip to content

Feature/add goal icons#100

Open
reeeeal-0Xahmed wants to merge 3 commits intofencer-so:mainfrom
reeeeal-0Xahmed:feature/add-goal-icons
Open

Feature/add goal icons#100
reeeeal-0Xahmed wants to merge 3 commits intofencer-so:mainfrom
reeeeal-0Xahmed:feature/add-goal-icons

Conversation

@reeeeal-0Xahmed
Copy link

Overview

This PR integrates emoji picker functionality into the GoalManager component and connects it to the backend API to persist goal icons.

Changes Made

GoalManager.tsx

  • Added emoji picker integration
  • Implemented icon selection handler
  • Updated Redux state when icon changes
  • Added PUT request to persist icon changes

API Integration

  • Implemented updateGoal PUT request using axios
  • Ensured icon changes persist after refresh

UI Improvements

  • Display selected emoji icon in goal cards
  • Centered and styled icon for improved UX

Result

  • Users can add and change goal icons
  • Icons persist after refresh
  • Frontend fully integrated with backend API

Backend dependency

Requires backend support for Goal.Icon field and PUT endpoint.

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