Skip to content

fix(dashboard): retire the dashboard-root title read on all five surfaces - #7622

Merged
os-sam merged 1 commit into
mainfrom
claude/issue-7509-dashboard-root-title-retire
Sep 4, 2026
Merged

fix(dashboard): retire the dashboard-root title read on all five surfaces#7622
os-sam merged 1 commit into
mainfrom
claude/issue-7509-dashboard-root-title-retire

Conversation

@os-sam

@os-sam os-sam commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Fixes #7509

Retires the five dashboard-root title read arms as one class under ADR-0049, per the maintainer ruling of 2026-09-04 (decision batch #29, option C, verbatim 「同意」 — recorded on comment 5536191958). label — REQUIRED on @objectstack/spec's DashboardSchema — becomes the only header source, then the raw name.

The five root arms, and how each receiver was established

The whole difficulty of this card is that raw .title occurrence counts in these files are 1 · 5 · 5 · 9 · 1 and only one per file is the dashboard-root arm. Arms were separated by receiver, never by grep. Counts reproduced on origin/main 1bae75bb with a lit control (.label occurrences: 1 · 7 · 2 · 3 · 1).

# File Retired arm Receiver, and how it was established
1 app-shell/src/views/DashboardView.tsx :191 resolveKeyedI18nLabel(headerSrc.title, t) headerSrc = (previewSchema as any) || dashboard; previewSchema is a useMemo local to this view (:129) returning a widget-pruned copy of dashboard, and dashboard = preferLocal(dashboards, dashboardName, …) off useMetadata().dashboards. Both arms therefore resolve to the stored sys_dashboard document ROOT.
2 plugin-dashboard/src/DashboardRenderer.tsx :947 const headerTitle = schema.title || schema.label schema: DashboardComponentSchema — the component's own prop (:185), i.e. the dashboard root. The file's four other .title occurrences all name the WIDGET key: one code read (:360, resolveLabel(widget.title)) and three comments about it (:348, :671, :672).
3 plugin-dashboard/src/DashboardGridLayout.tsx :394 schema.title || pickLocalized(schema.label, language) || 'Dashboard' schema: DashboardComponentSchema prop (:39). The other four all name the WIDGET key: two code reads (:272, :500) and two comments (:452, :494).
4 plugin-designer/src/DashboardEditor.tsx :467 schema.title || t('appDesigner.dashboardPreview') Inside function DashboardPreview({ schema }: { schema: DashboardComponentSchema }) (:462) — the root. Eight of this file's nine .title occurrences are the widget key, reached through resolveWidgetTitle / writeWidgetTitle (:149, :197, :240, :322, :364, :482, …) and are untouched.
5 plugin-designer/src/pages/DashboardDesignPage.tsx :138 (dashboard as any).label || (dashboard as any).title || dashboardName dashboard = dashboards?.find((d) => d.name === dashboardName) (:25) — the stored document root.

Widget-level widget.title is a DIFFERENT, DECLARED keyDashboardWidget.title, the spec's I18nLabel — and is untouched. Every pin below carries an explicit widget-level control for that reason; on DashboardEditor the control covers both the display read and the authoring write, since a grep-driven sweep there would have removed the only way to name a widget in the designer.

One extra edit in the declared file surface, named explicitly

DashboardDesignPage.tsx:42 seeded title: dashboardName ?? '' in the not-found literal — the only dashboard-document literal this repo authors. It now spells label. Evidence that this moves no behaviour: the seed is reachable only on the !dashboard branch, which early-returns "not found" (:120-125) and never reaches handleChange / saveSchema, so it cannot persist; and the same literal already carries name: dashboardName ?? ''. Pinned by the second describe block of DashboardDesignPage.rootTitleRetired.test.tsx.

Pins — refusal-shaped, one per arm

New, in the #5830 / #5852 form (what a document carrying the retired key RENDERS, never that it compiles):

  • packages/app-shell/src/views/DashboardView.rootTitleRetired.test.tsx
  • packages/plugin-dashboard/src/__tests__/DashboardRenderer.rootTitleRetired.test.tsx
  • packages/plugin-dashboard/src/__tests__/DashboardGridLayout.rootTitleRetired.test.tsx
  • packages/plugin-designer/src/__tests__/DashboardEditor.rootTitleRetired.test.tsx
  • packages/plugin-designer/src/__tests__/DashboardDesignPage.rootTitleRetired.test.tsx

Each asserts: a document carrying both renders the label; a document carrying only the retired key falls through to name / the generic heading; a label-only control (without which "the title is absent" would also be satisfied by a header that renders nothing); and a widget-level control.

One non-obvious precondition, stated in the renderer pin: DashboardRenderer's header wrapper is gated on header being declared (objectui#5812), so every fixture there declares it. A fixture without header would have asserted the absence of a title the wrapper gate had already removed — and would have passed with the retired arm fully intact.

⚠️ Two pre-existing pins asserted the retired behaviour — rewritten, not deleted

Both were found by running the suites, not by grep, and both are the "this fixture pins exactly the branch you deleted" case:

  1. dashboardAuthoredInputs.test.tsx — the block headed "the legacy title read stays — non-author surface, still honoured (objectui#5742)". Its title-stays leg is superseded by this ruling; the block is inverted (a wild title-only document now gets no header title, a document with both shows the label) and the file's header prose carries a ⚠️ SUPERSEDED-IN-PART note. dashboard publishes only columns/gap/className as inputs — widgets, title, header, globalFilters, dateRange, refreshInterval all draw unknown-prop while the renderer honours them #5742's actual subject is unchanged: title stays out of the published inputs, and its reason only got stronger — the key is now neither authorable nor read.
  2. DashboardGridLayout.inlineLocaleLabel.test.tsx — the case "keeps title ahead of label in the precedence chain", inverted to "resolves the label map even when a legacy root title is also present". This is now the strongest non-vacuity control in that file: before the retirement, a document carrying both never exercised pickLocalized at all.

Rewritten rather than deleted because each file makes a claim about this renderer's behaviour on this key; a file that dropped the case would leave its own claim unmade.

Fixture sweep — by the rule's consuming radius, not by edited package

  • TS/TSX: an AST-shaped sweep of every dashboard-root object literal found 9 carrying title (control: 21 carrying label). Exactly one asserted its root title value — DashboardRenderer.headerActions.test.tsx's textHeaderDashboard ('Executive Dashboard', asserted 4×), renamed to label with every assertion unchanged (it pins the header wrapper's geometry, not the spelling). Its sibling helper in the same file was renamed for coherence; the remaining 7 literals never assert their root title and their verdicts do not move.
  • JSON: all 627 tracked JSON files parsed structurally — 9 dashboard-shaped nodes, 6 carrying a root title, all type: 'dashboard' catalog examples. None declares header, and DashboardRenderer gates its header section on header &&, so those six rendered no header title before this change either: zero visible change, nothing to migrate. Recorded as an out-of-scope finding rather than migrated.

