feat(web): CreateItemPane two-column redesign with sidebar #15
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Context
The current CreateItemPane is a simple single-column scrolling form. The redesign (specified in
frontend-spec.md) replaces it with a two-column layout: form on the left, metadata/attachments/thumbnail sidebar on the right.Dependencies
Layout
CSS Grid two-column:
grid-template-columns: 1fr 320px. Left column scrolls independently. Right sidebar is a flex column with bordered sections.Form Sections (left column)
Divided by section headers (11px uppercase label + horizontal line).
Fields within sections use a 2-column sub-grid:
grid-template-columns: 1fr 1frwithgap: 1.25rem 1.5rem. Full-width fields span both columns.Sidebar Sections (right column)
Three sections separated by
--ctp-surface0borders:Submission Flow
POST /api/itemswith form dataPOST /api/items/{pn}/fileswith object key (if #12 is done)PUT /api/items/{pn}/thumbnailonCreated(item)File association failures show warnings but don't block (item was created).
Files Modified
web/src/components/items/CreateItemPane.tsx— full rewriteAcceptance Criteria