Skip to content

Complete TODO.md Empty State Implementation for Goals Widget#2665

Open
Arpita2919 wants to merge 9 commits into
Priyanshu-byte-coder:mainfrom
Arpita2919:main
Open

Complete TODO.md Empty State Implementation for Goals Widget#2665
Arpita2919 wants to merge 9 commits into
Priyanshu-byte-coder:mainfrom
Arpita2919:main

Conversation

@Arpita2919

Copy link
Copy Markdown

Summary

This PR completes and verifies the empty state implementation for the Goals widget. It ensures that the reusable <EmptyState /> component is rendered when no goals are available, validates the "Create Goal" CTA behavior, and updates TODO.md to reflect the completed task.

Closes #2664 ;


Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)

  • ✨ New feature (non-breaking change that adds functionality)

  • 💥 Breaking change (fix or feature that changes existing behavior)

  • 📝 Documentation update

  • ♻️ Refactor / code cleanup (no functional change)

  • ⚡ Performance improvement

  • 🔒 Security fix

  • 🧪 Tests only


What Changed

  • Verified that GoalTracker.tsx renders the reusable <EmptyState /> component when goals.length === 0.

  • Confirmed that the "Create Goal" CTA scrolls users to the goal creation form.

  • Updated TODO.md to mark the task as completed and cleaned up the completed item.

  • Reviewed accessibility attributes and keyboard navigation behavior.


How to Test

  1. Open the dashboard and navigate to the Goals widget.

  2. Ensure there are no goals associated with the current user.

  3. Verify that the <EmptyState /> component is displayed.

  4. Click the "Create Goal" button.

  5. Confirm that the page scrolls to the goal creation form.

  6. Run lint and build checks.

Expected result:

  • Empty state appears when no goals exist.

  • The "Create Goal" button navigates users to the goal creation section.

  • No console errors or warnings are produced.

  • Build and lint checks pass successfully.


Screenshots / Recordings

Before | After -- | -- N/A | Empty state displayed correctly

Checklist

  • Linked the related issue above

  • Self-reviewed my own diff

  • No unnecessary console.log, debug code, or commented-out blocks

  • npm run lint passes locally

  • No TypeScript errors (npm run type-check)

  • Added or updated tests where applicable

  • Updated documentation / comments if behavior changed


Accessibility (UI changes only)

  • Keyboard navigation works correctly

  • Color contrast meets WCAG AA standard

  • ARIA labels / roles added where needed

  • Tested on mobile / responsive layout


Additional Context

This PR finalizes a previously incomplete TODO item and improves the user experience for users who have not yet created any goals. Existing functionality remains unchanged.

@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the legitox's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added gssoc26 GSSoC 2026 contribution type:docs GSSoC type bonus: documentation (+5 pts) type:feature GSSoC type bonus: new feature labels Jun 22, 2026
@github-actions

Copy link
Copy Markdown

GSSoC Label Checklist 🏷️

@Umbrella-io — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

@Arpita2919

Copy link
Copy Markdown
Author

Hi @Priyanshu-byte-coder, I've addressed the issue and all checks are passing. Could you please review the PR and merge it? Thank you!

@Arpita2919

Copy link
Copy Markdown
Author

Hi @Priyanshu-byte-coder, please review this and merge it.

@Arpita2919

Copy link
Copy Markdown
Author

hey @maintainer, please review and merge it.

@Arpita2919

Copy link
Copy Markdown
Author

Hey @Priyanshu-byte-coder, please review my pr and merge it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc26 GSSoC 2026 contribution type:docs GSSoC type bonus: documentation (+5 pts) type:feature GSSoC type bonus: new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Complete TODO.md Empty State Implementation for Goals Widget

1 participant