Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

Complete component documentation coverage for all 76 platform components - #162

Merged
hotlong merged 3 commits into
mainfrom
copilot/check-docs-for-components
Jan 23, 2026
Merged

hotlong merged 3 commits into
mainfrom
copilot/check-docs-for-components

Conversation

Copilot AI commented Jan 23, 2026 •

Copy link
Copy Markdown
Contributor

19 components lacked documentation. Coverage increased from 75% (57/76) to 100%.

Changes

Documentation files created (19)

  • Basic (2): div, span
  • Form (3): calendar, file-upload, toggle
  • Data Display (2): statistic, tree-view
  • Layout (2): page, semantic
  • Feedback (1): toaster
  • Complex (8): data-table, calendar-view, timeline, carousel, scroll-area, resizable, filter-builder, chatbot
  • Navigation (1): header-bar (new category)

Each includes:

  • Live interactive demos via ComponentDemo
  • TypeScript schema definitions
  • Usage examples covering variants and common patterns

Navigation structure

  • Updated 8 meta.json files to register new components
  • Created docs/components/navigation/ category
  • Added navigation category to root components index

Build configuration

Updated apps/site/source.config.ts to exclude internal development docs without frontmatter:

files: [
  '**/*.{md,mdx}',
  '!**/COMPONENT_MAPPING_GUIDE.md',
  '!**/DEVELOPMENT_ROADMAP_2026.md',
  // ... other internal docs
]

Screenshots

Component navigation with all 76 components:
Navigation

Example documentation with live demos (Data Table):
Data Table Docs

Original prompt

确认一下组件是否在Fumadocs文档页面中都有对应的组件介绍和功能演示,并且确认菜单是否链接正常

  1. Platform Basic Components Inventory (Implemented)

Note: The following 76 components are general UI components, independent of Object definitions, suitable for flexible customization scenarios.

2.1 Classification by Category (76 components)

📦 Basic Components (Basic) - 10

Schema wrappers for basic HTML elements.

Component Lines of Code Status Shadcn Equivalent Description
text 50 ✅ - Text rendering, supports expressions
image 45 ✅ - Image loading, lazy loading
icon 88 ✅ - Lucide icon library integration
div 49 ✅ - General container
span 52 ✅ - Inline container
separator 56 ✅ Separator Divider
html 42 ✅ - Raw HTML injection
button-group 78 ✅ ButtonGroup Button group
pagination 82 ✅ Pagination Pagination control
navigation-menu 80 ✅ NavigationMenu Navigation menu
📝 Form Components (Form) - 17

Core components for user input and data collection.

Component Lines of Code Status Shadcn Equivalent ObjectStack Protocol Support
form 425 ✅ Form Complete form validation engine
input 118 ✅ Input text/email/password, etc.
textarea 53 ✅ Textarea Multi-line text
select 74 ✅ Select Dropdown selection
checkbox 49 ✅ Checkbox Checkbox
radio-group 62 ✅ RadioGroup Radio button group
switch 47 ✅ Switch Toggle switch
slider 60 ✅ Slider Slider input
button 69 ✅ Button Button and submit
date-picker 83 ✅ DatePicker Date picker
calendar 33 ✅ Calendar Calendar component
combobox 47 ✅ Combobox Combobox/autocomplete
command 57 ✅ Command Command palette
file-upload 183 ✅ - File upload
input-otp 50 ✅ InputOTP OTP input
label 44 ✅ Label Form label
toggle 84 ✅ Toggle Toggle button
Form Protocol Support:

✅ Field validation (required, pattern, custom)
✅ Error messages and styling
✅ Conditional display (visibleOn)
✅ Dynamic default values
✅ Linked updates
📊 Data Display Components (Data Display) - 8

Visualization of structured data.

Component Lines of Code Status Shadcn Equivalent ObjectStack Protocol Support
list 103 ✅ - List rendering, supports nesting
badge 54 ✅ Badge Tag/status indicator
avatar 37 ✅ Avatar User avatar
alert 45 ✅ Alert Warning alert
breadcrumb 59 ✅ Breadcrumb Breadcrumb navigation
statistic 79 ✅ - Statistical value display
kbd 49 ✅ Kbd Keyboard shortcut
tree-view 169 ✅ - Tree structure
🎛️ Layout Components (Layout) - 9

Space organization and responsive layout.

Component Lines of Code Status Shadcn Equivalent Features
page 90 ✅ - Page container, title/breadcrumb
container 121 ✅ - Responsive container
grid 163 ✅ - CSS Grid layout
flex 131 ✅ - Flexbox layout
stack 131 ✅ - Vertical/horizontal stacking
card 77 ✅ Card Card container
tabs 71 ✅ Tabs Tab pages
aspect-ratio 50 ✅ AspectRatio Aspect ratio container
semantic 47 ✅ - Semantic HTML elements
Responsive Support:

// Supports breakpoint configuration
columns: { sm: 1, md: 2, lg: 3, xl: 4 }
🔔 Feedback Components (Feedback) - 8

Visual feedback for user actions.

Component Lines of Code Status Shadcn Equivalent Purpose
loading 77 ✅ - Loading state
spinner 54 ✅ Spinner Spinning loader
skeleton 30 ✅ Skeleton Skeleton screen
progress 28 ✅ Progress Progress bar
toast 53 ✅ Toast Notification toast
toaster 34 ✅ Toaster Toast container
sonner 55 ✅ Sonner Advanced notifications
empty 48 ✅ Empty Empty state
🪟 Overlay Components (Overlay) - 10

Modal dialogs, overlays, and tooltips.

