Phase F9: Board Item Management
Goal: Enable authenticated users to create and delete board items from the browser, and secure the existing move proxy.
Owner: Dev agent
Repo:
forgejo_admin/pal-e-appDepends on: Phase F5 (auth) — COMPLETED
Scope
- Auth check on existing PATCH (move) proxy — was completely unprotected
- POST proxy:
src/routes/api/boards/[slug]/items/+server.tsfor creating items (authenticated) - DELETE proxy + handler on
src/routes/api/boards/[slug]/items/[id]/+server.ts(authenticated) - "+" create button in column headers (authenticated only) with create modal
- "x" delete button on cards with confirmation dialog (authenticated only)
createBoardItem()anddeleteBoardItem()functions in api.ts- Optimistic UI updates for create and delete (same pattern as existing move)
Deliverables
- PR #31 MERGED —
feat: board item management (create, delete + auth on move) - Issue #28 closed
- 4 files changed
- QA found 2 blockers (inconsistent auth pattern in deleteBoardItem, forgejo_issue_url not whitelisted in POST proxy) — both fixed
QA Nits (Epilogue)
- Create flow is not truly optimistic (waits for API response)
- deleteSubmitting state effectively dead code
- ITEM_TYPES hardcoded — could drift from backend
- Hover-based delete button may have sticky hover on touch devices
Related
plan-pal-e-docs— parent planphase-pal-e-docs-private-notes— F6, sibling phasephase-pal-e-docs-note-editing— F8, sibling phase