Clause-②: no — re-judged from this diff

No published name moves. DashboardComponentSchema.title stays declared in @object-ui/types (untouched here), BaseSchema carries an index signature so an authored title still type-checks, and the Zod twin is not .strict(), so no accept set moves in either direction. What changes is renderer behaviour on a key @objectstack/spec already refuses by name (unrecognized_keys(title), 422 at the save route). The published SDUI manifest is unchanged — dashboardAuthoredInputs still asserts the exact ten-entry inputs list and passes.

Verification

Heavy runs went through objectstack/scripts/pm/os-verify-lock.sh with OS_VERIFY_LOCK_SLOT=issue-7509-objectui set before the first attempt; every exit code was captured by redirecting to a file before reading, never through a pipe, and each result is quoted from the gate's own verdict line.

  • Dependency closure built firstpnpm --workspace-concurrency=2 --filter 'PKGNAME^...' build for all three packages, VERDICT command-exit 0. Not optional: the first type-check attempt failed with TS2307 Cannot find module '@object-ui/types' until it ran.
  • Union, re-run on the final commit 3fb4a23fpnpm exec vitest run packages/plugin-dashboard/ packages/plugin-designer/ packages/app-shell/ from the repo root (never a package cwd, never a path behind a bare double-dash): Test Files 724 passed (724), Tests 6870 passed, 1 skipped (6871), VERDICT command-exit 0. The union is quoted from the run on the FINAL commit, not an earlier tree.
  • Type-checkpnpm --filter … run type-check for all three packages, exit 0, each script name echoed (so not a zero-match no-op). Non-vacuity is measured, not asserted: each package's type-check is tsc --noEmit && tsc -p tsconfig.test.json, and an earlier iteration failed on TS2550 inside one of the new pin files — direct proof the new tests are in the checked set.
  • Reverse verification, direction stated before running. Implementation committed first, then the five source files restored from origin/main; the mutation was confirmed on disk by five distinct markers (each grep -c = 1) plus a non-empty git diff HEAD. Result: 13 of 24 red, 11 green — every one of the five pin files went red. The 11 green are informative rather than noise: DashboardDesignPage's "carrying BOTH" case stays green because the old chain was already label || title || name (only its title-only case moves), and DashboardEditor's widget-level display/authoring controls stay green, which is exactly the asymmetry that shows the root arm was measured and the widget arm was not touched. No rebuild was needed — every subject is imported by relative path from its own package source, so no dist/ participates. Restore leg proven byte-exact: git diff HEAD empty and all five worktree blob hashes equal to their HEAD blobs.
  • Gates, derived by hand from this repo's check:* scripts and .github/workflows/ (scripts/pm/dispatch-gates.mjs lives in objectstack and answers only about its own tree): check:control-bytes"OK (scanned 6228 tracked text file(s); skipped 85 binary)" · check:spec-symbols ✅ · check:vi-mock-specifiers ✅ · check:vi-mock-inherit ✅ · check:i18n-keys exit 0 · check:lint-coverage"46/46 packages linted, 0 with outstanding errors" · check-changeset-presence ✅ · check-changeset-no-major ✅ · check-changeset-overwrite ✅ · check-changeset-fixed ✅. Plus a manual control-byte self-scan over all 14 changed/added files: no match.
    • check:sdui-registration-pins is NOT MEASURED, not red: it exits 2 with "No console build to weigh at apps/console/dist/assets" — an unmet prerequisite, left to CI, which builds it. The registration surface it guards is nonetheless covered here by dashboardAuthoredInputs' exact-inputs assertion.
  • DECLARED NARROWING — the repo-wide pnpm lint was narrowed to the three affected packages, with all three pieces of evidence: (i) the checked population comes from eslint's own config resolution, not my guess; (ii) the count 1241 files is read from --format json output; (iii) eslint.config.js enables no type-aware linting (0 occurrences of parserOptions.project / projectService; control: rules occurs 10× in that file, so the grep shape is live), so every rule is per-file and this diff cannot move the verdict on an untouched file. Result: exit 0, 0 errors, 1241 files. CI runs the full farm regardless.

