diff --git a/.beans/nuzlocke-tracker-i2va--hide-edit-controls-for-non-owners-in-frontend.md b/.beans/nuzlocke-tracker-i2va--hide-edit-controls-for-non-owners-in-frontend.md index 491344c..4400e7b 100644 --- a/.beans/nuzlocke-tracker-i2va--hide-edit-controls-for-non-owners-in-frontend.md +++ b/.beans/nuzlocke-tracker-i2va--hide-edit-controls-for-non-owners-in-frontend.md @@ -1,11 +1,13 @@ --- # nuzlocke-tracker-i2va title: Hide edit controls for non-owners in frontend -status: in-progress +status: completed type: bug priority: critical +tags: + - failed created_at: 2026-03-21T12:18:38Z -updated_at: 2026-03-21T12:32:45Z +updated_at: 2026-03-22T09:03:08Z parent: nuzlocke-tracker-wwnu blocked_by: - nuzlocke-tracker-73ba @@ -39,3 +41,12 @@ blocked_by: - [x] Guard all mutation triggers in `RunDashboard.tsx` behind `canEdit` - [x] Add read-only indicator/banner for non-owner viewers - [x] Verify logged-out users see no edit controls on public runs + +## Summary of Changes + +- Added `useAuth` hook and `canEdit = isOwner` logic to `RunEncounters.tsx` +- Updated `RunDashboard.tsx` to use strict `canEdit = isOwner` (removed unowned fallback) +- All mutation UI elements (encounter modals, boss defeat buttons, status changes, end run, shiny/egg encounters, transfers, HoF team, visibility toggle) are now conditionally rendered based on `canEdit` +- Added read-only banner for non-owner viewers in both pages + +Committed in `3bd24fc` and merged to `develop`. diff --git a/.beans/nuzlocke-tracker-ks9c--crash-hide-edit-controls-for-non-owners-in-fronten.md b/.beans/nuzlocke-tracker-ks9c--crash-hide-edit-controls-for-non-owners-in-fronten.md new file mode 100644 index 0000000..36b8c3a --- /dev/null +++ b/.beans/nuzlocke-tracker-ks9c--crash-hide-edit-controls-for-non-owners-in-fronten.md @@ -0,0 +1,26 @@ +--- +# nuzlocke-tracker-ks9c +title: 'Crash: Hide edit controls for non-owners in frontend' +status: completed +type: bug +priority: high +created_at: 2026-03-22T08:59:10Z +updated_at: 2026-03-22T09:03:12Z +parent: nuzlocke-tracker-bw1m +blocking: + - nuzlocke-tracker-i2va +--- + +Bean was found in 'in-progress' status on startup but no agent was running. +This likely indicates a crash or unexpected termination. + +Manual review required before retrying. + +Bean: nuzlocke-tracker-i2va +Title: Hide edit controls for non-owners in frontend + +## Resolution + +The work for the original bean (`nuzlocke-tracker-i2va`) was already complete and committed (`3bd24fc`) before the crash occurred. The agent crashed after committing but before updating bean status. + +Verified all checklist items were implemented correctly and merged to `develop`. Marked the original bean as completed.