Skip to content

feat : added add goal form#77

Merged
Priyanshu-byte-coder merged 1 commit into
Priyanshu-byte-coder:mainfrom
Muragesh-24:goalpr
May 15, 2026
Merged

feat : added add goal form#77
Priyanshu-byte-coder merged 1 commit into
Priyanshu-byte-coder:mainfrom
Muragesh-24:goalpr

Conversation

@Muragesh-24
Copy link
Copy Markdown
Contributor

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

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / code cleanup

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

  • Linked issue in summary
  • npm run lint passes locally
  • No TypeScript errors (npm run type-check)
  • Self-reviewed the diff
  • Added/updated tests if applicable

@vercel
Copy link
Copy Markdown

vercel Bot commented May 15, 2026

@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.

Copy link
Copy Markdown
Owner

@Priyanshu-byte-coder Priyanshu-byte-coder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Owner

@Priyanshu-byte-coder Priyanshu-byte-coder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Priyanshu-byte-coder merged commit 938f9c7 into Priyanshu-byte-coder:main May 15, 2026
3 checks passed
@Priyanshu-byte-coder Priyanshu-byte-coder added type:feature GSSoC type bonus: new feature level:intermediate GSSoC: Intermediate difficulty (35 pts) gssoc:approved GSSoC: PR approved for scoring gssoc26 GSSoC 2026 contribution labels May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved GSSoC: PR approved for scoring gssoc26 GSSoC 2026 contribution level:intermediate GSSoC: Intermediate difficulty (35 pts) type:feature GSSoC type bonus: new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GOOD FIRST ISSUE] Add 'Create Goal' form UI to GoalTracker

2 participants