Component Lines of Code Status Shadcn Equivalent Features
dialog 76 ✅ Dialog Dialog
sheet 76 ✅ Sheet Side drawer
drawer 76 ✅ Drawer Drawer
alert-dialog 71 ✅ AlertDialog Alert dialog
popover 55 ✅ Popover Popover
tooltip 66 ✅ Tooltip Tooltip bubble
dropdown-menu 98 ✅ DropdownMenu Dropdown menu
context-menu 99 ✅ ContextMenu Context menu
menubar 75 ✅ Menubar Menu bar
hover-card 54 ✅ HoverCard Hover card
📂 Disclosure Components (Disclosure) - 3

Content expand/collapse control.

Component Lines of Code Status Shadcn Equivalent
accordion 68 ✅ Accordion
collapsible 52 ✅ Collapsible
toggle-group 77 ✅ ToggleGroup
🔧 Complex Components (Complex) - 9

Advanced business components.

Component Lines of Code Status Shadcn Equivalent ObjectStack Protocol
table 94 ✅ Table Basic table
data-table 665 ✅ - Advanced data table (sorting/filtering/pagination)
calendar-view 227 ✅ CalendarView Calendar view
timeline 474 ✅ Timeline Timeline/Gantt chart
carousel 68 ✅ Carousel Carousel
scroll-area 40 ✅ ScrollArea Scroll area
resizable 62 ✅ Resizable Resizable container
filter-builder 76 ✅ FilterBuilder Filter builder
chatbot 193 ✅ Chatbot Chatbot
🧭 Navigation Components (Navigation) - 2

Component Lines of Code Status Shadcn Equivalent
header-bar 58 ✅ -
sidebar 197 ✅ Sidebar


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel

vercel Bot commented Jan 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
objectui-docs Error Error Jan 23, 2026 11:05am
objectui-site Ready Ready Preview, Comment Jan 23, 2026 11:05am

Request Review

Copilot AI and others added 2 commits January 23, 2026 10:57
Created comprehensive MDX documentation files for:

Basic Components (2):
- div.mdx - General container element
- span.mdx - Inline container element

Form Components (3):
- calendar.mdx - Date selection component (moved from data-display)
- file-upload.mdx - File upload with drag-and-drop
- toggle.mdx - Two-state toggle button (moved from disclosure)

Data Display (2):
- statistic.mdx - Statistical value display with trends
- tree-view.mdx - Hierarchical tree structure

Layout (2):
- page.mdx - Full-page container with title/description
- semantic.mdx - Semantic HTML5 elements (header, nav, main, etc.)

Feedback (1):
- toaster.mdx - Toast notification container

Complex (8):
- data-table.mdx - Enterprise data table with sorting/filtering
- calendar-view.mdx - Full calendar view (moved from data-display)
- timeline.mdx - Chronological timeline display (moved from data-display)
- carousel.mdx - Slideshow component (moved from data-display)
- scroll-area.mdx - Scrollable container (moved from layout)
- resizable.mdx - Resizable panels (moved from layout)
- filter-builder.mdx - Visual query builder
- chatbot.mdx - Interactive chat interface

Navigation (1):
- header-bar.mdx - Application header with breadcrumbs

Also updated all meta.json files to include new components in navigation
and reorganized components into appropriate categories.
…on structure

Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
@vercel
vercel Bot temporarily deployed to Preview – objectui-docs January 23, 2026 11:02 Inactive
@github-actions github-actions Bot added documentation Improvements or additions to documentation apps labels Jan 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

✅ All checks passed!

  • ✅ Type check passed
  • ✅ Tests passed
  • ✅ Lint check completed

Copilot AI changed the title [WIP] Verify components introduction and functionality in Fumadocs Complete component documentation coverage for all 76 platform components Jan 23, 2026
Copilot AI requested a review from xuyushun441-sys January 23, 2026 11:08
@hotlong
hotlong marked this pull request as ready for review January 23, 2026 11:10
Copilot AI review requested due to automatic review settings January 23, 2026 11:10
@hotlong
hotlong merged commit 464e9c8 into main Jan 23, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request successfully completes documentation coverage for all 76 platform components in ObjectUI, increasing coverage from 75% (57/76) to 100% by adding comprehensive documentation for 19 previously undocumented components.

Changes:

  • Added documentation for 19 components across 6 categories (Basic, Form, Data Display, Layout, Feedback, Complex, Navigation)
  • Reorganized components for better categorization (moved toggle from Disclosure to Form, moved 5 complex components from Data Display/Layout to Complex category)
  • Created new Navigation category with header-bar component
  • Updated 8 meta.json files to reflect navigation structure changes
  • Enhanced build configuration to exclude internal development documentation files

Reviewed changes

Copilot reviewed 35 out of 35 changed files in this pull request and generated no comments.