Serial constraint, re-measured at claim time

Six open PRs; each one's file list was read rather than its title. #7608 (4 files), #7606 (1 file), #5400 (200 files, both pages) and three dependabot manifest bumps — none touches any of the five files.


🤖 Generated with Claude Code

https://claude.ai/code/session_01KbJQ1y1J12nZxYzFWhP8Q3


Generated by Claude Code

…rfaces

The five dashboard-ROOT `title` read arms retire together under ADR-0049
(objectui#7509, maintainer ruling 2026-09-04, decision batch #29, option C).
`label` — REQUIRED on `@objectstack/spec`'s `DashboardSchema` — becomes the
only header source, then the raw `name`.

`DashboardSchema` refuses a root `title` BY NAME (`unrecognized_keys(title)`)
and the save route answers 422, so no authored document can acquire the key;
what retires is compatibility with documents stored before that refusal. Five
surfaces read the legacy spelling independently, so one stored document could
show one header in the console and a different one in the designer — which is
why the ruling refused retiring any single arm.

Widget-level `widget.title` (`DashboardWidget.title`, the spec's `I18nLabel`)
is a different DECLARED key and is untouched; root and widget arms were
separated by receiver, not by grep, and every pin carries a widget control.

Each arm gets a refusal-shaped pin in the #5830 / #5852 form. Two existing
pins asserted the retired behaviour and were rewritten rather than deleted:
`dashboardAuthoredInputs`' "the legacy `title` read stays" block (its #5742
exclusion of `title` from published inputs is unchanged) and
`DashboardGridLayout.inlineLocaleLabel`'s precedence case.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KbJQ1y1J12nZxYzFWhP8Q3
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3182.6 KB 3191.4 KB
Main entry chunk (gzip) 143.2 KB 350 KB
Entry file index-DQyaZTMR.js
Status PASS

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 15.67KB 5.75KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 5.13KB 2.35KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 516.24KB 117.84KB
core (index.js) 6.12KB 2.42KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 180.00KB 50.20KB
fields (index.js) 242.40KB 61.26KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 4.28KB 1.75KB
i18n (index.js) 3.65KB 1.47KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.98KB 10.98KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.32KB 1.64KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 11.71KB 4.29KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 5.12KB 1.74KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 15.75KB 3.80KB
plugin-calendar (index.js) 48.09KB 13.34KB
plugin-charts (index.js) 70.92KB 19.75KB
plugin-chatbot (index.js) 196.19KB 46.43KB
plugin-dashboard (index.js) 132.86KB 34.68KB
plugin-designer (index.js) 212.86KB 43.19KB
plugin-detail (index.js) 250.59KB 64.06KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 132.87KB 32.66KB
plugin-gantt (index.js) 167.40KB 41.05KB
plugin-grid (index.js) 210.75KB 56.95KB
plugin-kanban (index.js) 52.71KB 14.55KB
plugin-list (index.js) 113.28KB 27.59KB
plugin-map (index.js) 20.55KB 6.80KB
plugin-markdown (index.js) 13.72KB 4.69KB
plugin-report (index.js) 43.57KB 11.96KB
plugin-timeline (index.js) 30.84KB 8.85KB
plugin-tree (index.js) 9.38KB 3.22KB
plugin-view (index.js) 85.24KB 20.94KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 81.07KB 26.86KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 5.41KB 2.34KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 4.93KB 2.24KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 20.57KB 5.88KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 10.35KB 3.60KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.74KB 1.41KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.58KB 2.23KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@os-sam
os-sam marked this pull request as ready for review September 4, 2026 08:16
@os-sam
os-sam added this pull request to the merge queue Sep 4, 2026
Merged via the queue into main with commit 1cca678 Sep 4, 2026
34 checks passed
@os-sam
os-sam deleted the claude/issue-7509-dashboard-root-title-retire branch September 4, 2026 08:31
os-sam pushed a commit that referenced this pull request Sep 4, 2026
…boards

The six `filtered-*` entries under
`examples/schema-catalog/src/schemas/plugin-dashboard/` author a root `title`
that no arm reads. objectui#7509 (PR #7622) retired the last root `title`
reader across all five dashboard surfaces; `DashboardRenderer` reads
`schema.label` and gates the whole header section on `header` being declared
(objectui#5812). None of the six declares `header`, so they rendered no header
title before that retirement and render none after — the key was already inert,
and this makes the inertness total.

Renaming it to `label` was rejected: it would give six shipped examples a
header they have never had, which is a feature, not a cleanup.

Adds a pin, because nothing else in the repo can notice the key coming back:
no renderer reads it, `@object-ui/types` still declares `title?: string`, and
`@objectstack/spec` — which does refuse it by name — is not this corpus's
validator.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KbJQ1y1J12nZxYzFWhP8Q3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

finding(app-shell): DashboardView's header comment cites DashboardSchema.title, a key the spec refuses BY NAME

2 participants