From 65f2b08e7c4bd2f081c9ca1c4508bbaf88616a4f Mon Sep 17 00:00:00 2001 From: Abhinav Kulkarni Date: Mon, 17 Aug 2026 23:23:42 +0530 Subject: [PATCH] Add support for custom goal icons This pull request adds end-to-end support for custom goal icons across the application stack, including backend updates and frontend integration. --- tasks/5_git/commit.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/tasks/5_git/commit.md b/tasks/5_git/commit.md index e00c2a6..6643db1 100644 --- a/tasks/5_git/commit.md +++ b/tasks/5_git/commit.md @@ -1,4 +1,15 @@ -# Commit Your Changes -```shell -git commit -am "Support icons" -``` \ No newline at end of file +## 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.