As a user creating a new document I want the same split-panel edit view as on existing documents, so I can enter metadata next to the file preview #294
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?
Problem
/documents/[id]/editand/enrich/[id]have been migrated to the split-panel layout (DocumentEditLayout— PDF preview on the left, metadata form on the right, sticky top + action bars). The/documents/newroute still uses the old single-column form with a collapsible "Weitere Details" section (seefrontend/src/routes/documents/new/+page.svelte).That inconsistency means users get two very different experiences depending on whether they land on the "new" page or come in through enrich/edit, and they lose the side-by-side view of file and metadata while a new document is being created.
Goal
Bring
/documents/newin line with the other two routes by rendering it throughDocumentEditLayout(frontend/src/lib/components/document/DocumentEditLayout.svelte).Design question to resolve first
DocumentEditLayouttakes aDocprop and loads its file via/api/documents/{id}/file. On the new-document page no document exists yet, so we need to decide how to bridge the gap. Options:PLACEHOLDERdocument up front (or on file drop), then drive the rest of the flow through the same layout — effectively the new page becomes a redirect-into-edit flow.DocumentEditLayouta pre-upload mode: accept an optionaldoc, show theUploadZoneon the left until a file is chosen, and submit everything as one multipart form at the end (current/documents/newbehaviour).Option 1 aligns the flow with enrich (which already assumes a PLACEHOLDER). Option 2 keeps the single-submit UX of the current new page but makes the layout more polymorphic.
Pick one (or propose a third) before implementing.
Acceptance criteria
/documents/newuses the same split-panel layout as/documents/[id]/editand/enrich/[id].frontend/src/routes/documents/new/page.svelte.spec.ts,+page.server.tsactions) are updated or replaced to cover the new flow./documents/[id]/editor/enrich/[id](they share the layout).Out of scope
DocumentEditLayoutitself.Superseded by #317. The split-panel migration for
/documents/newis now scoped together with the bulk-upload extension — they share the same route and the same split-panel layout decision.The three items from this issue that weren't explicitly captured in #317 have been posted there as a carry-over comment: #317#issuecomment.
Closing.