Submission generator: form revision — drop 'Frist' block from output, group sections, add multi-party picker with Add Party + DB selection #119
Reference in New Issue
Block a user
No description provided.
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?
m's report (2026-05-26 09:23)
Scope — three connected concerns
A. Drop the 'Frist' block from rendered submission output
The
{{deadline.*}}block (title, due_date, computed_from, source) currently renders inside the merged template body. It's internal/admin context — never belongs in a submission to court.Fix: either
_skeleton.docxand_hl-skeleton.docx(the templates knuth + brunel authored last session) — variables stay resolvable in the bag but no template renders them by default.(R) = 1 — simplest. The variables stay in the bag for any future template that wants them; the default skeletons don't include them in the body.
B. Group the form into clear sections
Reorganise the variable-editor sidebar with clear section headers. Suggested grouping (coder refines):
firm.name,project.case_number,project.court,project.patent_number,procedural_event.name,procedural_event.legal_sourcedeadline.*blocktoday,user.*, anything not in the above groupsC. Improved Parties section — multi-party + Add Party + DB lookup
artemis #109 shipped the party multi-select for parties already on the project. m wants to extend:
paliad.partiesrows on OTHER projects, browsable + filterable)paliad.partiesrow (no duplicate row).paliad.partiesrow attached to this project, immediately available.{{party.<role>.*}}placeholder maps to that party.Files most likely touched
scripts/gen-skeleton-submission-template/main.go,scripts/gen-hl-skeleton-template/main.go(regenerate without the Frist block)frontend/src/submission-draft.tsx,frontend/src/client/submission-draft.ts— section grouping + party Add/DB pickerinternal/services/submission_vars.go(no change to the bag),internal/services/parties_service.go(or similar) — new endpointGET /api/parties/search?q=...for the DB picker if not presentfrontend/src/client/i18n.ts+frontend/src/i18n-keys.tsfrontend/src/styles/global.css— section header stylingHard rules
paliad.partiesrow (not a draft-local pseudo-party) so the data integrates with project's other surfaces.go build ./... && go test ./internal/... && cd frontend && bun run buildclean.mai/<worker>/submission-form-revise.Out of scope
Reporting
mai report completedwith branch + SHAs + UX path: open a draft → confirm Frist block no longer in preview/export → sections visible (Mandant, Parteien, Sonstiges) → click Add Party on Klägerseite → search the DB OR enter manually → confirm new party appears in the bag.Sweep verdict (2026-07-29): ALREADY DONE.
All three asks are in
frontend/src/client/submission-draft.ts: grouped sections (:229— "Mandant/Verfahren up top … then Parteien";:264"Parteien (Variablen)") and the multi-party picker with both entry modes (:341-345—addPartyOpen,addPartyMode: "manual" | "search", t-paliad-287). TheFristblock is absent from the submission variable set.Full sweep:
docs/findings-issue-sweep-2026-07-29.md(commit4c39886).