Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions tasks/5_git/commit.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
# Commit Your Changes
```shell
git commit -am "Support icons"
```
## Description
This pull request adds end-to-end support for custom goal icons across the application stack.

### Key Changes
- **Backend (.NET / C#):**
- Updated the `Goal` model to include an optional `Icon` property mapped to MongoDB.
- Added unit test coverage in `GoalControllerTests.cs` using xUnit and Moq for CRUD operations involving icons.
- **Frontend (React / TypeScript / Redux):**
- Updated the `Goal` interface to support the `icon` field.
- Integrated `emoji-mart` picker in `GoalManager.tsx` to allow selecting and updating icons.
- Implemented PUT request handling to persist icon modifications directly to the database.

### Testing
- Executed `dotnet test` ensuring all controller test cases pass (HTTP 200, 201, 204, 404).
- Verified manually in the browser that selected emojis persist after full page refresh.