Show a summary per file
File Description
docs/components/navigation/meta.json Created new Navigation category with header-bar component
docs/components/navigation/header-bar.mdx Comprehensive documentation for application header component with breadcrumb navigation
docs/components/meta.json Added navigation category to root components index
docs/components/layout/semantic.mdx Documentation for 7 HTML5 semantic elements (header, nav, main, aside, section, article, footer)
docs/components/layout/scroll-area.mdx Deleted - moved to complex category
docs/components/layout/resizable.mdx Deleted - moved to complex category
docs/components/layout/page.mdx Full-page container documentation with title, description, and content sections
docs/components/layout/meta.json Removed scroll-area and resizable, added page and semantic
docs/components/form/toggle.mdx Toggle button documentation (moved from disclosure category)
docs/components/form/meta.json Added calendar, file-upload, and toggle to form components
docs/components/form/file-upload.mdx Modern file upload component with drag-and-drop support documentation
docs/components/form/calendar.mdx Date selection component documentation with single, multiple, and range modes
docs/components/feedback/toaster.mdx Toast notification container documentation
docs/components/feedback/meta.json Added toaster to feedback components
docs/components/disclosure/toggle.mdx Deleted - moved to form category
docs/components/disclosure/meta.json Removed toggle from disclosure components
docs/components/data-display/tree-view.mdx Hierarchical tree structure documentation for nested data
docs/components/data-display/timeline.mdx Deleted - moved to complex category
docs/components/data-display/statistic.mdx Key metrics and statistical values display documentation
docs/components/data-display/meta.json Removed calendar, carousel, timeline; added statistic and tree-view
docs/components/data-display/carousel.mdx Deleted - moved to complex category
docs/components/data-display/calendar.mdx Deleted - moved to form category
docs/components/complex/timeline.mdx Chronological event display with vertical, horizontal, and Gantt layouts
docs/components/complex/scroll-area.mdx Customizable scrollable container documentation (moved from layout)
docs/components/complex/resizable.mdx Resizable panel groups documentation (moved from layout)
docs/components/complex/meta.json Added 8 complex components (data-table, calendar-view, timeline, carousel, scroll-area, resizable, filter-builder, chatbot)
docs/components/complex/filter-builder.mdx Visual query builder for complex filter conditions
docs/components/complex/data-table.mdx Enterprise-grade data table with sorting, filtering, pagination
docs/components/complex/chatbot.mdx Interactive chat interface documentation
docs/components/complex/carousel.mdx Slideshow component documentation (moved from data-display)
docs/components/complex/calendar-view.mdx Full-featured calendar for events in month/week/day views
docs/components/basic/span.mdx Inline container documentation for styling text
docs/components/basic/meta.json Added div and span to basic components
docs/components/basic/div.mdx Generic container element documentation
apps/site/source.config.ts Excluded 6 internal development documentation files from build

os-steve pushed a commit that referenced this pull request Sep 20, 2026
…`rowActions`

The row kebab's edit and delete gates were a union of two independently
declared keys, so `operations: { update: false }` could not close what
`rowActions: ['edit']` opened, and `operations: { delete: false }` failed
the same way. An author who turned an operation off got the button anyway,
with no error, no warning and nothing to observe but a button they
believed was gone.

Both gates are now intersections, like every other layer around them: a
truthy `operations` member is required, and `rowActions` can no longer
re-open what the block withheld. Since a present block already REPLACED
the wired-callback default rather than merging under it, a member the
block does not name is withheld too.

Maintainer ruling of 2026-09-18, ruling batch #162 item 1, letter A.

