Add End Run button to run dashboard with a confirmation modal offering Victory/Defeat choice. Backend auto-sets completedAt timestamp and validates only active runs can be ended. Ended runs show a completion banner with date and duration, rename team to "Final Team", and hide encounter logging and status change interactions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1007 B
1007 B
title, status, type, priority, created_at, updated_at, parent
| title | status | type | priority | created_at | updated_at | parent |
|---|---|---|---|---|---|---|
| Add ability to end a run (success/failure) | completed | task | normal | 2026-02-06T10:22:00Z | 2026-02-07T12:12:42Z | nuzlocke-tracker-f5ob |
Add functionality to mark a Nuzlocke run as completed (success) or failed.
Requirements
-
Run status transitions:
- Active → Completed (player beat the game)
- Active → Failed (all Pokemon fainted / player gave up)
-
UI elements needed:
- "End Run" button on run dashboard
- Confirmation modal with success/failure choice
- Optional: Add notes/summary when ending
- Display completion status prominently on ended runs
-
Backend:
- Endpoint already supports status update via PATCH /runs/{id}
- May need to set
completedAttimestamp when ending
-
Considerations:
- Should ended runs be editable? (probably lock encounters)
- Show run duration (started → completed)
- Victory/defeat visual treatment (colors, icons)