This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
feat(plugin-tree): add tree / tree-grid object view type (#1885) - #1892
Merged
Merged
Conversation
Adds a new `tree` view type that renders a self-referencing object as an indented, expand/collapse tree-grid — the right view for arbitrary-depth hierarchies (business unit / org chart, category trees, BOMs, nested comments) that fixed-depth grouping can't express. - packages/plugin-tree: new ObjectTree (tree-grid) renderer + registration (object-tree / tree component types), builds a nested forest from flat records via a single-parent pointer, auto-detects the parent field from the object's `tree`/self-reference field, expand/collapse + depth seeding. - types: ViewType + zod enum gain 'tree'; ObjectTreeSchema added to the ObjectQL component union (interface + zod). - plugin-view: ObjectView dispatches 'tree' -> object-tree; ViewSwitcher icon/label. - plugin-list: ViewSwitcher icon/label. - apps/console: lazy-register object-tree/tree, dep + vite alias + manualChunk. Refs #1885 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
… full records The console renders object views via app-shell ObjectView -> plugin-list ListView (not plugin-view ObjectView), so the tree view needs wiring there too: - ListView: add a 'tree' case to the view-component switch (-> object-tree), allow 'tree' as a resolvable/whitelisted viewType, and re-run on tree config. - app-shell ObjectView: pass the view's `tree` config through options.tree so parentField/labelField/fields/defaultExpandedDepth reach the renderer. - ObjectTree: when a live object dataSource is present, fetch the tree's OWN full records instead of the host's column-scoped `data` — the host pre-fetches only display columns, which omit the parent-pointer field and flatten the tree. Verified end-to-end in the showcase console: showcase_business_unit 'Organization Chart' renders a 3-level indented tree-grid with working expand/collapse. Refs #1885 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
❌ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
This was referenced Jul 18, 2026
os-zhuang
added a commit
that referenced
this pull request
Jul 26, 2026
…#2817) `bridgePage`, `bridgeDashboard`, and the `SpecBridge#transformPage` / `#transformDashboard` methods had no runtime consumer: pages render through their own renderer and dashboards through `DashboardView → DashboardRenderer → DatasetWidget` (ADR-0021), neither routing through `SpecBridge`. The dashboard bridge's input shape (`object`/`categoryField`/`valueField`/`aggregate`) is the pre-ADR-0021 widget model, which the strict `DashboardWidgetSchema` now rejects, so the bridge could not receive a spec-valid dashboard even in principle. Flagged dead by the metadata-liveness audit (framework #1878 / #1892). The `list` and `form` bridges are the live authoring path and are untouched. BREAKING CHANGE: removes the public exports `bridgePage`, `bridgeDashboard`, and `SpecBridge#transformPage` / `#transformDashboard`. Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This was referenced Sep 9, 2026
os-warren
pushed a commit
that referenced
this pull request
Sep 10, 2026
…d (objectui#8784) The contract review on `fc1ab897c` returned FAIL on a factual point, and it is right. This commit changes prose and two hardening details; the census, the identity matching, the ledger rows, the firing controls and the derived floor are untouched. WHAT WAS WRONG. The docblock filed `507b61bf7` (PR #8763, objectui#8499) under the barrel's SILENT failure modes, beside `d908a82f4`'s collateral drop and PR #1892's omission, and `ABSENT_PENDING_RULING`'s comment argued from "the same evidence objectui#7917 used to conclude its two omissions were accidental". That is refuted by three records, re-derived here rather than taken on trust: 1. `.changeset/8499-node-slot-registered-arms.md`, present in this very tree (blob c055695 on origin/main), declares the omission and its reason — exporting a `SemanticElementSchema` / `HtmlElementSchema` pair "would publish a NAMED authoring surface (`z.enum` families, not per-tag schemas) that this card's ruling does not cover", so "the metric is left to move and said out loud instead", and "whoever wants the number back down should treat naming these families as its own decision". It also declares the movement it caused: `unexportedNodeSchemas` from `[breadcrumb, object-tree]` to 49 node types, "Measured at this branch's head, not estimated." 2. objectui#8499's ceiling review raised exactly this as blocking F1 (`5597569641`: the four "are published by the union but unreachable by name from any published entry"), with the eight barrel lines named as the remedy. 3. That review then PASSed the deferral "on the surface-widening reason alone" (`5598263402`). So the omission was declared, reasoned and reviewed. The state "a decision is owed" is correct and the rows stay; their stated BASIS was wrong. WHAT CHANGED. The docblock gains a third, non-silent way an arm loses its barrel line and says why the pin still earns its place against it: the declaration lives in a `.changeset/*.md`, which is consumed and deleted at release (measured: `59f61cfb8` "chore: release packages (#4655)" removes the batch it versioned), so the absence outlives its own explanation. `ABSENT_PENDING_RULING` becomes `ABSENT_PENDING_DECISION`, and its comment now carries the recorded argument AGAINST naming these families rather than only the case for it. The failure message names all three acceptable answers. Timing corrected: PR #8763's `merged_at` is 2026-09-09T08:11:20Z; `07:53:59Z` was the squash commit's committer date, and the "48 minutes" arithmetic built on it is gone. The "13 sub-unions" aside is corrected to 12 sub-unions plus one object arm. HARDENING, both nits the review raised. `hasRow` replaces `key in LEDGER`, so an arm declaring `type: 'constructor'` cannot ledger itself off `Object.prototype`; `Object.hasOwn` does not compile under this package's `"lib": ["ES2020", "DOM"]` (tsc TS2550), so the `.call` form stands with that measurement recorded beside it. The walk's `if (!def || seen.has(schema)) return` is split: a member with no zod definition is now pushed to `unresolved` instead of being dropped, which is what the docblock already promised. Readings unchanged after both: types suite 172 files / 3385 tests green, `type-check` exit 0, eslint 0/0 on the file. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w
akarma-synetal
pushed a commit
to akarma-synetal/objectui
that referenced
this pull request
Sep 17, 2026
…objectui#8784) (objectstack-ai#9070) * test(types): pin every AnyComponentSchema arm to a named zod export (objectui#8784) objectui#7917 found two arms with no named export on the `./zod` barrel, so `breadcrumb` and `object-tree` could not be validated on their own. PR objectstack-ai#8777 repaired both and nothing kept it repaired. Each blindness was re-measured on this base rather than inherited: `zod-mirror-parity.test.ts` builds its export population with `/^export const NAME/m`, which matches a DECLARATION and can never match `export { NAME } from './x.js'` — so it is structurally blind to a missing re-export even though `index.zod.ts` is one of the files it reads; no test pinned a list or a count on the barrel; and `scripts/measure-strict-authoring-face.mjs`, the only script that computes the census, is a self-described MEASUREMENT THROWAWAY wired into no `package.json` script and no workflow. The pin derives the arm list on every run — flatten the union recursively through nested unions and `z.lazy`, then match each leaf arm to a named export BY IDENTITY. Both properties are controls in the file rather than claims in a comment: a walk that stops at the top-level sub-unions scores exactly `options.length` arms, and a name-based match is satisfied by `export { NavigationSchema as BreadcrumbSchema }`, the parent sub-union under the arm's name, which passes every behavioural leg of objectstack-ai#8777's pin. No count is hard-coded; the only bound asserted against the real union is a floor read off that union's own top-level option count. Red on arrival, ledgered rather than repaired: `507b61bf7` (PR objectstack-ai#8763, objectui#8499) armed four arms in `layout.zod.ts` and `form.zod.ts` and touched no barrel, 48 minutes after objectui#8784 was filed on a census reading 107 arms / 107 named / 0 unnamed. This base reads 111 arms / 154 type literals / 106 named / 5 unnamed. Four rows point at objectui#9067, which holds the ruling, because exporting them mints new names on a published surface; the fifth, `RetiredKanbanNodeSchema`, is a refusal arm the barrel already declares deliberately internal. A stale-row leg deletes any row the moment its arm is exported or stops existing. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w * test(types): correct the pin's account of why four arms are unexported (objectui#8784) The contract review on `fc1ab897c` returned FAIL on a factual point, and it is right. This commit changes prose and two hardening details; the census, the identity matching, the ledger rows, the firing controls and the derived floor are untouched. WHAT WAS WRONG. The docblock filed `507b61bf7` (PR objectstack-ai#8763, objectui#8499) under the barrel's SILENT failure modes, beside `d908a82f4`'s collateral drop and PR objectstack-ai#1892's omission, and `ABSENT_PENDING_RULING`'s comment argued from "the same evidence objectui#7917 used to conclude its two omissions were accidental". That is refuted by three records, re-derived here rather than taken on trust: 1. `.changeset/8499-node-slot-registered-arms.md`, present in this very tree (blob c055695 on origin/main), declares the omission and its reason — exporting a `SemanticElementSchema` / `HtmlElementSchema` pair "would publish a NAMED authoring surface (`z.enum` families, not per-tag schemas) that this card's ruling does not cover", so "the metric is left to move and said out loud instead", and "whoever wants the number back down should treat naming these families as its own decision". It also declares the movement it caused: `unexportedNodeSchemas` from `[breadcrumb, object-tree]` to 49 node types, "Measured at this branch's head, not estimated." 2. objectui#8499's ceiling review raised exactly this as blocking F1 (`5597569641`: the four "are published by the union but unreachable by name from any published entry"), with the eight barrel lines named as the remedy. 3. That review then PASSed the deferral "on the surface-widening reason alone" (`5598263402`). So the omission was declared, reasoned and reviewed. The state "a decision is owed" is correct and the rows stay; their stated BASIS was wrong. WHAT CHANGED. The docblock gains a third, non-silent way an arm loses its barrel line and says why the pin still earns its place against it: the declaration lives in a `.changeset/*.md`, which is consumed and deleted at release (measured: `59f61cfb8` "chore: release packages (objectstack-ai#4655)" removes the batch it versioned), so the absence outlives its own explanation. `ABSENT_PENDING_RULING` becomes `ABSENT_PENDING_DECISION`, and its comment now carries the recorded argument AGAINST naming these families rather than only the case for it. The failure message names all three acceptable answers. Timing corrected: PR objectstack-ai#8763's `merged_at` is 2026-09-09T08:11:20Z; `07:53:59Z` was the squash commit's committer date, and the "48 minutes" arithmetic built on it is gone. The gpgsig -----BEGIN PGP SIGNATURE----- wsFcBAABCAAQBQJqo01mCRC1aQ7uu5UhlAAANFoQAHOYAYecIHPZ1I9+k/D1sK3b Zms9VlD2R12QwgsGa21vPsCgq+P5RuNX6d9BJVa8iBWOGaypdVGspbEl282oC5hb Fn7YAenpnx8dbL7W0CqaFcfS8j4gxy/f2SBb5zaE95O8X9UDcgJJqYw42aWRJMG3 qV7s7/Baxzzaj2MxkFmJe1BxHpkcod96F9qOrOqLICrEE1nBPprjZaQjUBRlyRwn F2Xs8Wu9pzYoAJv1/LuzJ2Rh+75Ocj2TTBz44gidx75MfPJFn/T2Y53ALWKBgM99 BKcaBib8fRvyAR5Iph9RDF3h9zigUOY7w1ATkqbv96SKclQOjY6KDzSrd7tJWtq2 QXDKKBxfZKGP5k8NOdjzlr2v/unfad2l+7mm/k8mZSrzHGtEyNjNBMDtcjjPqXh3 6FVU/zyauWJt4H4f25UXEoktVrH7tWllP/IIc1ChbH4xuCSZdWPgUObrdLrzxW5q OlzPIL69AZk3eYPW/mJNaRIQUNf1i/0BiB0J3JyJYmn570ZVqRUYt09y0fgNOraL d/0wUUrZpC8bvRMTbwSSi7FfQMQu8X4aAi/IBePpd577i5XQL8uTGASRxRSa4yQP 9fZ6X92A7BUBLxOZrUSfIIul3eTfhrRhqAg6nnvJg6bvcgl2pNaqRpIO8gTAOE/t XcXjY5ZDBxd89ICTEoJO =CAPn -----END PGP SIGNATURE----- "13 sub-unions" aside is corrected to 12 sub-unions plus one object arm. HARDENING, both nits the review raised. `hasRow` replaces `key in LEDGER`, so an arm declaring `type: 'constructor'` cannot ledger itself off `Object.prototype`; `Object.hasOwn` does not compile under this package's `"lib": ["ES2020", "DOM"]` (tsc TS2550), so the `.call` form stands with that measurement recorded beside it. The walk's `if (!def || seen.has(schema)) return` is split: a member with no zod definition is now pushed to `unresolved` instead of being dropped, which is what the docblock already promised. Readings unchanged after both: types suite 172 files / 3385 tests green, `type-check` exit 0, eslint 0/0 on the file. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w * docs(changeset): drop the withdrawn "48 minutes" clause from the 8784 changeset One clause, on the seat's ruling. `.changeset/8784-arm-named-export-pin.md` is release-note input — it is consumed into `packages/types/CHANGELOG.md` at the next publish — so it outlives the PR body that already carries the correction, and it was the last place in this branch still reading off the committer date. Replaced: "and touched no barrel — 48 minutes after objectui#8784 was filed on a census reading 107 arms / 107 named / 0 unnamed." With: "and touched no barrel deliberately (PR objectstack-ai#8763 merged 2026-09-09T08:11:20Z; the omission and its reason are declared in `.changeset/8499-node-slot-registered-arms.md`)." ⛔ The interval is not restated as 66 minutes. Measured here — card created 2026-09-09T07:05:02Z, PR objectui#8763 `merged_at` 2026-09-09T08:11:20Z, so the true figure is 66.3 rather than the 48 that came off `507b61bf7`'s committer date 07:53:59Z — but the framing that made an interval meaningful was the accident premise, and that premise is withdrawn: the barrel omission was declared in objectui#8499's own changeset, raised as blocking F1 (`5597569641`) and passed on the surface-widening reason (`5598263402`). Nothing else in the file moves. Gates on the edited tree: check-changeset-presence exit 0 ("Every one of them has an EMPTY frontmatter"), check-changeset-no-major exit 0, check-changeset-fixed exit 0, check-changeset-overwrite exit 0 ("No pre-existing changeset was modified or deleted"), check-control-bytes exit 0, plus a direct `grep -naP` control-byte scan of the edited file (exit 1, no lines). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w * docs(changeset): match the changeset's top-level-member wording to the pin's docblock One clause, on the seat's ruling. Round 2 corrected this fact in the pin's docblock and did not carry the correction into the changeset, so the PR shipped two faces disagreeing about the same thing — and the changeset is the face that is published into `packages/types/CHANGELOG.md` and outlives the docblock's audience. Before: "a walk that stops at the top-level sub-unions scores exactly `options.length` arms" After: "a walk that stops at the 13 top-level members — 12 sub-unions plus one object arm (`AppComponentSchema`, an arm at depth 1), not 13 sub-unions — scores exactly `options.length` arms" The wording is taken from the docblock rather than paraphrased, and the match is measured rather than eyeballed: with jsdoc leaders stripped and whitespace collapsed, the phrase "12 sub-unions plus one object arm (`AppComponentSchema`, an arm at depth 1), not 13 sub-unions" occurs exactly once in each file. ⛔ The claim itself is unchanged — such a walk does still score exactly `options.length` arms, which is the property the derived floor rests on. ⛔ Nothing else in the file moves: "Red on arrival, reported rather than declared away" stays byte-unchanged (it asserts nothing false and is a borrowed repo idiom, `.changeset/4971-declared-arm-subset-gate.md`), and the withdrawn interval stays dropped rather than restated. Gates on the edited tree: check-changeset-presence exit 0 ("Every one of them has an EMPTY frontmatter"), check-changeset-no-major exit 0, check-changeset-fixed exit 0, check-changeset-overwrite exit 0 ("No pre-existing changeset was modified or deleted"), check-control-bytes exit 0, plus a direct `grep -naP` control-byte scan of the edited file (exit 1, no lines). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w --------- Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a
tree/ tree-grid object view type — renders a self-referencing object as an indented, expand/collapse tree-grid. The right view for arbitrary-depth hierarchies (business unit / org chart, category trees, BOMs, nested comments) that fixed-depth grouping can't express.Closes #1885. Pairs with framework PR (spec
treetype + showcase example).Changes
packages/plugin-tree(new):ObjectTreetree-grid renderer +object-tree/treeregistration. Builds a nested forest from flat records via a single-parent pointer, auto-detects the parent field from the object'stree/self-reference field, depth-seeded expand/collapse, keeps orphan rows as roots. When a live object dataSource is present it fetches its own full records (the host's column-scoped data omits the parent pointer and would flatten the tree).types:ViewType+ zod enum gaintree;ObjectTreeSchemaadded to the ObjectQL component union (interface + zod).plugin-list/ListView(the console path) andplugin-view/ObjectViewboth routetree→object-tree;app-shell/ObjectViewpasses the view'streeconfig throughoptions.tree. BothViewSwitchers get a tree icon/label.apps/console: lazy-registerobject-tree/tree, dep + vite alias + manualChunk.Testing
plugin-tree(forest building, depth indentation, expand/collapse,defaultExpandedDepth, orphan handling) — all green.plugin-tree+types.showcase_business_unit→ "Organization Chart" renders a 3-level indented tree-grid with working expand/collapse (Acme → Product & Engineering → Platform / Frontend Guild → Design Systems; Go-To-Market → Sales → Enterprise Sales).🤖 Generated with Claude Code