Re-points the slice-12 `operations` member pin and the unit pin at the
intersection, keeps the union's own shape as the case that goes red if the
`||` ever returns, and pins the ruling's unimplemented narrowing half as a
record of the gap rather than leaving it to be discovered.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QVJUngS9FKfuyQ9NFR2Nbn
os-bill pushed a commit that referenced this pull request Sep 24, 2026
The narrowing half of ruling batch #162 item 1 A (objectui#9819): the row
kebab's generic Edit/Delete gate becomes
operationsX AND (wantXAction OR default-when-rowActions-absent) AND hasOnX
AND objectCanX. ObjectGrid now passes whether `rowActions` was declared, so
an absent list keeps the default and a declared list offers only the
canonical names it carries. The NOT IMPLEMENTED pin is flipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01877XiBYSaRCk2CU7cMSg3S
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Sep 28, 2026
…owActions` (objectui#9819) (objectstack-ai#10081)

Fixes objectstack-ai#9819

`Clause-②: no` — this narrows runtime behaviour and widens no
declaration surface. Measured, not inherited: the intersection only ever
refuses more than the union did, so no combination refused today becomes
accepted.

## The ruling

Maintainer ruling of 2026-09-18, ruling batch objectstack-ai#162 item 1, letter A
(issue comment `5729875720`, director seat summon objectstack-ai#24, maintainer 「同意」
12:18Z). Operative clause, quoted verbatim:

> `object-grid`'s `operations` is the CEILING: the edit gate and the
delete gate in `rowCrudAffordances.ts:182` / `:184` become intersections
— `rowActions` can only select an action `operations` allows;
`operations: { update: false }` turns row editing off whatever
`rowActions` says

⚠️ The two line addresses inside that quote are the ruling's own bytes,
reproduced because the quote is verbatim; they were read from `42234b1`
by the triage comment. Everywhere this pull request cites those gates in
its own voice it cites them by content — they are the `canEdit` and
`canDelete` assignments in `resolveRowCrudAffordances`.

⭐ **Both gates are in scope**, not only the edit one the card's title
names. Re-derived by symbol on today's `origin/main` rather than trusted
from the line numbers: the delete gate is textually isomorphic to the
edit one, so `operations: { delete: false }` failed identically. Fixing
only the edit half would have left the ruled defect half-standing.

## What changed

`resolveRowCrudAffordances`, both gates, from a union of two
independently declared keys to an intersection:

- **before** — `(operations.update OR rowActions names 'edit') AND
onEdit AND objectCanEdit`
- **after** — `operations.update AND onEdit AND objectCanEdit`

A truthy `operations` member is now required. Falsy covers both
spellings of "not allowed": an explicit `false`, and a member a PRESENT
block does not name — because a present `operations` block already
REPLACED the wired-callback default instead of merging under it (that
replacement is decided at the call site and was already pinned; this
change does not touch it).

## What an author sees change — the cost, stated plainly

This **narrows published runtime behaviour**. An author who wrote a
combination that used to render a button will now not get that button.

| The view declares | Before | After |
|---|---|---|
| `operations: { update: false }` plus `rowActions: ['edit']` | row Edit
still rendered | Edit is gone |
| `operations: { delete: false }` plus `rowActions: ['delete']` | row
Delete still rendered | Delete is gone |
| `operations: { delete: true }` plus `rowActions: ['edit']` | Edit
rendered | Edit is gone — an unnamed member of a present block is not an
allowance |
| no `operations` block at all | both entries, from the wired callbacks
| **unchanged** |
| `rowActions: ['edit']` with no `operations` block | Edit rendered |
**unchanged** |

A page that today shows an Edit or Delete affordance because
`rowActions` opened it while `operations` closed it will **stop**
showing it. That is the ruled direction and the point of the card: a
block named `operations` that cannot turn an operation off is the trap,
and the author's only observable was a button they believed was gone —
no error, no warning, no degraded state. ⛔ No tolerant `??` or alias
fallback was added to soften the change; a fallback here would rebuild
the second de-facto contract the ruling closed.

Changeset: `@object-ui/plugin-grid` **minor**, carrying the behaviour
note, exactly as the ruling directs. (Per this repo's version-alignment
rule, objectui's own breaking semantics ship as `minor` with the break
spelled out in the body.)

## ⭐ The pin that flipped, and why the flip is the ruling landing rather
than a regression


**`packages/plugin-grid/src/__tests__/gridOperationsMembers-8071.test.tsx`**
— the `object-grid.operations` member pin added by PR objectui#9817
(slice 12). Its fact 3 pinned the **union** in so many words: "They are
a UNION with `rowActions`' canonical names, never an intersection —
`operations: { update: false }` cannot close what `rowActions: ['edit']`
opened." Its case `a UNION with rowActions: update: false does not
survive rowActions: [edit]` asserted `{ trigger: true, edit: true,
delete: false }`.

That pin **had to go red**, and did. It was deliberately pinned so that
any behaviour change would force a re-read — the card says so and the
triage comment confirmed it as a record, ⛔ not an endorsement. It has
been **re-pointed at the intersection**, not deleted and not made green
by weakening it:

- fact 3 in the file's docblock now states the ceiling, and says in the
file itself that this file pinned the opposite until the ruling landed,
so the next reader cannot mistake the flip for drift;
- the union's own shape is **kept** as the case that goes red if the
`||` ever comes back — same inputs, opposite expectation (`{ trigger:
false, edit: false, delete: false }`: with nothing left to offer the row
grows no kebab at all);
- **the control now does more work than before, not less.** That
describe block went from 2 cases to 5: the unnamed-member case (which a
ceiling implemented as `update !== false` would pass while quietly
keeping `rowActions`' old power to open), a control proving `rowActions`
with no `operations` block still gets the wired-callback default, and
the not-implemented case below.

**`packages/plugin-grid/src/__tests__/rowCrudAffordances.test.ts`** —
the unit pin. Its case `honors explicit rowActions (edit/delete strings)
when callbacks exist` asserted the same union at the function boundary
and also flipped. Replaced by two cases: the selection alone can no
longer open, and an explicit `operations` member `false` beats the
selection per member.

## ⚠️ Declared deviation — half the ruling's formula is NOT implemented,
on purpose

The ruling's expanded formula reads `canEdit = operationsUpdate AND
(wantEditAction OR DEFAULT-WHEN-ROWACTIONS-ABSENT) AND hasOnEdit AND
objectCanEdit`, and its prose adds that `rowActions` "chooses among what
`operations` allows and can only narrow".

The **ceiling** half is implemented in full. The **narrowing** half is
not, and could not be within this card's file surface:

- the gate cannot observe it. The call site collapses "`rowActions`
absent" and "`rowActions` present without this name" into the same
`false` (it passes `rowActionsList.includes('edit')`, and an absent
`rowActions` becomes an empty array);
- narrowing on that `false` would close the generic Edit and Delete on
**every** grid that declares no `rowActions` at all — the precise
outcome the same ruling forbids one sentence earlier, "`operations`
absent ⇒ today's defaults";
- so the only value of the ruling's `DEFAULT-WHEN-ROWACTIONS-ABSENT`
hole that preserves the ruling's own stated invariant at this call site
is "true", which collapses that conjunct away. That is what landed;
- telling the two apart needs a caller-side signal only
`packages/plugin-grid/src/ObjectGrid.tsx` can produce — and that file is
objectui#9837's surface, deliberately kept out of this batch. Per the
dispatch I did not widen into it.

⭐ The gap is **pinned rather than left silent**: a case named `NOT
IMPLEMENTED — rowActions does not NARROW inside the ceiling` records
today's answer for `operations: { update: true, delete: true }` plus
`rowActions: ['edit']`. Implementing the narrowing turns that case red,
which is the re-read it should force. The same reasoning is written into
the module docblock under "`operations` is the ceiling", so the next
reader finds it at the code rather than in this description.

Recommended follow-up, ⛔ not filed by me: a card for the narrowing half,
whose surface is the grid call site plus this gate's signature.

## Also NOT done, and why

- **The `describe` texts.** The ruling asks the `operations` and
`rowActions` descriptions to state 「`operations` is the ceiling」. Those
live in `packages/types/src/zod/objectql.zod.ts` (`operations` carries
`Enabled operations`; `rowActions` carries no description at all),
outside this card's declared file surface and in another package.
Nothing published becomes false without it — neither description
asserted the union — so this is a documentation gap, not a behaviour
gap. The rule itself is stated in the module docblock here.
- **Docs.** `content/docs/plugins/plugin-grid.mdx`,
`packages/plugin-grid/README.md` and
`content/docs/api/schema-reference.md` mention both keys but neither
asserts the union, so no published sentence is falsified by this change.

## Verification

All exit codes captured to disk before any pipe. Hand-derived:
`dispatch-gates.mjs` is an `../objectstack` script and refuses for this
repository, so the gate list comes from this repo's own `package.json`
scripts and from the workflows enumerated with `git ls-tree origin/main
.github/workflows/` (39 = 39 against the working tree, with `ci.yml` as
the positive control).

| Gate | Command | Exit |
|---|---|---|
| affected package suite | `pnpm exec vitest run packages/plugin-grid/`
| **0** — 145 files, 1380 tests passed |
| cross-package blast radius | `pnpm exec vitest run` over the 16
derived consumer files | **0** — 16 files, 392 tests passed |
| real type-check | `pnpm --filter @object-ui/plugin-grid type-check` |
**0** |
| control bytes | `node scripts/check-control-bytes.mjs` | **0** |
| line citations | `node
scripts/check-new-cross-file-line-citations.mjs` | **0** — 0 new
citations |
| changeset presence | `node scripts/check-changeset-presence.mjs` |
**0** — 3 published source files, 1 changeset |
| changeset no-major | `node scripts/check-changeset-no-major.mjs` |
**0** |
| changeset fixed group | `node scripts/check-changeset-fixed.mjs` |
**0** |
| changeset overwrite | `node scripts/check-changeset-overwrite.mjs` |
**0** |
| pending changeset literals | `node
scripts/check-pending-changeset-literals.mjs` | **0** |
| test path roots | `node scripts/check-test-path-roots.mjs` | **0** |
| vi.mock override shape | `node
scripts/check-vi-mock-override-shape.mjs` | **0** |
| vi.mock specifiers | `node scripts/check-vi-mock-specifiers.mjs` |
**0** |
| governed surface | `node scripts/check-governed-queue-guard.mjs
--test` | **0** — NOT GOVERNED, 4 paths against 5 surfaces |

⚠️ The type-check first read **exit 2** with `TS2307: Cannot find module
'@object-ui/types'` — a fresh worktree with no dependency `dist/*.d.ts`,
i.e. a stale-dist lie rather than a finding. The **0** above is from the
re-run after `pnpm --workspace-concurrency=2 --filter
'@object-ui/plugin-grid^...' build` (exit 0). Both readings are reported
rather than only the green one.

The test runs are repo-root invocations with repository-relative paths
and no `--`, and each printed `RUN v4.1.10
/home/user/objectui-issue-9819` — the root, not a package directory.
File counts are asserted, not assumed: 145 and 16, never a silent
zero-match.

### ESLint — a declared narrowing, with the reading that makes it a
measurement

The repository-wide `eslint . --no-inline-config` sweep is CI's run,
never one this branch owes. What ran here is a targeted lint of the
three changed source files, and the narrowing is proven rather than
asserted:

1. **Population, read from ESLint's own config and not guessed** —
`eslint.config.js` declares its blocks over `**/*.{ts,tsx}` with a
top-level `ignores`; every block that could reach this branch's files is
a path-glob block.
2. **File count, read from `--format json`** — 3 files linted, 0 errors,
2 warnings. Both warnings are `@typescript-eslint/no-explicit-any` and
both are **pre-existing**: the same two, at shifted lines, on the base
revision of the same file (measured by linting the base blob). This
branch adds zero findings.
3. **Invariance over untouched files** — `eslint.config.js` declares
**no** type-aware linting: no `parserOptions.project`, no
`projectService`, no `tsconfigRootDir`, no `recommended-type-checked`
preset. Every rule therefore judges one file from that file's own text,
so no edit in this diff can move the verdict on any file this diff does
not touch.

All three hold, so this is a measured narrowing rather than a check that
simply did not run. Measured at head `3e7993e6`.

### Reverse verification (ablation)

Direction predicted **before** running: the re-pointed pins go red. That
is what happened.

The fix was committed first, then the intersection was replaced on disk
by the original union — anchor asserted to hit exactly once, and the
substitution verified on disk in both directions (injected union present
`1`, intersection absent `0`) rather than trusted from an editor's exit
code.

- **mutation leg** — exit **1**: `Tests 4 failed | 51 passed (55)`. The
four are exactly the ceiling assertions, and they span both pins and
both projects: `|unit|` the two in `rowCrudAffordances.test.ts`, `|dom|`
`the CEILING refuses: update: false SURVIVES rowActions: [edit]` and
`the ceiling refuses a member the block does not NAME`. The control
cases and the not-implemented case stayed green in both worlds, as they
must.
- **restore leg** — `git checkout HEAD -- THE-PATH` (never the bare
form, which would take the mutation back out of a polluted index), and
the restore is proven by **bytes**, not by an exit code: `git
hash-object` on disk equals the HEAD blob
`c37fbbe437a10b567b0217d6957e010d0c7545fa`, and `git diff HEAD` is
empty. Re-run: exit **0**, 55 passed.

Nothing from the ablation remains in the tree; the working tree is clean
at `3e7993e6`.

## Acceptance notes

- Noted, not filed: `ObjectGrid.tsx`'s `hasRowActions` still counts
`wantEditAction` / `wantDeleteAction` when deciding whether to render
the actions COLUMN, so a view with `operations: { update: false }` plus
`rowActions: ['edit']` renders an empty `_actions` cell instead of no
column. Observable only as an empty right-hand cell — the kebab itself
correctly does not appear (the menu plan's own empty guard). Carrier:
objectui#9837's seat is the next one in that file. Not filed, and ⛔ not
repaired here: the file is out of surface and the shape is the
pre-existing "a row with nothing to offer renders an empty cell"
behaviour, which that file documents deliberately.
- Noted, not filed: `rowCrudEffectiveOps.test.tsx` and
`rowOperationsPerRow-8674.test.tsx` cover the layers ANDed on top of
this gate and were unaffected — recorded so a later reader does not
re-derive the blast radius from scratch. Carrier: none.

## Serial constraints

PR objectui#9924, which held the whole
`packages/plugin-grid/src/__tests__/` directory, merged
2026-09-20T09:32:35Z — re-read from the API in this act. Re-checked
independently: all 9 open pull requests were listed and their file lists
read; none touches `packages/plugin-grid/src/`. The only plugin-grid
overlap anywhere is objectui#8941, on
`packages/plugin-grid/package.json` alone, which this branch does not
touch.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01QVJUngS9FKfuyQ9NFR2Nbn

---
_Generated by [Claude
Code](https://claude.ai/code/session_01QVJUngS9FKfuyQ9NFR2Nbn)_

Co-authored-by: Claude <noreply@anthropic.com>
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Sep 28, 2026
…— presence enables, an explicit off wins (objectstack-ai#10218)

Fixes objectstack-ai#9837

Ruling batch objectstack-ai#162 item 2, letter A-prime, maintainer 「同意」 (objectui#9837
comment 5729875984). `object-grid`'s two adjacent object-armed keys now
read their own presence by the SAME rule: **presence enables the feature
with the object's settings, and an explicit off wins over presence.**

## What moved

Both reads live in the one props fold that assembles `dataTableSchema`,
and until now they disagreed about what writing the object means:

- `pagination` was read as `!== undefined` FIRST, which hard-forced
paging on and made the deprecated flat `showPagination: false`
unreachable the moment the object was written — a block that cannot turn
off the thing it names (the objectui#9819 shape).
- `selection` was read as the optional-chained `type`, so an object with
no `type` member did nothing at all and fell straight through to the
legacy `selectable` arm.

| authored | before | now |
|---|---|---|
| `pagination: { … }` + `showPagination: false` | paging ON | paging OFF
|
| `selection: {}` (no `type`) | selection OFF — the legacy arm decided |
selection ON, multiple |
| `pagination: { … }` alone | paging ON | paging ON (unchanged) |
| `selection: { type: 'none' }` | selection OFF | selection OFF
(unchanged) |
| `selection: { type: 'none' }` + `selectable: true` | selection OFF |
selection OFF (unchanged) |

The order of the two arms is the whole ruling on the `pagination` side.
That key declares no off member of its own (`pageSize` /
`pageSizeOptions`), so the deprecated flat boolean is the only off an
author has and it has to be read BEFORE the object's presence. On the
`selection` side the canonical off lives INSIDE the object (`type:
'none'`), so the legacy `selectable` keeps its existing standing: read
only when `selection` is absent.

`selection: {}` resolves to `multiple` through a named constant. That
value is derived, not chosen: the ruling's first clause is that writing
the object turns selection ON, so `'none'` is excluded outright, and
`'multiple'` is already this renderer's own answer to "selection is on,
nothing said which kind" — it is what the bulk-action auto-enable arm
resolves to and what the legacy `selectable: true` means. `'single'`
would have been a third, unstated opinion.

## The two member pins, flipped on purpose

`gridPagerSelectionMembers-8071.test.tsx` pinned both retired readings
deliberately (objectui#8071 slice 13, PR objectui#9836), so they had to
move. Both `describe` blocks now carry the one sentence, and the file's
own docblock NAMES the retired rule rather than being quietly rewritten
— a reader who meets the old behaviour in a half-migrated page needs to
know it was retired.

- `the OBJECT's presence enables paging, overruling showPagination:
false` became `an explicit showPagination: false turns paging OFF beside
the OBJECT`, with the same fixture and the opposite expectation.
- The `selection` describe asserted "only `type` is read". It gained
`the OBJECT's presence enables selection with no type member written`,
plus a non-vacuity control showing the same schema with no object
renders no checkbox at all.
- One more control was added on the pagination side: the same object
WITHOUT the off still pages, so "no pager" in the two rows above is the
boolean's doing and not the fixture's.

