Skip to content

fix: wire Submit Feedback button on dashboard to /plans - #76

Open
clates wants to merge 1 commit into
mainfrom
fix/dashboard-submit-feedback-onclick
Open

fix: wire Submit Feedback button on dashboard to /plans#76
clates wants to merge 1 commit into
mainfrom
fix/dashboard-submit-feedback-onclick

Conversation

@clates

@clates clates commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • The Submit Feedback button on the dashboard card had no onClick handler — clicking it did nothing
  • Root cause: dashboard/page.tsx rendered the button with no action attached
  • Fix: added useRouter import and onClick={() => router.push('/plans')} so the button navigates to the Plans page where the full feedback flow (plan detail modal → feedback modal) lives

Test plan

  • New E2E test: Dashboard — Submit Feedback button › Submit Feedback button on dashboard navigates to /plans
    • Seeds a student with a ready packet
    • Navigates to /dashboard with waitUntil: 'networkidle' (required because dashboard has a two-stage async load: students first, then packets)
    • Verifies the Submit Feedback button appears
    • Clicks it and asserts the URL changes to /plans

🤖 Generated with Claude Code

The button was rendered but had no onClick handler, so clicking it did
nothing. Added useRouter and router.push('/plans') so clicking the button
takes the user to the Plans page where the full feedback flow lives.

Also adds a Playwright E2E test that seeds a student with a pending
packet, navigates to /dashboard with networkidle (needed because the
dashboard loads students then packets in two sequential async fetches),
verifies the Submit Feedback button is visible, clicks it, and asserts
navigation to /plans.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant