Complete TODO.md Empty State Implementation for Goals Widget#2665
Complete TODO.md Empty State Implementation for Goals Widget#2665Arpita2919 wants to merge 11 commits into
Conversation
|
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. |
GSSoC Label Checklist 🏷️@Umbrella-io — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
|
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! |
|
Hi @Priyanshu-byte-coder, please review this and merge it. |
|
hey @maintainer, please review and merge it. |
|
Hey @Priyanshu-byte-coder, please review my pr and merge it. |
|
New UI/feature PRs are on hold during the code quality sprint — see discussion #2651. PRs for tests, refactoring, bug fixes, docs, and performance are welcome. |
|
Hey @Priyanshu-byte-coder, please review and merge my PR. |
|
New feature/UI PRs are on hold during the code-quality sprint — see discussion #2651. We'll revisit after the sprint; tests, refactors, and bug-fix PRs are the priority right now. |
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 updatesTODO.mdto 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.tsxrenders the reusable<EmptyState />component whengoals.length === 0.Confirmed that the "Create Goal" CTA scrolls users to the goal creation form.
Updated
TODO.mdto mark the task as completed and cleaned up the completed item.Reviewed accessibility attributes and keyboard navigation behavior.
How to Test
Open the dashboard and navigate to the Goals widget.
Ensure there are no goals associated with the current user.
Verify that the
<EmptyState />component is displayed.Click the "Create Goal" button.
Confirm that the page scrolls to the goal creation form.
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 correctlyChecklist
Linked the related issue above
Self-reviewed my own diff
No unnecessary
console.log, debug code, or commented-out blocksnpm run lintpasses locallyNo 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.