⚠️ The presence clause on `pagination` is INERT today and deliberately
has no row of its own: paging already defaults ON, so an authored
`pagination: {}` and an absent `pagination` are indistinguishable at the
pager. The observable half of the rule on that key is the explicit off,
and that is what is pinned. This is stated in the file's docblock rather
than left for a reader to rediscover.

## Reverse verification

Both new readings were ablated from the COMMITTED tree through
`scripts/ablation-replace.mjs`, which proves the mutation landed on disk
(anchor count and blob hash) and proves the restore (`blob == HEAD` and
`git diff HEAD` empty) rather than trusting an exit code. The suite
resolves `ObjectGrid` by relative import from source, so there is no
build step between the mutation and the reading.

| mutation | blob | result |
|---|---|---|
| pagination read restored to `schema.pagination !== undefined` first |
`6808a78e65fb` to `495fc0210fe6` | 1 failed, 14 passed — exactly `an
explicit showPagination: false turns paging OFF beside the OBJECT` |
| selection guard restored to `if (schema.selection?.type)` |
`6808a78e65fb` to `1236d7a1535f` | 1 failed, 14 passed — exactly `the
OBJECT's presence enables selection with no type member written` |

Each restore leg reported `blob == HEAD (6808a78)` with an empty
`git diff HEAD`. Both mutations are one-shot proofs; nothing from them
is left in the tree.

