This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
Commit 95bd23c
feat(plugin-timeline): declare
Fixes #8654
Clause-②: yes
`navigation` is now declared on the `object-timeline` block, by
reference to the spec. This is the timeline arm of the objectui#8652
maintainer ruling (verbatim 「B」): declare the key on the platform
element schema first, then mirror it here. The platform half shipped in
`@objectstack/spec` 17.5.0, the release this repo resolves:
`ComponentPropsMap['object-timeline']` declares `navigation:
NavigationConfigSchema.optional()`, and its docblock names it the spec
half of that ruling, honoured standalone, with no enclosing view.
Dispatched by the `domain:spec @ objectui` seat (objectui#10217),
session `https://claude.ai/code/session_01VhxTqosz7wn54ahqyxgERT`.
## Premises, re-measured on `origin/main` `cd5b19a7e` before the first
edit
- **H1 holds; no edit there.** `ObjectTimelineBlockSchema` reads the
spec row by reference in its `properties` bag. On the installed 17.5.0,
`{ type: 'object-timeline', properties: { navigation: { mode: 'drawer' }
} }` parses on `safeValidateSchema` and on `StrictAnyComponentSchema`. A
bad `mode` is refused at `properties.navigation.mode` and a bogus member
at `properties.navigation`, on both faces. A parse writes no default.
`objectql.zod.ts` is untouched.
- **H2 confirmed, but its placement is falsified.** The TypeScript
checker (`getPropertyOfType`, not a grep) reads `navigation` as NOT
DECLARED on `ObjectTimelineProps['schema']` and on `TimelineSchema`; the
read went through `(schema as any).navigation`. The same instrument's
lit control is the reason this PR does not put the member on
`TimelineSchema`: `objectName`, a member of the same spec row, reads
DECLARED on the plugin-local half of `ObjectTimelineProps['schema']` and
NOT DECLARED on `TimelineSchema`. A nonsense key reads not declared on
both.
- `TimelineSchema` is the presentational rail (`type: 'timeline'`). Its
docblock calls its vocabulary disjoint from the object-bound one by
design, and `TimelineRenderer` never reads `navigation`.
- The spec declares `navigation` on the `object-timeline` row only and
has no `timeline` component row. Declaring it on `TimelineSchema` would
add the key to a face the spec does not declare it on (the dispatch's
zone-1 ruling forbids that).
- Measured: the strict face refuses `objectName` on `type: 'timeline'`.
A `navigation` declared there could not build the `new_window` URL,
which needs the object name.
- objectui#8220 handled `filter` and `sort` on these same two tags the
same way: registration `inputs` on both tags, `TimelineSchema` left
alone.
- ⇒ The member is declared on the object-bound half of
`ObjectTimelineProps['schema']` in
`plugin-timeline/src/ObjectTimeline.tsx`, beside `objectName`,
`timeline`, `filter` and `sort`. That file is inside the claim.
`@object-ui/types` is NOT changed: neither `data-display.ts` nor
`zod/data-display.zod.ts` is touched, so this PR does not overlap the
objectui#6152 round-5 region.
- **H3 confirmed.** Neither registration published `navigation`. The
description was written from measurement on the real component, and it
differs from the board's and the calendar's in two places, as listed
under Acceptance notes.
- **H4 confirmed: the guard owes nothing here and cannot take a pin
yet.** `registry-inputs-spec-parity.test.ts` books `object-timeline` in
`UNJUDGED_SPEC_BLOCKS`, owed to objectui#11168 (it does not load the
lazily registered block). Its assertion `every member pin names a key
that is still array/object-armed on a covered block` would refuse a
`MEMBER_PINS` entry for `object-timeline.navigation`. So that file is
NOT edited. The pin file below names the block and the key, so the
locator accepts it when slice 3 registers the entry.
## What changed
- `@object-ui/plugin-timeline`:
- `ObjectTimelineProps['schema']` declares `navigation?:
ViewNavigationConfig`, the spec's `NavigationConfig` type that
`ObjectGridSchema`, `ObjectKanbanSchema` and `ObjectCalendarSchema` use.
`ObjectTimeline` reads `schema.navigation` with no cast. The read still
supplies no default (see Acceptance notes).
- Both registrations, `object-timeline` and `view:timeline`, publish a
`navigation` input typed `object`, with one shared description. Both
tags carry it for the reason both carry `filter` and `sort`:
`view:timeline` is the same renderer under a second tag. That is also
the calendar precedent from PR objectui#11292 (`OBJECT_CALENDAR_INPUTS`,
shared by `object-calendar` and `calendar`).
- Docs (AGENTS.md #2): `README.md` and
`content/docs/plugins/plugin-timeline.mdx` document the object-bound
block's `properties` bag and its `navigation` key, member by member,
with the three cases that open nothing.
- Changeset `.changeset/8654-timeline-navigation.md`:
`@object-ui/plugin-timeline` minor (a widening). The fixed group moves
together anyway.
### Pins
- `object-timeline-navigation-8654.test.tsx`:
- the spec premise, read live from the installed spec: it declares the
key, and it refuses a bad `mode` at `navigation.mode`;
- on both validator faces, value-level: every mode parses, a bad `mode`
is refused at `properties.navigation.mode`, a bogus member is refused,
the retired `view` member is refused, and a parse writes no default;
- the TS face: an `Equal` assertion, a `@ts-expect-error` bad-mode row,
and a valid block that annotates with no cast;
- both registrations: the input is declared as `object`, the html tier
accepts the block and refuses a string by kind, and a control prop is
still reported as unknown;
- end to end through the real `SchemaRenderer` and registry, on both
tags: an authored drawer block opens the record, and the same node
without the key opens nothing.
- `timelineNavigationMembers-8654.test.tsx`, the member pin: every
member through a real entry click on the real `ObjectTimeline`,
`useNavigationOverlay` and overlay shell:
- `drawer` (the lit control), `modal` and `popover` open the entry's
record;
- `none` opens nothing, and `preventNavigation` outranks an overlay
mode;
- `new_window` opens the record page in a new tab, and `openNewTab` does
too, outranking both `page` and `drawer`;
- `size` resolves through the bucket table, a deprecated `width` wins
over `size`, and `auto` gives the unsized width;
- a parent `onRowClick` outranks the whole key;
- four warning rows hold the description to the truth: an absent key,
`page`, a mode-less block and `split` each open nothing.
## Verification, on `b6a1f6057` (the head of this PR)
- The dependency closure was built first (`pnpm --filter
'@object-ui/plugin-timeline^...' run build`, 9 packages). `pnpm --filter
@object-ui/plugin-timeline run type-check` echoed `tsc --noEmit && tsc
-p tsconfig.test.json` and exited 0. `tsc -p tsconfig.test.json
--listFilesOnly` lists both new pin files, with the objectui#8220 pin as
the control.
- `pnpm exec vitest run packages/plugin-timeline/`: `Test Files 41
passed (41)`, `Tests 461 passed | 34 skipped (495)`. The skips are all
in the existing `dateOnlyZone-10866` files. The two new files: 22 + 16
passed.
- Neighbouring suites that read these registrations, this source, or the
object-timeline arm: 26 files, `Tests 1409 passed (1409)`. They cover:
- console: `registry-inputs-spec-parity`, `public-contract`,
`public-block-binding-reach`, `timelineAxisRefusalReach-7070`,
`filterContextTokensSweep-10666`, `pullToRefreshOwner-10105`;
- types: `object-timeline-arm-10859-b3`,
`object-kanban-calendar-navigation-8652`, `timeline-declared-keys`,
`zod-mirror-parity`, `base-bind-declared`,
`timeline-catalog-fixture-migrated`;
- `navigationOverlayConsumers.onRowClickArity-9357`,
`ObjectTree.schemaTyped-8655`,
`registered-types-validate-ratchet-10859`, `catalog-gallery-render`, the
list and view timeline-binding suites;
- the script tests for component-surface-parity,
designer-field-key-parity, handler-key-read-sites,
prompt-component-keys, sdui-registration-pins, registry-bare-names and
date-only-zone-pins.
- Gates exiting 0:
- `check:designer-field-key-parity`, `check:component-surface-parity`,
`check:prompt-keys`, `check:handler-key-reads`,
`check:registry-bare-names`, `check:element-data-source-declaration`,
`check:spec-symbols`;
- `check:doc-types`, `check:doc-fences`, `check:doc-example-ids`,
`check:doc-example-readers`;
- `check:new-line-citations`, `check:control-bytes`,
`check:installed-pin-claims`, `check:comment-mask-corpus`,
`check:unreferenced-sources`, `check:phantom-deps`,
`check:shell-escape-residue`, `check:i18n-keys`;
- `check:test-path-roots` and the three `check:vi-mock-*`;
- `check:changeset-claims`, `check:pending-changeset-literals`,
changeset presence and no-major;
- `check:readme-exports`, `check:doc-snippets` and `check:doc-examples`,
each run after the doc-snippet build closure was built (the first
`readme-exports` run reported a collapsed population on an unbuilt tree,
which is not a verdict);
- `check:sdui-registration-pins` and `check:eager-closure`, each run
after a full console build (the first console build stopped on an
unbuilt `@object-ui/plugin-tree`, which is a prerequisite miss, not a
verdict).
- Lint, as a declared narrowing:
- `eslint --no-inline-config --format json` over the 4 changed TS files
reports 4 files and 0 errors.
- Warnings against the base blobs: `ObjectTimeline.tsx` 28 to 27 (the
removed cast) and `index.tsx` 5 to 5. The new contract pin carries 1,
the deliberate `any` in its `Equal` control.
- `eslint.config.js` enables no type-aware linting (no `parserOptions` /
`projectService`). None of the 10 rule sources under `eslint-rules/`
reads the filesystem; as a control, 9 of them contain `context.report`.
So this diff cannot move a verdict on an untouched file.
- The repo-wide `pnpm lint` is left to CI.
### Ablations, each committed first, run through `ablation-replace.mjs`,
and restored to `HEAD`
Each ablation was proven landed by anchor count and blob change. Each
restore was proven by blob equals `HEAD` and an empty `git diff HEAD`,
and the tree was clean afterwards.
- **TS member removed** (renamed away, so the import stays used): `tsc
-p tsconfig.test.json` exits 2, with TS2344 on the `Equal` assertion and
TS2578 (unused `@ts-expect-error`) on the bad-mode row. This was the
predicted direction.
- **Renderer read ignores the authored key** (`navigation: undefined`):
11 failed and 27 passed. The 11 are exactly the rows where a click opens
something: 9 member rows and the 2 end-to-end drawer rows. Every "opens
nothing" row and the parent-handler row stayed green. navigation on object-timeline, by reference to the spec (objectui#8654) (#11324)1 parent 0e6e76b commit 95bd23c
7 files changed
Lines changed: 671 additions & 2 deletions
File tree
- .changeset
- content/docs/plugins
- packages/plugin-timeline
- src
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
180 | 222 | | |
181 | 223 | | |
182 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
78 | 109 | | |
79 | 110 | | |
80 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
174 | 209 | | |
175 | 210 | | |
176 | 211 | | |
| |||
750 | 785 | | |
751 | 786 | | |
752 | 787 | | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
753 | 793 | | |
754 | | - | |
| 794 | + | |
755 | 795 | | |
756 | 796 | | |
757 | 797 | | |
| |||
0 commit comments