Prompt file imported from Yandievss/archon.ai (
.windsurf/workflows/fix-dead-buttons.md). Copyright stays with the author.
You will make every button on the target page functional.
Steps:
- Inventory all clickable UI elements (buttons, icon buttons, menu items, table row actions).
- For each element, classify: A) Navigation (route change) B) Mutation (create/update/delete) C) UI state (open modal/drawer, tabs, filters)
- Implement missing handlers end-to-end:
- UI action -> function -> API route/server action -> validation -> DB -> toast feedback.
- If an action is intentionally not implemented:
- disable the button + tooltip "Binnenkort"
- add TODO with a tracking issue id.
- Add loading state and error handling for every mutation.
- Return a checklist of all buttons and their status (implemented/disabled).
- Respect existing dashboard navigation contract in
src/app/page.tsx(?page=sync + localStorage persistence). - Run and report:
- npm run typecheck
- npm run lint
- npm run build
- relevant Playwright spec(s)