## Gates run

| command | exit |
|---|---|
| `pnpm exec vitest run packages/plugin-grid/` — 146 files, 1386 tests |
0 |
| `pnpm --filter @object-ui/plugin-grid type-check` | 0 |
| `pnpm --filter @object-ui/plugin-grid lint` — 183 files, 0 errors, 880
warnings | 0 |
| `node scripts/check-changeset-presence.mjs` | 0 |
| `pnpm check:control-bytes` | 0 |
| `pnpm check:new-line-citations` | 0 |
| `pnpm check:changeset-claims` | 0 |
| `pnpm check:pending-changeset-literals` | 0 |
| `pnpm check:component-surface-parity` | 0 |
| `pnpm check:sdui-registration-pins` (after a real console build) | 0 |
| `pnpm check:side-effects-array` | 0 |
| `pnpm check:eager-closure` | 0 |
| `pnpm check:dist-completeness` | 0 |
| `pnpm check:designer-field-key-parity` | 0 |
| `pnpm check:element-data-source-declaration` | 0 |
| `pnpm check:registry-bare-names` | 0 |
| `pnpm check:doc-types` | 0 |
| `node scripts/check-governed-queue-guard.mjs --test` on the four
changed paths | 0 — NOT GOVERNED |

**Consumer-package duty**, run because `object-grid` is consumed beyond
its own package and a sweep inside `plugin-grid` cannot see another
package's fixture asserting the opposite. The root vitest config aliases
`@object-ui/plugin-grid` to `packages/plugin-grid/src`, and
`apps/console`'s own config does the same, so every reading below is
against this diff and not against a stale `dist`:

