feat : added add goal form#77
Merged
Priyanshu-byte-coder merged 1 commit intoMay 15, 2026
Merged
Conversation
|
@Muragesh-24 is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel. A member of the Team first needs to authorize it. |
Priyanshu-byte-coder
approved these changes
May 15, 2026
Owner
Priyanshu-byte-coder
left a comment
There was a problem hiding this comment.
Clean implementation. useCallback on loadGoals is correct, form has proper htmlFor/id pairing, disabled states on inputs and button during submit, and the spinner feedback is a nice touch. CSS variables all valid.
Priyanshu-byte-coder
approved these changes
May 15, 2026
Owner
Priyanshu-byte-coder
left a comment
There was a problem hiding this comment.
Clean implementation. useCallback on loadGoals is correct, form has proper htmlFor/id pairing, disabled states on inputs and button during submit, and the spinner feedback is a nice touch. CSS variables all valid.
938f9c7
into
Priyanshu-byte-coder:main
3 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Added an inline weekly goal creation form to the GoalTracker widget on the dashboard, allowing users to set goals without manually using the API. The form takes a goal label and weekly target, sends them directly to /api/goals, displays a loading spinner while saving, and updates the goals list right after a successful save so the empty state refreshes instantly.
Closes #13
Type of Change
Changes Made
Steps for the reviewer to verify this works:
1.changed a single file GoalTracker.tsx, Updated the dashboard GoalTracker widget so users can create a new weekly goal directly in the UI. The component now includes a form for the goal label and weekly target .
How to Test
just use the form visible in the goal widget and it will add new goals directlt
Screenshots (if UI change)
[
Screen.Recording.2026-05-15.143504.mp4
]
Checklist
npm run lintpasses locallynpm run type-check)