fix(verfahrensablauf): m/paliad#59 — restore click-to-edit on timeline dates #64
Open
mAi
wants to merge 1 commits from
mai/darwin/fixercoder-priority-bug into main
pull from: mai/darwin/fixercoder-priority-bug
merge into: m:main
m:main
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/kepler/inventorcoder-project
m:mai/darwin/roadmap-ccr-en
m:mai/euler/coder-small-ux-polish
m:mai/darwin/fristenrechner-cleanup
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
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
No description provided.
Delete Branch "mai/darwin/fixercoder-priority-bug"
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?
Closes m/paliad#59.
Summary
the timeline dates seem to be fix, nothing happens when I click on a date.openInlineDateEditor+wireDateEditClicksintoviews/verfahrensablauf-core.tsso both pages share one implementation.editable: true+ delegated click handler on/tools/verfahrensablauf.Test plan
go build ./...clean.go test ./internal/...— all packages pass.bun run buildclean (frontend bundle includesfrist-date-edit,dateEditWired,anchorOverridesinverfahrensablauf.js).bun test— 73 pass, 0 fail (5 new regression tests inverfahrensablauf-core.test.tspin the editable→data-rule-codecontract).Acceptance (from #59)
frist-date-edit+data-rule-code+data-current-dateand the container has a delegated click+keyboard handler./api/tools/fristenrechnerso downstream rules re-anchor.Hinweise anzeigennotes-toggle behaviour preserved (showNotesplumbing unchanged).Per-rule due dates on /tools/verfahrensablauf were rendered as plain spans with no `frist-date-edit` attrs and no delegated click handler, so clicking a date did nothing (m's "the timeline dates seem to be fix, nothing happens when I click on a date"). The wiring existed on /tools/fristenrechner but had never been mirrored onto the abstract- browse surface introduced in t-paliad-179. Fix: lift the inline date editor + delegated click wiring out of fristenrechner.ts into views/verfahrensablauf-core.ts so both pages share one implementation: - openInlineDateEditor(span, onCommit) — swaps the date span for a `<input type=date>`, commits on blur/Enter, cancels on Escape, fires `onCommit(ruleCode, newValue)` ("" = revert). - wireDateEditClicks(container, onCommit) — idempotent delegated click + keyboard handler that resolves `.frist-date-edit [data-rule-code]` and opens the editor. Survives innerHTML rewrites because the listener lives on the container. verfahrensablauf.ts now: - Owns its own anchorOverrides Map (cleared when proceeding-type changes — overrides for one proceeding don't apply to another). - Forwards overrides in calculateDeadlines() so downstream rules re-anchor on the user's date. - Passes `editable: true` to renderColumnsBody + renderTimelineBody. - Calls wireDateEditClicks() once on #timeline-container in DOMContentLoaded. fristenrechner.ts shrinks: openInlineDateEditor + the inline click / keydown blocks are replaced by an `onDateEditCommit` callback handed to the shared wireDateEditClicks(). No behaviour change there. Regression test: views/verfahrensablauf-core.test.ts pins the editable→`data-rule-code` contract on `deadlineCardHtml` so a future refactor that drops the attrs fails loudly instead of silently breaking click-to-edit on both pages.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.