Skip to content

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

Description

@Arpita2919

Bug Description

Complete TODO.md Empty State Implementation for Goals Widget

Category

Bug

Priority

Medium

Module or Files Affected

  • TODO.md
  • GoalTracker.tsx
  • EmptyState.tsx

Problem Description

TODO.md contains an incomplete task for implementing the empty state of the Goals widget using the reusable <EmptyState /> component. Although most of the work appears to be completed, the final verification step remains unchecked.

This creates ambiguity for contributors and makes it unclear whether the feature has been fully implemented and validated.


Why This Matters

Incomplete tasks in TODO files can confuse contributors and lead to duplicated efforts. A proper empty state improves the user experience when no goals have been created and provides a clear call-to-action for users.


Expected Improvement

  • Verify that the Goals widget correctly renders the reusable <EmptyState /> component when no goals exist.
  • Ensure the "Create Goal" CTA scrolls users to the goal creation form.
  • Validate accessibility and interaction behavior.
  • Mark the task as completed in TODO.md.

Implementation Steps

  1. Verify that GoalTracker.tsx renders <EmptyState /> when goals.length === 0.
  2. Ensure the "Create Goal" button scrolls to the goal creation form.
  3. Test keyboard navigation and accessibility attributes.
  4. Run tests, build, and lint checks.
  5. Update TODO.md to mark the task as complete.
  6. Remove or archive the completed TODO item if appropriate.

Files to Touch

  • TODO.md
  • GoalTracker.tsx
  • EmptyState.tsx

Acceptance Criteria

  • Empty state is displayed when no goals are present.
  • "Create Goal" button scrolls to the goal creation form.
  • Component passes accessibility checks (axe-core).
  • No console warnings or errors are generated.
  • Build passes successfully.
  • Lint passes with no errors.
  • TODO.md is updated to mark the task as complete.
  • Completed TODO item is removed or archived.

Suggested Labels

bug · good first issue · documentation · ux


Difficulty Level

Medium


Expected Outcome

  • Improved user experience for users without goals.
  • Reduced contributor confusion caused by unfinished TODO items.
  • Verified and documented empty state implementation.
  • Better accessibility and maintainability.

Steps to Reproduce

  1. Open the dashboard and navigate to the Goals widget.
  2. Ensure that no goals are present for the current user.
  3. Observe the widget behavior when goals.length === 0.
  4. Notice that the TODO task for the empty state implementation remains incomplete or unverified.
  5. Verify whether the reusable <EmptyState /> component is rendered correctly.
  6. Click the "Create Goal" button and check if it scrolls to the goal creation form.

Affected Area

Dashboard

Screenshots

No response

Browser & OS

No response

Environment

None

Additional Context

No response

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggssoc:assignedGSSoC: Issue assigned to a contributorneeds-triageNeeds maintainer triage

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions