Universal filter + view-mode primitive across all entity-views #23
Open
opened 2026-05-08 19:35:21 +00:00 by mAi
·
1 comment
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.
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: m/paliad#23
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 verbatim 2026-05-08 21:34, after reviewing /inbox?tab=mine:
Why this matters
Paliad already exposes ~7 list-shaped surfaces —
/deadlines,/appointments,/agenda,/inbox(both tabs),/projects(cards / tree / list), the custom user-views (/views/<id>), the new dashboard inline Agenda + Letzte Aktivität — and each one has reinvented its own filter chrome:?project=on /tools/fristenrechner; absent on /inbox.?sort=on a couple of routes; nothing on /inbox.The result is exactly what m saw on /inbox?tab=mine — bare list, no scope to project, no timeframe, no type, no sort, looks unfinished compared to the surfaces that did get filter polish. Filing each as a separate bug would mean re-deriving the same primitives 5+ times.
Inventor's brief
Design a single composable filter primitive that every list-shaped surface consumes. Take a position on:
Filter axes that are universal vs per-surface. Project-scope is universal; "requester / approver" only applies to /inbox; "deadline status" only applies to /deadlines. Decide which axes go in the shared bar and which stay per-surface, and how the bar declares its supported axes (config object? slot composition? higher-order component?).
State model. URL-driven (every filter is a query param, deep-linkable, refresh-survives) vs in-memory (faster but loses on reload) vs hybrid (URL for primary axes, localStorage for view-mode preferences). Match paliad's existing pattern where it makes sense; deviate where it improves.
View-mode switcher. cards / list / table — universal, or per-surface declared? table-mode implies sortable column headers — does the primitive own column-sort state, or does each surface manage that internally? Density toggle (compact vs comfortable) belongs here too.
Composability. The bar needs to drop into existing TSX pages (/inbox, /deadlines, /appointments, /agenda, custom views) without forcing every surface to refactor. Propose a clean API.
Reuse with the existing /projects layout-spec (custom user-views in
paliad.user_view_layouts). The custom-view editor already lets users pick filter axes — does the universal bar inherit from that spec, or does the spec become a special case of "saved bar state"? m's hint: "halfway there without custom views" — leaning towards the latter.Migration path. Each existing list surface has its own filter UI today. Phase the rollout: ship the primitive on one surface (likely /inbox since it has the least to lose), then port others as separate PRs. Identify the one surface with the most complex filter today (likely /deadlines or /events) so the primitive is designed wide enough to absorb it.
"Save this filter as a view". The custom-view editor already does this for a few surfaces. The universal bar should make this affordance trivial — every surface gets "save current filter as named view" for free.
Hard requirements
Read first (in this order):
frontend/src/client/projects-cards.ts— cards/tree/list switcher + layout-spec consumerfrontend/src/client/agenda.ts+client/agenda-render.ts— current chip + project filter patternfrontend/src/client/deadlines.ts+client/events.ts— bucket chips + multi-select filterfrontend/src/client/inbox.ts— what's missing todayfrontend/src/client/views.ts+client/views-editor.ts— saved-view shape + how layout specs persistfrontend/src/client/views/shape-cards.ts+views/shape-list.ts+views/shape-calendar.ts— view-mode renderersinternal/services/layout_spec.go— server-side layout-spec modelpaliad.user_view_layoutstableDO NOT auto-flip to coder. Report
mai report completed "DESIGN READY FOR REVIEW"and stop. Head will surface to m for go/no-go before any coder shift (m/mAi#142).No hour estimates. Slice/phase the rollout; describe order, not duration.
No
.entity-tablerow-click contract violations — the bar'scards | list | tablemodes must respect paliad's existing row-handler pattern (see CLAUDE.md frontend conventions).Output as
docs/design-universal-filter-2026-05-08.md. Commit + push to a branch.Out of scope
Filed by
paliad/head from m's 2026-05-08 21:34 instruction. Linked to the current dogfood on /inbox?tab=mine which is the most visibly under-filtered surface.
Locked positions (m greenlit 2026-05-08 21:47)
<dialog>s)approval_viewer_rolechip cluster?time=?sources=?d_status=etc.)?type=legacy redirect kept for one releaseurlNamespaceDesign doc:
docs/design-universal-filter-2026-05-08.mdonmai/riemann/inventor-universal(commit1e23745).riemann shifted to
/mai-coder. Phase 1 = /inbox +<FilterBar>primitive + axis registry + URL codec. Slices ship at boundaries; we discuss Phase 2 after m dogfoods Phase 1.