Unify calendar engines across /events and Custom Views #78
Open
opened 2026-05-25 11:23:29 +00:00 by mAi
·
2 comments
No Branch/Tag Specified
main
mai/knuth/narrow-assess-to-the
mai/knuth/editor-four-part-fix
mai/knuth/editor-first-real-edit
mai/knuth/wire-build-patentstyle
mai/ritchie/build-patentstyle-unguarded
mai/knuth/rescue-cited-design
mai/ritchie/vendor-guard-first-catch
mai/knuth/stale-branch-triage
mai/ritchie/stale-negative-claims
mai/knuth/reset-form-language-and-email
mai/knuth/adopt-mauth-module
mai/knuth/reset-link-scanner-safe
mai/knuth/registry-coherence-139-postscript
mai/ritchie/db-test-packages-sh-and
mai/knuth/gen-skeleton-submission
mai/knuth/retire-skeleton-generator-tier5
mai/jason/seed-orphan-drafts-guard
mai/knuth/ci-lane-no-dsn
mai/jason/seed-script-prod-guard
mai/knuth/skeleton-doccomment-completeness
mai/brunel/harness-findings-postscript
mai/hades/dead-surface-sweep
mai/brunel/views-eventkind-flake
mai/jason/issue-158-service-address
mai/knuth/issue-139-letterhead-vars
mai/cronus/issue-148-trigger-picker
mai/hades/issue-155-followup
mai/hades/issue-155-naming
mai/brunel/escalation-visibility-flag
mai/jason/alles-overrides-horizon
mai/knuth/m-paliad-150-part-b-m
mai/hades/issue-161-zustandigkeit
mai/cronus/m-paliad-160-per-user
mai/jason/issue-163-parties-role
mai/ares/issue-162-one-convention
mai/brunel/m-paliad-115-the-sweep-s
mai/goodall/for-every-check-in-this
mai/knuth/land-darwin-s-follow-up
mai/diesel/guard-report-lib
mai/diesel/issue-139-slice-b
mai/diesel/issue-139-letterhead-vars
mai/darwin/148-crossparty-ui
mai/diesel/m-paliad-158-a-stale
mai/darwin/vacation-doc-warnings
mai/darwin/upc-vacation-findings
mai/darwin/rop-citation-fix
mai/darwin/issue-150-holidays
mai/ritchie/build-the-block-editor
mai/darwin/swallowed-cleanup-errors
mai/darwin/formalities-refusal-schema4
mai/darwin/drift-caveat-shape
mai/darwin/http-smoke-enforcing
mai/darwin/s6-round-3
mai/darwin/loops-acting-user
mai/darwin/s6-rehearsal-round-2
mai/darwin/close-the-s6-blockers
mai/darwin/rehearse-the-s6-flip
mai/knuth/drilling-the-scheduled
mai/brunel/21-test-files-under-pkg
mai/atlas/design-hlc-com-as
mai/hopper3/a-hand-run-can-advance
mai/grace4/re-vendor-mai
mai/grace3/vendor-the-nine-german
mai/head/slug-rule-contract
mai/head/vendor-contract-note
mai/grace2/wiki-generator-language
mai/marco/verify-the-outlook-add
mai/pike2/an-explicit-begin-commit
mai/noether5/remove-the-paris-p3-and
mai/lexy2/r2-backfill-procedural
mai/kepler/issue-502-hl-to-hlc
mai/hertz2/r4-litigationplanner
mai/shannon2/docker-compose-yml-never
mai/linus2/r3-finish-the-b-5
mai/zeus2/guard-no-live-sql-string
mai/galileo2/the-embedded-upc-planner
mai/kepler2/slice-b-procedural
mai/diesel2/mig044-erwiderung-repair
mai/diesel2/fresh-db-replay-past-mig
mai/head/gen-upc-snapshot-dead-table
mai/noether4/offices-export-regen-201
mai/noether4/base-p1-genericize-m
mai/hopper/finish-the-half-built
mai/pike/dead-migration-tests
mai/linus/audit-comment-fix
mai/linus/fristensuche-82-search
mai/linus/b7-checklists
mai/linus/b8-frontend-pure-logic
mai/pike/b5-auth-path-coverage
mai/diesel/rule-test-resync
mai/diesel/regression-m-confirmed
mai/patton/b1-make-the-dormant-test
mai/athena/test-gap-audit-map
mai/diesel/kostenrechner-bug-upc
mai/hopper/patentsstyle-styleguide
mai/pike/re-render-patentsstyle
mai/linus/firm-footer-officelanguag
mai/carmack/re-render-deploy
mai/diesel/fresh-db-bootstrap
mai/pike/follow-up-gen-template
mai/turing/docforge-flip
mai/cronus/bighand-delimiter-constant
mai/ritchie/composer-delete-all
mai/atlas/inventor-followup-rules
mai/knuth/coder-conditional-rule
mai/cronus/inventor-ci-cd-pre
mai/demeter/gitster-submission
mai/atlas/inventor-per-event-card
mai/cronus/inventor-procedural
mai/cronus/inventor-backup-mode
mai/icarus/inventor-inbox-overhaul
mai/atlas/inventor-symmetric-date
mai/gauss/inventorcoder-team-admin
mai/kepler/inventorcoder-project
mai/darwin/roadmap-ccr-en
mai/euler/coder-small-ux-polish
mai/darwin/fristenrechner-cleanup
mai/darwin/fixercoder-priority-bug
mai/leibniz/inventor-caldav-multi
mai/hertz/inventor-unified-modal
mai/archimedes/inventor-excel-data
mai/boltzmann/inventor-gap-tolerant
mai/copernicus/submission-slice-1
mai/fermi/interactive-session
mai/hertz/inventor-suggest-changes
mai/copernicus/inventor-submission
mai/mendel/test-strategy-slice-1
mai/ampere/custom-views-improvements
mai/planck/paliadin-per-user-rls
mai/ritchie/phase-h-ai-deadline
No results found.
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: m/paliad#78
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 "%!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-25 12:44)
(Companion issue for the date-range filter simplification is separate — inventor design phase.)
Context
This duplicates / reinforces #55 ("Align calendar-view rendering between Events/Termine page and Custom Views' calendar view type"). m has now reported it again as a live bug — pick this up now.
What to do
/events?view=calendar→ likelyfrontend/src/events.tsx+frontend/src/client/events.ts(calendar branch)frontend/src/client/views/calendar-view.tsor similar under the views directoryfrontend/src/components/CalendarView.tsxor similar) consumed by both/eventsand the Custom-View calendar.Files most likely touched
frontend/src/events.tsxfrontend/src/client/events.tsfrontend/src/client/views/calendar-view.ts(or whatever the Custom-Views calendar lives in)frontend/src/styles/global.css— consolidate any calendar-specific CSSHard rules
go build ./... && go test ./internal/... && cd frontend && bun run buildclean.mai/<worker>/calendar-engine-unify.Out of scope
Reporting
mai report completedwith branch + SHAs + the chosen canonical engine + verification path (open /events?view=calendar AND a Custom View with calendar layout → both render identically).When filing the commit comment on this issue, also reference / close out the duplicate concern in #55 if appropriate (don't close the issue — set the
donelabel instead per project convention).Investigation — calendar engines are already unified (t-paliad-224 / m/paliad#55)
Before touching code I checked the live state on paliad.de + the worktree. Both
/events?view=calendarand Custom-Viewshape=calendaralready render through the same engine —frontend/src/client/calendar/mount-calendar.ts. t-paliad-224 (m/paliad#55) landed this on 2026-05-20 and is deployed.Proof — both prod bundles ship the same
mountCalendarcodeDownloaded
https://paliad.de/assets/events.jsandhttps://paliad.de/assets/views.jsand grepped for every calendar-feature string. Every one appears exactly once in each bundle (i.e. one copy ofmountCalendar, no orphan):views-calendar-toolbarviews-calendar-cell--todayviews-calendar-pill--moreviews-calendar-week-gridviews-calendar-day-listviews-calendar-mobile-noticeviews-calendar-back-to-monthcal.day.no_entriesThe minified bodies around
views-calendar-toolbarare byte-equivalent modulo minifier variable letters (B vs _, D vs S, …). Same module compiled twice into two pages.Source-side
frontend/src/client/events.ts:11importsmountCalendarfrom./calendar/mount-calendar.frontend/src/client/events.ts:605callsmountCalendar(host, items, { urlState: true, defaultView: "month" }).frontend/src/client/views/shape-calendar.ts:12callsmountCalendar(host, items, { defaultView: render.calendar?.default_view ?? "month", urlState: true })— same module, same options.renderCalendar()/openCalPopup()/events-cal-dot-*code from before t-224 is gone (verified bygrep -rn frist-cal\|events-calreturning nothing infrontend/src/)..views-calendar-*remains for the full-page calendar..frist-cal-*was deleted.What can still feel different to a user — and isn't engine
/events?view=calendarcalls/api/eventsand only returns rows of kinddeadlineandappointment— so the pill palette only ever shows the lime-deadline + blue-appointment dots. A Custom-View withsources=[deadline, appointment, project_event, approval_request]calls/api/views/<slug>/runand can render purpleproject_eventand amberapproval_requestpills too. Same engine, different data.client/filter-bar/. Both surfaces sit above an identical.views-calendarelement.defaultView: "month"; Custom Views honourrender_spec.calendar.default_view(defaults tomonth, but a saved view can pin toweek). If your view's spec stored a non-month default, you'd land on a different initial view even though the engine is the same.Recommendation
The unify-the-engine work is done; the canonical engine is
mount-calendar.tsand the orphans are removed. No code change shipped on this branch — there's nothing left to consolidate without first knowing what specific divergence you're seeing.Could you post a screenshot of
/events?type=appointment&view=calendar&cal_view=month&cal_date=2026-07-01side-by-side with your custom view at the same anchor? If a real visual diff is still present I'll dig into it; if it turns out to be the data-source / chrome difference above, we'd want a different scope (e.g. let/events?view=calendarwiden to includeproject_event+approval_request, or align the filter chrome).No
donelabel set — re-labeling toneeds-reviewand leaving the floor with you.— gitster (demeter)
Re-verification — engine still unified, build clean (hermes shift)
Picked this up after demeter's investigation on 2026-05-25 (#78 (comment)). Re-verified the state at the current main HEAD (
d1d0cf9) — same conclusion:/events?view=calendarand Custom-Viewshape=calendargo through one engine,frontend/src/client/calendar/mount-calendar.ts, called from both surfaces.Code-side proof (re-checked now)
/eventsKalender chipfrontend/src/client/events.ts:11imports +:622callsmountCalendar(host, items, { urlState: true, defaultView: "month" })shape=calendarfrontend/src/client/views/shape-calendar.ts:12callsmountCalendar(host, items, { defaultView: render.calendar?.default_view ?? "month", urlState: true })No
.frist-cal-*/.events-cal-*orphan classes anywhere infrontend/src(grep -rn). Only one orphan-y identifier remains —.events-calendar-wrap— and that's just the host<div>that mountCalendar paints into on /events. It's a 2-line margin rule (global.css:13353), not a separate engine.Bundle-side proof (locally built + downloaded prod)
Every calendar-engine string appears exactly once per bundle in both my local
bun run buildoutput and the current prod bundles athttps://paliad.de/assets/{events,views}.js:views-calendar-toolbarviews-calendar-cell--todayviews-calendar-pill--moreviews-calendar-week-gridviews-calendar-day-listviews-calendar-mobile-noticeviews-calendar-back-to-monthdashboard-cal-*(any)The
dashboard-cal-*row is the interesting one — see next section.Build hygiene (per issue hard rules)
go build ./...— cleango test ./internal/...— auth/branding/calc/changelog/db/handlers/services allokcd frontend && bun run build— clean (2892 keys, data-i18n attributes clean, dist/ written)Nothing to ship on
mai/hermes/calendar-engine-unify— branch is empty of commits.The only other calendar engine in the codebase
Grepping
frontend/srcend-to-end, there's one other thing that paints a calendar:renderMiniCalendar()infrontend/src/client/dashboard.ts:602. It's the mini multi-month dot grid that the dashboard widgets (upcoming-deadlines,upcoming-appointments) render when their per-widget view is set tocalendar. DOM is.dashboard-cal-*, not.views-calendar-*. Very different UX:/events+/views/{slug})+Nmore, each dot is the link?cal_view=,?cal_date=frontend/src/client/calendar/mount-calendar.ts(579 LoC)frontend/src/client/dashboard.ts:602-680(~80 LoC)It is a deliberately separate engine because the widget needs a glanceable, fixed-height card; mountCalendar's toolbar + full pills would not fit. Database check: no user currently has any widget set to view=
calendar(SELECT … FROM paliad.user_dashboard_layouts WHERE layout_json::text ILIKE '%calendar%'→ empty), so this isn't what you're seeing in your example URL either.What could still look different — perceptually
/events?type=appointment&view=calendaronly renders rows of kindappointment(one pill colour). A Custom-View withsources=[deadline, appointment, project_event, approval_request]renders up to 4 pill colours on the same date. Same engine, different inputs..views-calendar-*element is identical.defaultView: "month". Custom Views honourrender_spec.calendar.default_view— a saved view can pin toweek..events-calendar-wraphasmargin: 0.25rem 0 1rem;.views-shape-hosthasmargin-top: 16px. Cosmetic only — could be aligned in a separate one-line PR if you want them visually flush.Where this leaves us
The "unify the engines" work was already shipped by t-paliad-224 / m/paliad#55 (2026-05-20). I won't ship a no-op commit on
mai/hermes/calendar-engine-unify— the branch is clean and the worktree retires here.If you still see a visual diff between the two URLs in your report, the most useful thing for the next worker would be two screenshots at the same
cal_date=2026-07-01anchor — one of/events?type=appointment&view=calendar&cal_view=month&cal_date=2026-07-01and one of whatever Custom-View URL you're comparing against. Then either:renderMiniCalendarintomountCalendarwith a "mini" mode (non-trivial — different UX contract), orLabels: leaving as-is (only
deferred/doneexist on this repo, noneeds-review). Per project convention I won't close the issue; flip todonewhen you've confirmed there's nothing left to chase.— gitster (hermes), branch
mai/hermes/gitster-unify-calendar, no commits.Commit: n/a (no-op; verification only).