| consumer | result | exit |
|---|---|---|
| `packages/app-shell/` | 746 files, 7369 passed, 1 skipped | 0 |
| `apps/console/` | 106 files, 1188 passed | 0 |
| `packages/plugin-view/` + `packages/plugin-designer/` | 65 files, 563
passed | 0 |

⚠️ The lint reading is a NARROWING, declared as one: it is this
package's own `eslint .` over the 183 files eslint's own config admits
here, not the repository-wide `eslint . --no-inline-config` that CI
owns. The narrowing excludes nothing this diff can move, because this
repository's flat config enables no type-aware linting (no
`projectService`, no `parserOptions.project`) — so no untouched file's
verdict can change from a source edit inside this package. The repo-wide
run remains CI's.

⚠️ `scripts/pm/dispatch-gates.mjs` REFUSES to derive a gate list for
this repository from an `objectstack` checkout, so the list above is
hand-derived from this repository's own `package.json` and
`.github/workflows/`. A refusal is not a derivation, and it is named
here rather than reported as one.

## Acceptance notes

Observations found while doing this, none filed and none fixed here:

- `apps/console/src/__tests__/registry-inputs-spec-parity.test.ts`
carries the `MEMBER_PINS` ledger, whose `object-grid.pagination` and
`object-grid.selection` `pins` prose still DESCRIBES the retired
readings ("`pagination !== undefined` is what enables paging, so an
authored object OVERRULES a deprecated `showPagination: false`"; "the
OBJECT's presence alone does nothing"), as does the slice-13 docblock
further down the same file. That prose is reviewed rather than computed
— nothing asserts it, which is why the console suite is green above — so
it goes stale silently the moment this lands. It is outside the file
surface this branch declared, so it is named here for the reviewer
rather than edited in.
-
`packages/plugin-view/src/__tests__/ObjectView.canonicalTableKeys.test.tsx`
justifies its "leave the canonical slot empty when only the legacy key
is written" row with the comment "`ObjectGrid` keys `paginationEnabled`
off `schema.pagination !== undefined`, so a synthesised `pagination`
would turn pagination on for legacy authors". The assertion stays right
and stays green; only its stated reason moves.
- `packages/plugin-grid/README.md` and
`content/docs/plugins/plugin-grid.mdx` both carry the row "`{ pageSize?,
pageSizeOptions? }` — strict, and its presence is what enables paging".
Still true after this change and therefore not a falsified claim, but
incomplete: neither mentions that an explicit `showPagination: false`
beats the object. Both are outside this branch's declared file surface.
The sentence they would gain is the one now carried by the `pagination`
input's `description` in `packages/plugin-grid/src/index.tsx`.

## Open question for the reviewer

`@objectstack/spec`'s `SelectionConfigSchema` declares `type` with a
`'none'` DEFAULT of its own. This repository's mirror strips imported
defaults at the import boundary, so an omitted `type` stays omitted on
the way to the renderer and A-prime's presence clause is reachable here.
But metadata that was parsed by the spec bundle BEFORE reaching the
renderer materialises `type: 'none'` and is then read here as an
explicit off — so the same authored bytes mean "selection on" or
"selection off" depending on whether they were parsed on the way in.
A-prime settles the renderer; it does not settle that seam, and settling
it is a `@objectstack/spec` decision, not an objectui one. Carried in
the report and in the constant's own docblock rather than decided here.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01RJpZ7i6X3hdxouUgKaqiQg)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Sep 28, 2026
…ng (objectstack-ai#10083) (objectstack-ai#10228)

Fixes objectstack-ai#10083
Clause-②: no

## What

The narrowing half of ruling batch objectstack-ai#162 item 1, letter A (ruling-ref
comment `5729875720` on objectui#9819, maintainer 「同意」
2026-09-18T12:18Z). The ceiling half already shipped in PR
objectui#10081.

`resolveRowCrudAffordances` now implements the ruled formula for both
gates:

`canEdit = operationsUpdate AND (wantEditAction OR
DEFAULT-WHEN-ROWACTIONS-ABSENT) AND hasOnEdit AND objectCanEdit`, and
the delete gate the same way.

- `ObjectGrid` passes a new `rowActionsDeclared` flag
(`Array.isArray(schema.rowActions)`), read before the existing `[]`
fallback erases it. Absent `rowActions` still arrives as a `false` from
`includes()`, so this flag is what tells "absent" apart from "declared
without this name".
- An absent list takes the default arm (today's behaviour). A declared
list, including an empty one or one that names only custom actions,
offers the generic entry only for the canonical `'edit'` / `'delete'` it
carries.
- `objectCanDelete` (the bulk-delete verdict) is untouched. Bulk delete
runs on `onBulkDelete`, not on the row selection.

Landing: `packages/plugin-grid/src/ObjectGrid.tsx` (the `rowActions`
read and the call only) and
`packages/plugin-grid/src/rowCrudAffordances.ts`. That is the producer
PM expected, and no other producer was needed.
`resolveRowCrudAffordances` has exactly one runtime caller
(`ObjectGrid`). The other files that mention the name do so only in
comments.

## Pins (the three directions the ruling names, plus the
absent-rowActions control)

In `__tests__/gridOperationsMembers-8071.test.tsx`, each claim is read
out of an opened row kebab:
- **ceiling refuses**: `update: false` survives `rowActions: [edit]`
(unchanged). The unnamed-member ceiling case now declares `rowActions:
['edit', 'delete']`, so that only the ceiling can withhold Edit.
- **rowActions narrows**: the former `⚠️ NOT IMPLEMENTED` case is
**flipped, not deleted**. `operations: {update, delete}` plus
`rowActions: ['edit']` now yields Edit only. A companion case shows the
narrowing also applies under the wired-callback default when
`operations` is absent (`rowActions: ['delete']` yields Delete only).
- **absent operations keeps defaults**: `rowActions: ['edit', 'delete']`
with no `operations` block keeps both.
- **absent rowActions keeps defaults** (new control): `operations:
{update, delete}` with no `rowActions` keeps both.
- A declared empty list offers no generic entry, and the row grows no
kebab.

`__tests__/rowCrudAffordances.test.ts` gains a `objectstack-ai#10083` block with the
same facts at the gate, plus one case showing that the bulk verdict is
unaffected.

