Fix API type mismatches with real pal-e-docs response #7
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/pal-e-docs-app!7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hotfix/api-type-mismatch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Hotfix: align TypeScript interfaces with actual pal-e-docs API response shapes. The kanban board was returning 500 because field names didn't match.
Changes
src/lib/api.ts: Board usesnamenottitle,item_countsnotitem_count, nocolumns/description. BoardItem usesitem_typenotnote_type,note_slugnotslug,labelsisstring|null. AddedCOLUMNSconstant (7 fixed columns).src/routes/boards/+page.svelte: Useboard.name, compute total fromitem_counts, removecolumns.lengthanddescription.src/routes/boards/[slug]/+page.svelte: Useitem.item_type,board.name,tab.name, compute tab counts fromitem_counts, fix labels rendering (split comma string), removeitem.projectbadge.Test Plan
npm run check— 0 errors, 0 warningsnpm run build— succeeds/boardsloads without 500/boards/board-pal-e-docsrenders kanban with real itemsReview Checklist
Related
plan-pal-e-docs— Phase 3 hotfixCloses #3