Open
mAi
wants to merge 8 commits from
mai/kepler/inventorcoder-project into main
pull from: mai/kepler/inventorcoder-project
merge into: m:main
m:main
m:mai/ritchie/stale-negative-claims
m:mai/knuth/reset-form-language-and-email
m:mai/knuth/adopt-mauth-module
m:mai/knuth/reset-link-scanner-safe
m:mai/knuth/registry-coherence-139-postscript
m:mai/ritchie/db-test-packages-sh-and
m:mai/knuth/gen-skeleton-submission
m:mai/knuth/retire-skeleton-generator-tier5
m:mai/jason/seed-orphan-drafts-guard
m:mai/knuth/ci-lane-no-dsn
m:mai/jason/seed-script-prod-guard
m:mai/knuth/skeleton-doccomment-completeness
m:mai/brunel/harness-findings-postscript
m:mai/hades/dead-surface-sweep
m:mai/brunel/views-eventkind-flake
m:mai/jason/issue-158-service-address
m:mai/knuth/issue-139-letterhead-vars
m:mai/cronus/issue-148-trigger-picker
m:mai/hades/issue-155-followup
m:mai/hades/issue-155-naming
m:mai/brunel/escalation-visibility-flag
m:mai/jason/alles-overrides-horizon
m:mai/knuth/m-paliad-150-part-b-m
m:mai/hades/issue-161-zustandigkeit
m:mai/cronus/m-paliad-160-per-user
m:mai/jason/issue-163-parties-role
m:mai/ares/issue-162-one-convention
m:mai/brunel/m-paliad-115-the-sweep-s
m:mai/goodall/for-every-check-in-this
m:mai/knuth/land-darwin-s-follow-up
m:mai/diesel/guard-report-lib
m:mai/diesel/issue-139-slice-b
m:mai/diesel/issue-139-letterhead-vars
m:mai/darwin/148-crossparty-ui
m:mai/diesel/m-paliad-158-a-stale
m:mai/darwin/vacation-doc-warnings
m:mai/darwin/upc-vacation-findings
m:mai/darwin/rop-citation-fix
m:mai/darwin/issue-150-holidays
m:mai/ritchie/build-the-block-editor
m:mai/darwin/swallowed-cleanup-errors
m:mai/darwin/formalities-refusal-schema4
m:mai/darwin/drift-caveat-shape
m:mai/darwin/http-smoke-enforcing
m:mai/darwin/s6-round-3
m:mai/darwin/loops-acting-user
m:mai/darwin/s6-rehearsal-round-2
m:mai/darwin/close-the-s6-blockers
m:mai/darwin/rehearse-the-s6-flip
m:mai/knuth/drilling-the-scheduled
m:mai/brunel/21-test-files-under-pkg
m:mai/atlas/design-hlc-com-as
m:mai/hopper3/a-hand-run-can-advance
m:mai/grace4/re-vendor-mai
m:mai/grace3/vendor-the-nine-german
m:mai/head/slug-rule-contract
m:mai/head/vendor-contract-note
m:mai/grace2/wiki-generator-language
m:mai/marco/verify-the-outlook-add
m:mai/pike2/an-explicit-begin-commit
m:mai/noether5/remove-the-paris-p3-and
m:mai/lexy2/r2-backfill-procedural
m:mai/kepler/issue-502-hl-to-hlc
m:mai/hertz2/r4-litigationplanner
m:mai/shannon2/docker-compose-yml-never
m:mai/linus2/r3-finish-the-b-5
m:mai/zeus2/guard-no-live-sql-string
m:mai/galileo2/the-embedded-upc-planner
m:mai/kepler2/slice-b-procedural
m:mai/diesel2/mig044-erwiderung-repair
m:mai/diesel2/fresh-db-replay-past-mig
m:mai/head/gen-upc-snapshot-dead-table
m:mai/noether4/offices-export-regen-201
m:mai/noether4/base-p1-genericize-m
m:mai/hopper/finish-the-half-built
m:mai/pike/dead-migration-tests
m:mai/linus/audit-comment-fix
m:mai/linus/fristensuche-82-search
m:mai/linus/b7-checklists
m:mai/linus/b8-frontend-pure-logic
m:mai/pike/b5-auth-path-coverage
m:mai/diesel/rule-test-resync
m:mai/diesel/regression-m-confirmed
m:mai/patton/b1-make-the-dormant-test
m:mai/athena/test-gap-audit-map
m:mai/diesel/kostenrechner-bug-upc
m:mai/hopper/patentsstyle-styleguide
m:mai/pike/re-render-patentsstyle
m:mai/linus/firm-footer-officelanguag
m:mai/carmack/re-render-deploy
m:mai/diesel/fresh-db-bootstrap
m:mai/pike/follow-up-gen-template
m:mai/turing/docforge-flip
m:mai/cronus/bighand-delimiter-constant
m:mai/ritchie/composer-delete-all
m:mai/atlas/inventor-followup-rules
m:mai/knuth/coder-conditional-rule
m:mai/cronus/inventor-ci-cd-pre
m:mai/demeter/gitster-submission
m:mai/atlas/inventor-per-event-card
m:mai/cronus/inventor-procedural
m:mai/cronus/inventor-backup-mode
m:mai/icarus/inventor-inbox-overhaul
m:mai/atlas/inventor-symmetric-date
m:mai/gauss/inventorcoder-team-admin
m:mai/darwin/roadmap-ccr-en
m:mai/euler/coder-small-ux-polish
m:mai/darwin/fristenrechner-cleanup
m:mai/darwin/fixercoder-priority-bug
m:mai/leibniz/inventor-caldav-multi
m:mai/hertz/inventor-unified-modal
m:mai/archimedes/inventor-excel-data
m:mai/boltzmann/inventor-gap-tolerant
m:mai/copernicus/submission-slice-1
m:mai/fermi/interactive-session
m:mai/hertz/inventor-suggest-changes
m:mai/copernicus/inventor-submission
m:mai/mendel/test-strategy-slice-1
m:mai/ampere/custom-views-improvements
m:mai/planck/paliadin-per-user-rls
m:mai/ritchie/phase-h-ai-deadline
8 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
| d723df6fd4 |
feat(project-picker): show auto-derived project code in parent typeahead
t-paliad-222 follow-up — wire .code into the parent-project picker so two same-titled projects in different trees can be disambiguated by their auto-derived dotted code. Search includes the code; the badge renders only when distinct from the manual reference. Excel __meta sheet still pending — the JSON code field is populated by PopulateProjectCodes for every list payload, so the export generator only needs to add one row in a follow-up shift. |
|||
| 9de14f0665 |
feat(projects-detail): render auto-derived project code as a second header badge
t-paliad-222 follow-up — wire the .code field populated by PopulateProjectCodes into the project-detail header. Shows next to the manual reference when distinct, hidden when they match (avoid duplication) or when no segments resolved. CSS `.entity-ref-code` adds bracket-styling so the user knows the value is derived rather than typed. Also extends the frontend Project interface with code + opponent_code to make TypeScript surface the new fields cleanly across consumers. |
|||
| d326acb31a |
feat(projects): t-paliad-222 — Client Role + auto-derived project codes
Implements m/paliad#47 (Client Role rework) + m/paliad#50 (auto-derived project codes from the ancestor tree) in one shift. Migrations: - mig 112_client_role_rework: widen paliad.projects.our_side CHECK to seven sub-roles (claimant / defendant / applicant / appellant / respondent / third_party / other); drop legacy 'court' / 'both' and backfill rows to NULL (no-op on prod, defensive on staging). - mig 113_projects_opponent_code: add paliad.projects.opponent_code text on litigation rows (slug pattern [A-Z0-9-]{1,16}); used as the middle segment when assembling auto-derived project codes. Backend: - internal/services/project_code.go — new package-level helpers BuildProjectCode (single row) + PopulateProjectCodes (bulk, one CTE-based round-trip). Walks the existing paliad.projects.path ltree; custom paliad.projects.reference on the target wins. - Wired into ProjectService.List, GetByID, ListAncestors, GetTree, LoadCounterclaimChildrenVisible, BuildTreeWithOptions — every service entry-point that returns []models.Project / *models.Project populates .Code before returning. - Models: Project.OurSide doc widened; new Project.OpponentCode (db:"opponent_code") and Project.Code (db:"-", projection-only). - CreateProjectInput / UpdateProjectInput accept OpponentCode; validateOpponentCode + nullableOpponentCode mirror our_side helpers. - validateOurSide widens to the seven sub-roles; legacy 'court' / 'both' rejected at the service layer with a clear error before the DB CHECK fires. - derivedCounterclaimOurSide CCR flip widened: applicant ↔ respondent, appellant → respondent; third_party / other / NULL pass through. - submission_vars: project.code added to the placeholder bag. ourSideDE / ourSideEN now use the gender-neutral "-Seite" / "-Partei" suffix shape (Klägerseite / Antragstellerseite / ...); better legal-prose default for a B2B patent practice, matches the form labels which already used this shape (cf. head's soft-note on Q4). Frontend: - ProjectFormFields: opponent_code on a new projekt-fields-litigation block (hidden by default, shown when type=litigation); our_side moved into projekt-fields-case and re-labelled "Client Role" / "Mandantenrolle" with three <optgroup>s + seven options. - project-form.ts: showFieldsForType toggles the new litigation block; readPayload / prefillForm wire opponent_code; our_side is now only emitted for type=case. - fristenrechner: ourSideToPerspective widened to the seven sub-roles (Active→claimant, Reactive→defendant, Other→null). ProjectOption type literal updated. - i18n.ts: new projects.field.client_role.* and projects.field.opponent_code.* keys (DE+EN). Legacy projects.field.our_side.* keys stay one release for cached bundles + Verlauf event-history rendering of the new sub-roles. Tests: - TestProjectCodeSegment, TestAssembleProjectCode, TestPatentLast3, TestSanitizeClientShort, TestProceedingTail, TestValidateOpponentCode, TestValidateOurSideSubRoles pin the new pure helpers. - TestOurSideTranslations widened to the seven sub-roles + new prose shape; 'court'/'both' arms now return "" (legacy rejected). - TestDerivedCounterclaimOurSide widened to the new flip map. Migration slot history (this branch was rebumped twice on 2026-05-20): mig 110 was claimed by m/paliad#51 (project_type_other, euler); mig 111 was claimed by m/paliad#48 (project_admin_and_select, gauss). Final slots 112 / 113. go build && go test ./internal/... && cd frontend && bun run build all clean. |
|||
| 0a1a1d45ba | Merge remote-tracking branch 'origin/main' into mai/kepler/inventorcoder-project | |||
| 37cdf23c32 | wip(projects): bump migrations 110→111, 111→112 (euler claimed 110) | |||
| e6353d907c | Merge remote-tracking branch 'origin/main' into mai/kepler/inventorcoder-project | |||
| 2cfd54f0cd |
wip(projects): t-paliad-222 — backend + frontend changes (pre-merge checkpoint)
Backend: mig 110/111 (will be renumbered after merging main), validators + helpers widened, BuildProjectCode helper + projection populator wired into List/GetByID/ListAncestors/GetTree/CCR. All internal Go tests pass. Frontend: ProjectFormFields conditional render — opponent_code on litigation, our_side renamed to Client Role on case with grouped optgroups. i18n keys for both DE and EN. fristenrechner perspective mapping widened. project-form.ts payload reader/writer + showFieldsForType toggle for new litigation block. Migration slots about to be bumped (mig 110 was claimed by euler's project_type_other on main). |
|||
| f99a32490d |
design(projects): t-paliad-222 — Client Role + auto-derived project codes
Design doc for paired m/paliad#47 (Client Role rework) + m/paliad#50 (auto-derived project codes from the ancestor tree). Two migrations (110 widen our_side CHECK + backfill court/both → NULL; 111 add opponent_code on litigations), one new BuildProjectCode helper that walks the existing ltree path, plus form / submission-template / Determinator wiring. 9 open design questions surfaced for the head; recommendations default to the issue-body (R) picks unless a material concern is flagged in §2.2 / §3.2. Verified against live data (2026-05-20): all 12 projects have our_side=NULL, so the backfill is a no-op on production today. No 'opponent' field exists yet. |