## Behaviour change (changeset `@object-ui/plugin-grid` **minor**)

`.changeset/10083-rowactions-narrow.md` carries the ruling's note: a
page that wrote `operations.OP: false` together with a `rowActions`
entry for it now hides that button. It also carries the narrowing note:
a view that declares `rowActions` without `'edit'` / `'delete'` loses
the generic entry, and the remedy is to name it.

**Measured population (assumption 5): which authored `rowActions` arrays
change output.**
- objectui, authored/example surfaces:
`examples/schema-catalog/src/schemas/plugin-grid/object-grid-selection-summaries.json`
declares `["view", "edit"]` and now loses generic Delete. The
docs/README samples (`content/docs/api/schema-reference.md`,
`content/docs/plugins/plugin-grid.mdx`,
`packages/plugin-grid/README.md`) all name both `edit` and `delete`, so
they do not change. The `data-table` `rowActions: true` fixtures are a
different component (a boolean), so they do not change either.
- objectstack (sibling; the metadata the console actually renders): one
view, `examples/app-showcase/src/ui/views/task.view.ts`
`legacy_row_actions`, declares custom names only
(`['showcase_recalc_estimate', 'showcase_quick_view']`). Under the ruled
formula it now loses both generic Edit and Delete.
`packages/lint/src/showcase-shape.fixtures.ts` mirrors it. No other
objectstack example declares `rowActions`.
- The spec declares `ListViewSchema.rowActions` as
`z.array(z.string()).optional()` with no default. The producers
(`app-shell` `ObjectView`, `plugin-view` `ObjectView`, `plugin-list`
`ListView`) forward `undefined` when nothing was authored, never `[]`.
So an unauthored view does not trip the narrowing.

## Tests (final HEAD `92214a4`, base `62597c5`)

- `pnpm exec vitest run --maxWorkers=2 packages/plugin-grid/` (via
os-verify-lock): `Test Files 146 passed (146)`, `Tests 1394 passed
(1394)`, `VERDICT command-exit 0`.
- `pnpm --filter @object-ui/plugin-grid type-check` (runs `tsc --noEmit
&& tsc -p tsconfig.test.json`; `--listFiles` shows both edited test
files are in the test project): exit 0. It first needed the dependency
closure built (`pnpm --workspace-concurrency=2 --filter
'@object-ui/plugin-grid^...' run build`, exit 0).
- `apps/console/src/__tests__/registry-inputs-spec-parity.test.ts`: `199
passed`, not edited. The ruled change did not force an edit.
- Adjacent consumers: `plugin-view` `objectViewHostSurface.test.tsx` and
the two `plugin-designer` system-delete suites passed, 20/20.
- eslint (`--no-inline-config`) on the 4 changed source/test files: 0
errors. The warnings are all pre-existing lines; none are on lines this
PR adds.
- `node scripts/check-changeset-presence.mjs`: exit 0 (1 changeset
declared). `pnpm check:new-line-citations`: 0 new citations.

**Reverse verification** (run after the commit, via
`ablation-replace.mjs`, with the restore proved by blob equal to HEAD
and an empty `git diff HEAD`):
1. `selectsDelete = true` (narrowing removed): 5 tests went red,
including the flipped integration pin and the empty-list case.
2. `selectsDelete = !!opts.wantDeleteAction` (narrowing on the bare
`includes()` answer, ignoring declaration): 19 went red, including the
new `ABSENT rowActions keeps the default` control and the file's
pre-existing `CONTROL` case. This proves that the control can fail for
the reason it exists.

## Acceptance notes

- The describe-text clause of the ruling ("`operations` is the ceiling")
is carried by objectui#10084 in `packages/types`. It is not in this PR.
- The earlier changeset `.changeset/issue-9819-operations-ceiling.md`
(from the ceiling half, not yet released) still says the narrowing "is
NOT part of this change". That is true of that change, and this PR's
changeset states the second half. The earlier file was left untouched
because it is outside this claim's file surface.
- The showcase `legacy_row_actions` view (objectstack) loses its generic
Edit/Delete by ruling. If that fixture is meant to keep them, the
objectstack-side fix is to add `'edit', 'delete'` to its list. That is
not done here.

The session is `https://claude.ai/code/session_01877XiBYSaRCk2CU7cMSg3S`
(PM seat `domain:spec @ objectui`, round 2; `os-dev` subagent).

---
_Generated by [Claude
Code](https://claude.ai/code/session_01877XiBYSaRCk2CU7cMSg3S)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – objectui-site — 0cb01611 Deployed Jan 23, 2026 by vercel[bot]
Preview – objectui-docs — 0cb01611 Deployed Jan 23, 2026 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

apps documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants