Project-level "our side" field — predefine Determinator perspective from Akte #24
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 verbatim 2026-05-08 21:42, dogfooding the Fristenrechner Determinator: "This is not ideal. We chose a case of ours where our side should predefined - yet I can make a selection for which side we are. That can be improved."
What's missing
The Determinator's perspective chip (Slice 3c, commit
6fcf34a) lets the user pick Kläger / Beklagter / Beide. m expects that when a known Akte is selected, the chip should already be locked to the firm's known side.Problem: paliad doesn't currently track which side the firm represents on any given project.
paliad.parties.rolerecords what role each party has (claimant / defendant / etc.) but nothing flags "this is the party we represent". The example project (C-UPC-0002 / EP9876543) has zero parties on file at all — no data to even derive from.Proposed shape
Schema (migration 072): add
paliad.projects.our_side textwith check constraintIN ('claimant', 'defendant', 'court', 'both', NULL). NULL = unknown / not set, default. Idempotent (ADD COLUMN IF NOT EXISTS).Project edit form (
frontend/src/components/ProjectFormFields.tsx+client/projects-detail.tsif needed): new "Wir vertreten" select with the four options + "unbekannt / nicht gesetzt". DE+EN i18n.Determinator integration (
frontend/src/client/fristenrechner.ts): when a project is selected andour_sideis set, predefine the perspective chip to that value AND show a smallvorgegeben durch Aktehint above the chip strip. The user can still override (chip click), but the override is explicit. Whenour_sideis NULL, fall back to the existing free-pick behaviour.Project model (
internal/models/models.go+internal/services/project_service.go): addOurSide *stringto the Project struct + thread through Update / SELECT projections.Hard requirements
go build ./...+bun run build.ts) on every commit.our_sideis set — the hint communicates "this is the default, click to change".Out of scope
our_sidefrom existing party records — m might want that later, but this PR keeps the user in control.Linked
Dogfood thread on the Determinator perspective chip (Slice 3c). Filed by paliad/head from m's 2026-05-08 21:42 instruction.