Repository navigation
feat(Table): add the window controller and Table's shared-geometry runtime - #10657
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Requesting changes: the controller and runtime are well tested against the Table virtualization module contract, but two current records are not met.
useTableWindow.ts(lines 341-397) builds Table's own range, gap and anchor windowing on the Table-only planner, whilearchitecture:list-windowingINV1 and INV3 require Table virtualization to use one shared private Core windowing module and keep no windowing implementation of its own; move that computation into the shared module (keeping the focus island, validation and runtime in Table), or have an engineering owner amend the record.tableRuntime.tsrefresh()readsclientHeight(lines 63 and 67) andscrollHeight(line 82) on every scroll publication, whicharchitecture:react-component-runtimeINV18 forbids where no clause requires it; reuse the snapshot's sizes on a publication with no invalidation, as the code already does forbodyOffset, read onlyscrollTop, and extend the scroll test beyondgetBoundingClientRect.
Smaller points: the effect comment at useTableWindow.ts:420 should name what it synchronizes (DOM focus and the viewport scroll position); useScrollableArea's new content and layout classification has no test of its own; and registerTableScrollWrapper, isTableScrollWrapperOwned and TableRuntimeContext have no caller in this pull request.
[Automated review]
4f863ff to
a200f42
Compare
883c577 to
83a7fd4
Compare
There was a problem hiding this comment.
Requesting changes: both earlier blockers are fixed (the controller now plans through the shared utils/listWindow module, and a plain scroll reads only scrollTop), but the new row-number width measurement adds one.
measureLogicalPositionWidth(useTableWindow.ts, lines 195-201) inserts a hidden probe, reads its rectangle, removes it and readsoffsetWidthagain on every layout invalidation (each viewport or content resize, font load, or outer class or style change), which forces two synchronous layouts per row-number column on each frame of a window resize and whicharchitecture:react-component-runtimeINV18 forbids; size the column in CSS from the digit count (the index cell already uses tabular numerals in the code font) or measure with canvasmeasureTextafter all reads, and add a test for that path.
The probe's insertion and removal also reach useScrollableArea's mutation observer as a content change, so each measurement schedules one more measurement frame. logicalPositionWidths is not mentioned in the description and has no test yet.
[Automated review]
83a7fd4 to
9a4db2e
Compare
a200f42 to
66c4304
Compare
There was a problem hiding this comment.
Requesting changes: the earlier findings are fixed (the controller plans through the shared utils/listWindow module, a plain scroll reads only scrollTop, and the row-number width now comes from canvas text metrics with no DOM probe), but two blockers remain.
- Miss: in
useTableWindow.ts(lines 622-624) the validation effect returns aftersetPositionWidths(next)oncecheckExtenthas been consumed, so a windowed table with a row-number column skips the body-extent check at mount and after every width change, and a body extent the browser cannot represent stays windowed instead of falling back asmodule:Table/useTableRowsVirtualizationFR3 requires; carry the pending check across the early return and add a test that mounts withlogicalPositionColumnsand a mismatched body height. - The pull request now has 2,034 authored lines, over the 2,000-line limit, and the logical-position width measurement with its test (about 220 lines) has no reader here and depends on the open #10666 decision, so moving it to the pull request that applies the width brings this one under the limit.
The description's "1,931 authored lines" also needs updating.
[Automated review]
9a4db2e to
92db895
Compare
There was a problem hiding this comment.
Approval is waiting for an engineering owner's decision on which component adopts the shared windowing module first. The earlier blocking findings are fixed: the body-extent check now runs at mount with a row-number column, and the pull request is down to 1,811 authored lines.
- Miss:
useTableWindow.ts(lines 27-34) makes Table the first consumer of the shared private windowing module, whilearchitecture:list-windowingDEC-1 says "Selector adopts it first, then Table virtualization and Chat", and the description relies on the open #10665 to reorder that; an engineering owner records the decision by commenting/approve-specfollowed by this pull request's full head commit SHA (the author is an engineering owner and may do so), or by approving #10665's new order, or says here that Selector stays first.
Non-blocking: the row-number clip fallback (hasClippedRowNumber, lines 121-159) has no test, and jsdom cannot run it because it has no Range.getBoundingClientRect, so a browser test where Table wires row numbers would prove it.
[Automated review]
| const getEmptyGeometry = () => EMPTY_GEOMETRY; | ||
| const subscribeToNothing = () => () => {}; | ||
|
|
||
| function hasClippedRowNumber(cell: HTMLTableCellElement): boolean { |
There was a problem hiding this comment.
Non-blocking: no test reaches this function. jsdom has no Range.getBoundingClientRect, so it returns false in every unit test, and the row-number fallback (module FR14, AR5) stays unproven until a browser test mounts a clipped row number.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, and the build and test workflows start once this pull request targets main, after the pull requests below it merge.
The earlier hold is settled: architecture:list-windowing DEC-1 on main now makes Table's row virtualization the first consumer of the shared windowing module, so useTableWindow planning rows through utils/listWindow follows the record. The controller, runtime and scroll-geometry bridge match the Table virtualization module contract, and nothing renders through them until #8280.
Non-blocking, for the next pull requests:
- The row-number clip fallback (
hasClippedRowNumber,useTableWindow.tslines 121-159) has no test, because jsdom has noRange.getBoundingClientRect; a browser test once Table wires row numbers would cover it. - Table applies density as classes on each cell, below the scroll content root, so a density change with an unchanged capability is reported as a content change and re-checks rows that already passed only if the body resizes; a #8280 test for that case would show the fixed-mode fallback still fires (module AR5).
[Automated review]
66c4304 to
9303acd
Compare
…ntime useTableWindow plans mounted rows through the shared list-windowing module from the Table-owned viewport geometry, keeps one focused-row island, reconciles first-visible-key anchors and validates mounted rows. The Table runtime publishes geometry from the existing scroll owner. A plain scroll reads only scrollTop; sizes and the body origin are read on the content and layout invalidations the scroll owner now reports, and only a layout invalidation re-checks rows that passed. Table does not use them yet. This diff was generated with AI assistance (Navi). Tags: ai-generated
1e67a36 to
f980c52
Compare
There was a problem hiding this comment.
Approved: the window controller, the Table runtime and the useScrollableArea bridge match the list-windowing, Table virtualization and React runtime records, and CI passes on this head.
Table adopting the shared windowing module first now follows the list-windowing record. One non-blocking gap remains: no test reaches the clipped row-number fallback (hasClippedRowNumber), so it needs a browser test once Table wires row numbers.
[Automated review]
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| TableBody | 3.5 kB (0) · 3.3 kB CSS (0) | — | ✓ · ✓ · ✗ |
| TableFooter | 3.5 kB (0) · 3.3 kB CSS (0) | — | ✓ · ✓ · ✗ |
| TableHeader | 3.5 kB (0) · 3.3 kB CSS (0) | — | ✓ · ✓ · ✗ |
133 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| TableRow | 6.9 kB (0) · 3.9 kB CSS (0) | — | ✓ · ✓ · ✗ |
| DateRangeInput | 92.0 kB (+135 B) · 12.5 kB CSS (0) | — | — · — · — |
| CodeBlock | 74.6 kB (+123 B) · 11.3 kB CSS (0) | — | — · — · — |
| TimeInput | 159.4 kB (+118 B) · 16.0 kB CSS (0) | — | — · — · — |
| Table | 117.5 kB (+117 B) · 18.2 kB CSS (0) | — | ✓ · ✓ · — |
| Markdown | 180.7 kB (+115 B) · 20.5 kB CSS (0) | — | — · — · — |
| DateTimeInput | 205.5 kB (+109 B) · 18.7 kB CSS (0) | — | — · — · — |
| ScrollableArea | 10.8 kB (+107 B) · 4.3 kB CSS (0) | — | — · — · — |
| PowerSearch | 283.7 kB (+101 B) · 24.2 kB CSS (0) | — | — · — · — |
| DateInput | 183.9 kB (+90 B) · 17.0 kB CSS (0) | — | — · — · — |
| BottomSheet | 65.9 kB (+79 B) · 7.7 kB CSS (0) | — | — · — · — |
| Calendar | 70.8 kB (+25 B) · 10.6 kB CSS (0) | — | — · — · — |
| DialogHeader | 62.6 kB (+25 B) · 11.5 kB CSS (0) | — | — · — · — |
| Button | 59.8 kB (+24 B) · 10.0 kB CSS (0) | — | — · — · — |
| AppShell | 90.4 kB (+23 B) · 13.5 kB CSS (0) | — | — · — · — |
| ChatLayoutScrollButton | 60.3 kB (+23 B) · 10.2 kB CSS (0) | — | — · — · — |
| DrawerHeader | 62.8 kB (+23 B) · 12.9 kB CSS (0) | — | — · — · — |
| TableSelectionToolbar | 70.0 kB (+23 B) · 13.2 kB CSS (0) | — | ✓ · ✓ · ✓ |
| ChatSendButton | 60.2 kB (+22 B) · 10.0 kB CSS (0) | — | — · — · — |
| IconButton | 59.8 kB (+22 B) · 10.0 kB CSS (0) | — | — · — · — |
| SideNavCollapseButton | 60.6 kB (+22 B) · 10.0 kB CSS (0) | — | — · — · — |
| TopNavMegaMenu | 69.2 kB (+22 B) · 11.8 kB CSS (0) | — | — · — · — |
| Banner | 61.8 kB (+21 B) · 10.5 kB CSS (0) | — | — · — · — |
| ChatDictationButton | 60.3 kB (+21 B) · 10.0 kB CSS (0) | — | — · — · — |
| MobileNavToggle | 60.1 kB (+21 B) · 10.0 kB CSS (0) | — | — · — · — |
| Stepper | 61.4 kB (+21 B) · 10.1 kB CSS (0) | — | — · — · — |
| TextInput | 67.3 kB (+20 B) · 11.2 kB CSS (0) | — | — · — · — |
| MobileNav | 70.1 kB (+19 B) · 10.6 kB CSS (0) | — | — · — · — |
| MoreMenu | 96.7 kB (+18 B) · 17.6 kB CSS (0) | — | — · — · — |
| TopNav | 71.8 kB (+18 B) · 10.9 kB CSS (0) | — | — · — · — |
| BaseTypeahead | 70.7 kB (+17 B) · 10.9 kB CSS (0) | — | — · — · — |
| ChatComposer | 77.4 kB (+17 B) · 12.0 kB CSS (0) | — | — · — · — |
| CheckboxListItem | 70.5 kB (+17 B) · 11.4 kB CSS (0) | — | — · — · — |
| MultiSelector | 94.3 kB (+17 B) · 16.8 kB CSS (0) | — | — · — · — |
| NumberInput | 71.3 kB (+17 B) · 11.4 kB CSS (0) | — | — · — · — |
| SideNav | 111.7 kB (+17 B) · 11.4 kB CSS (0) | — | — · — · — |
| Typeahead | 79.1 kB (+17 B) · 12.4 kB CSS (0) | — | — · — · — |
| BreadcrumbItem | 84.0 kB (+16 B) · 12.1 kB CSS (0) | — | — · — · — |
| CheckboxInput | 63.8 kB (+16 B) · 9.2 kB CSS (0) | — | — · — · — |
| ContextMenuItem | 29.0 kB (+16 B) · 6.3 kB CSS (0) | — | — · — · — |
| FileInput | 68.7 kB (+16 B) · 10.9 kB CSS (0) | — | — · — · — |
| ListItem | 69.4 kB (+16 B) · 11.4 kB CSS (0) | — | — · — · — |
| RadioListItem | 66.8 kB (+16 B) · 10.1 kB CSS (0) | — | — · — · — |
| Tokenizer | 90.9 kB (+16 B) · 18.8 kB CSS (0) | — | — · — · — |
| TopNavMenu | 74.1 kB (+16 B) · 11.2 kB CSS (0) | — | — · — · — |
| Selector | 99.0 kB (+15 B) · 17.4 kB CSS (0) | — | — · — · — |
| Thumbnail | 64.1 kB (+15 B) · 11.6 kB CSS (0) | — | — · — · — |
| AlertDialog | 105.0 kB (+14 B) · 14.6 kB CSS (0) | — | — · — · — |
| ChatComposerInput | 75.1 kB (+14 B) · 11.3 kB CSS (0) | — | — · — · — |
| ChatComposerTokenElement | 75.1 kB (+14 B) · 11.3 kB CSS (0) | — | — · — · — |
| ComplexSelector | 70.5 kB (+14 B) · 11.8 kB CSS (0) | — | — · — · — |
| Pagination | 109.1 kB (+14 B) · 17.8 kB CSS (0) | — | — · — · — |
| TabMenu | 71.3 kB (+14 B) · 11.1 kB CSS (0) | — | — · — · — |
| ToggleButton | 86.3 kB (+14 B) · 10.1 kB CSS (0) | — | — · — · — |
| Avatar | 42.7 kB (+13 B) · 5.5 kB CSS (0) | — | — · — · — |
| ChatLayout | 80.5 kB (+13 B) · 10.5 kB CSS (0) | — | — · — · — |
| Lightbox | 120.0 kB (+13 B) · 10.6 kB CSS (0) | — | — · — · — |
| Link | 52.6 kB (+13 B) · 7.0 kB CSS (0) | — | — · — · — |
| Timestamp | 32.3 kB (+13 B) · 10.3 kB CSS (0) | — | — · — · — |
| Toast | 97.6 kB (+13 B) · 10.3 kB CSS (0) | — | — · — · — |
| AvatarGroupOverflow | 48.4 kB (+12 B) · 5.6 kB CSS (0) | — | — · — · — |
| DropdownMenuSubMenu | 69.6 kB (+12 B) · 9.7 kB CSS (0) | — | — · — · — |
| InputGroup | 56.1 kB (+12 B) · 7.8 kB CSS (0) | — | — · — · — |
| NavHeadingMenu | 16.2 kB (+12 B) · 3.5 kB CSS (0) | — | — · — · — |
| Popover | 88.6 kB (+12 B) · 14.2 kB CSS (0) | — | — · — · — |
| RadioList | 55.8 kB (+12 B) · 7.3 kB CSS (0) | — | — · — · — |
| SideNavItem | 70.0 kB (+12 B) · 11.1 kB CSS (0) | — | — · — · — |
| Timer | 13.4 kB (+12 B) · 6.0 kB CSS (0) | — | — · — · — |
| TopNavHeading | 74.4 kB (+12 B) · 11.1 kB CSS (0) | — | — · — · — |
| Carousel | 69.3 kB (+11 B) · 10.9 kB CSS (0) | — | — · — · — |
| ChatMessageList | 27.5 kB (+11 B) · 7.0 kB CSS (0) | — | — · — · — |
| DropdownMenu | 96.4 kB (+11 B) · 17.6 kB CSS (0) | — | — · — · — |
| Field | 54.4 kB (+11 B) · 7.2 kB CSS (0) | — | — · — · — |
| FieldLabel | 50.6 kB (+11 B) · 5.7 kB CSS (0) | — | — · — · — |
| InfoTip | 46.2 kB (+11 B) · 5.3 kB CSS (0) | — | — · — · — |
| SideNavHeading | 75.0 kB (+11 B) · 11.3 kB CSS (0) | — | — · — · — |
| Switch | 101.3 kB (+11 B) · 9.9 kB CSS (0) | — | — · — · — |
| TableHeaderCell | 108.0 kB (+11 B) · 17.6 kB CSS (0) | — | ✓ · ✓ · ✓ |
| Text | 11.2 kB (+11 B) · 5.4 kB CSS (0) | — | — · — · — |
| TextArea | 61.9 kB (+11 B) · 9.3 kB CSS (0) | — | — · — · — |
| CheckboxList | 68.9 kB (+10 B) · 8.2 kB CSS (0) | — | — · — · — |
| CommandPalette | 72.7 kB (+10 B) · 12.7 kB CSS (0) | — | — · — · — |
| HoverCard | 27.1 kB (+10 B) · 4.4 kB CSS (0) | — | — · — · — |
| Spinner | 24.1 kB (+10 B) · 6.2 kB CSS (0) | — | — · — · — |
| CommandPaletteInput | 31.1 kB (+9 B) · 7.5 kB CSS (0) | — | — · — · — |
| Heading | 11.8 kB (+9 B) · 5.4 kB CSS (0) | — | — · — · — |
| SegmentedControl | 93.5 kB (+9 B) · 6.9 kB CSS (0) | — | — · — · — |
| Slider | 106.8 kB (+9 B) · 8.8 kB CSS (0) | — | — · — · — |
| TableCell | 108.4 kB (+9 B) · 17.8 kB CSS (0) | — | ✓ · ✓ · ✓ |
| Tooltip | 29.1 kB (+9 B) · 4.4 kB CSS (0) | — | — · — · — |
| AvatarGroup | 45.5 kB (+8 B) · 5.7 kB CSS (0) | — | — · — · — |
| ChatToolCalls | 31.4 kB (+8 B) · 8.3 kB CSS (0) | — | — · — · — |
| ContextMenu | 107.2 kB (+8 B) · 17.4 kB CSS (0) | — | — · — · — |
| StatusDot | 30.8 kB (+8 B) · 5.3 kB CSS (0) | — | — · — · — |
| TreeList | 44.2 kB (+1 B) · 5.6 kB CSS (0) | — | — · — · — |
| BottomSheetSwitcher | 17.9 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| ButtonGroup | 41.6 kB (0) · 3.7 kB CSS (0) | — | — · — · — |
| Collapsible | 27.1 kB (0) · 4.5 kB CSS (0) | — | — · — · — |
| Dialog | 23.9 kB (0) · 6.9 kB CSS (0) | — | — · — · — |
| DropdownMenuCheckboxItem | 22.7 kB (0) · 6.6 kB CSS (0) | — | — · — · — |
| DropdownMenuItem | 21.9 kB (0) · 6.3 kB CSS (0) | — | — · — · — |
| DropdownMenuRadioItem | 22.7 kB (0) · 6.6 kB CSS (0) | — | — · — · — |
| LayoutPanel | 21.3 kB (0) · 4.9 kB CSS (0) | — | — · — · — |
| ProgressBar | 11.7 kB (0) · 6.3 kB CSS (0) | — | — · — · — |
| ResizeHandle | 21.5 kB (0) · 4.3 kB CSS (0) | — | — · — · — |
| TabList | 43.3 kB (0) · 6.5 kB CSS (0) | — | — · — · — |
| Toolbar | 43.2 kB (0) · 8.1 kB CSS (0) | — | — · — · — |
| charts/Chart | 199.1 kB (new) · 494 B CSS (new) | — | — · — · — |
| charts/ChartLegend | 48.5 kB (new) · 224 B CSS (new) | — | — · — · — |
| charts/ChartTooltip | 176.4 kB (new) · 423 B CSS (new) | — | — · — · — |
| lab/ChatEmojiPicker | 103.3 kB (new) · 773 B CSS (new) | — | — · — · — |
| lab/ChatReactionBar | 104.4 kB (new) · 1.1 kB CSS (new) | — | — · — · — |
| lab/CommentComposer | 148.3 kB (new) · 1.9 kB CSS (new) | — | — · — · — |
| lab/CommentPin | 56.7 kB (new) · 1.2 kB CSS (new) | — | — · — · — |
| lab/Comments | 341.0 kB (new) · 2.5 kB CSS (new) | — | — · — · — |
| lab/CommentThread | 334.0 kB (new) · 2.4 kB CSS (new) | — | — · — · — |
| lab/DialogHeroHeader | 82.5 kB (new) · 372 B CSS (new) | — | — · — · — |
| lab/DiffViewer | 86.3 kB (new) · 2.1 kB CSS (new) | — | — · — · — |
| lab/EmojiPicker | 85.9 kB (new) · 751 B CSS (new) | — | — · — · — |
| lab/LineClamp | 13.3 kB (new) · 168 B CSS (new) | — | — · — · — |
| lab/ListInput | 101.4 kB (new) · 1.6 kB CSS (new) | — | — · — · — |
| lab/NavigationScreen | 80.2 kB (new) · 1.5 kB CSS (new) | — | — · — · — |
| lab/NavigationStack | 80.2 kB (new) · 1.5 kB CSS (new) | — | — · — · — |
| lab/Schedule | 105.4 kB (new) · 3.9 kB CSS (new) | — | — · — · — |
| lab/SelectableCardGroup | 64.0 kB (new) · 162 B CSS (new) | — | — · — · — |
| lab/TabBar | 74.7 kB (new) · 1.8 kB CSS (new) | — | — · — · — |
| lab/TabBarItem | 3.8 kB (new) · 1.8 kB CSS (new) | — | — · — · — |
| lab/TourStep | 94.9 kB (new) · 590 B CSS (new) | — | — · — · — |
| lab/TransferList | 107.5 kB (new) · 1.7 kB CSS (new) | — | — · — · — |
| lab/TransferListSelector | 114.0 kB (new) · 1.9 kB CSS (new) | — | — · — · — |
| richtext/RichTextEditor | 296.5 kB (new) · 2.6 kB CSS (new) | — | — · — · — |
| richtext/RichTextEditorToolbar | 276.9 kB (new) · 454 B CSS (new) | — | — · — · — |
| richtext/RichTextView | 275.5 kB (new) · 2.3 kB CSS (new) | — | — · — · — |
Package size: measured; main has no measurement of the merge base to compare yet.
API changes: cli +22 · ~7 · −0 (against the merge base's committed report); theme-butter +1 · ~0 · −0 (against the merge base's committed report); theme-y2k +1 · ~0 · −0 (against the merge base's committed report)
Committed API report behind this build: cli 29 rows, core 40 rows, theme-butter 1 row, theme-y2k 1 row; run pnpm api:report.
31 API changes (advisory)
| Package | Where | Signature | Usage | |
|---|---|---|---|---|
| + | cli |
./api · Functions · function exportSearchIndex |
function exportSearchIndex @experimental: (options?: { cwd?: string | undefined; package?: string | undefined }) => Promise<SearchIndex> |
import {exportSearchIndex} from '@astryxdesign/cli/api'; exportSearchIndex(…) |
| + | cli |
./api · Functions · function rankSearchIndex |
function rankSearchIndex @experimental: (query: string, indexes: SearchIndex | SearchIndex[], options?: { type?: SearchDomain | undefined; limit?: number | undefined }) => Promise<SearchResponse> |
import {rankSearchIndex} from '@astryxdesign/cli/api'; rankSearchIndex(…) |
| + | cli |
./api · Types · type DocsListChild |
type DocsListChild = DocsNodeChild & { topic: string; description: string; children?: DocsListChild[]; childCount?: number } |
import type {DocsListChild} from '@astryxdesign/cli/api' |
| + | cli |
./api · Types · type DocsListNamespace |
childCount?: number | undefined |
import type {DocsListNamespace} from '@astryxdesign/cli/api'; const x: DocsListNamespace = {childCount: …} |
| + | cli |
./api · Types · type DocsListNamespace |
children?: DocsListChild[] | undefined |
import type {DocsListNamespace} from '@astryxdesign/cli/api'; const x: DocsListNamespace = {children: …} |
| + | cli |
./api · Types · type SearchIndex |
type SearchIndex |
import type {SearchIndex} from '@astryxdesign/cli/api' |
| + | cli |
./api · Types · type SearchResultEntry |
deprecated?: ComponentDeprecation | undefined |
import type {SearchResultEntry} from '@astryxdesign/cli/api'; const x: SearchResultEntry = {deprecated: …} |
| + | cli |
./authoring · Types · interface ComponentDeprecation |
interface ComponentDeprecation |
import type {ComponentDeprecation} from '@astryxdesign/cli/authoring' |
| + | cli |
./authoring · Types · interface ComponentIconSlotDoc |
interface ComponentIconSlotDoc |
import type {ComponentIconSlotDoc} from '@astryxdesign/cli/authoring' |
| + | cli |
./authoring · Types · interface ComponentIconSlotStateDoc |
interface ComponentIconSlotStateDoc |
import type {ComponentIconSlotStateDoc} from '@astryxdesign/cli/authoring' |
| + | cli |
./authoring · Types · interface MultiComponentDoc |
deprecated?: ComponentDeprecation |
import type {MultiComponentDoc} from '@astryxdesign/cli/authoring'; const x: MultiComponentDoc = {deprecated: …} |
| + | cli |
./authoring · Types · interface SingleComponentDoc |
deprecated?: ComponentDeprecation |
import type {SingleComponentDoc} from '@astryxdesign/cli/authoring'; const x: SingleComponentDoc = {deprecated: …} |
| + | cli |
./doc · Types · interface ComponentBaseDoc |
deprecated?: ComponentDeprecation |
import type {ComponentBaseDoc} from '@astryxdesign/cli/doc'; const x: ComponentBaseDoc = {deprecated: …} |
| + | cli |
./doc · Types · interface SubComponentDoc |
deprecated?: ComponentDeprecation |
import type {SubComponentDoc} from '@astryxdesign/cli/doc'; const x: SubComponentDoc = {deprecated: …} |
| + | cli |
./doc · Also exported from an earlier entry point · ComponentDeprecation |
ComponentDeprecation (./authoring) |
import {ComponentDeprecation} from '@astryxdesign/cli/doc' |
| + | cli |
./doc · Also exported from an earlier entry point · ComponentIconSlotDoc |
ComponentIconSlotDoc (./authoring) |
import {ComponentIconSlotDoc} from '@astryxdesign/cli/doc' |
| + | cli |
./doc · Also exported from an earlier entry point · ComponentIconSlotStateDoc |
ComponentIconSlotStateDoc (./authoring) |
import {ComponentIconSlotStateDoc} from '@astryxdesign/cli/doc' |
| + | cli |
./json · Also exported from an earlier entry point · DocsListChild |
DocsListChild (./api) |
import {DocsListChild} from '@astryxdesign/cli/json' |
| + | cli |
./json · Also exported from an earlier entry point · SearchIndex |
SearchIndex (./api) |
import {SearchIndex} from '@astryxdesign/cli/json' |
| + | cli |
./template · Also exported from an earlier entry point · ComponentDeprecation |
ComponentDeprecation (./authoring) |
import {ComponentDeprecation} from '@astryxdesign/cli/template' |
| + | cli |
./template · Also exported from an earlier entry point · ComponentIconSlotDoc |
ComponentIconSlotDoc (./authoring) |
import {ComponentIconSlotDoc} from '@astryxdesign/cli/template' |
| + | cli |
./template · Also exported from an earlier entry point · ComponentIconSlotStateDoc |
ComponentIconSlotStateDoc (./authoring) |
import {ComponentIconSlotStateDoc} from '@astryxdesign/cli/template' |
| ~ | cli |
./api · Functions · function search |
function search: (query: string, options?: { cwd?: string | undefined; type?: "template" | "component" | "hook" | "theme" | "doc" | undefined; limit?: number | undefined }) => Promise<SearchResponse> → function search: (query: string, options?: { cwd?: string | undefined; type?: "template" | "component" | "doc" | "theme" | "hook" | undefined; limit?: number | undefined }) => Promise<SearchResponse> |
import {search} from '@astryxdesign/cli/api'; search(…) |
| ~ | cli |
./api · Types · type SwizzleCopyResponse |
data: { component: string; package: string; outputDir: string; filesCopied: number; files: string[]; usesStyleX: boolean; feedback?: SwizzleFeedback | undefined } → data: { component: string; package: string; outputDir: string; filesCopied: number; files: string[]; usesStyleX: boolean; dependencies: Record<string, string>; marker … #84d9505b |
import type {SwizzleCopyResponse} from '@astryxdesign/cli/api'; const x: SwizzleCopyResponse = {data: …} |
| ~ | cli |
./authoring · Types · interface MultiComponentDoc |
theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[] } → theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[]; componentIcons?: ComponentIconSlotDoc[] } |
import type {MultiComponentDoc} from '@astryxdesign/cli/authoring'; const x: MultiComponentDoc = {theming: …} |
| ~ | cli |
./authoring · Types · interface SingleComponentDoc |
theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[] } → theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[]; componentIcons?: ComponentIconSlotDoc[] } |
import type {SingleComponentDoc} from '@astryxdesign/cli/authoring'; const x: SingleComponentDoc = {theming: …} |
| ~ | cli |
./authoring · Types · type TemplateCategory |
type TemplateCategory = | 'Dashboard - Analytics' | 'Dashboard - Comparison' | 'Dashboard - KPI Summary' | 'Dashboard - Monitoring' | 'Dashboard - Executive Summary' | 'Dashboard - Sco … #e7c18378 → type TemplateCategory = | 'Dashboard - Analytics' | 'Dashboard - Comparison' | 'Dashboard - KPI Summary' | 'Dashboard - Monitoring' | 'Dashboard - Executive Summary' | 'Dashboard - Sco … #a8be998f |
import type {TemplateCategory} from '@astryxdesign/cli/authoring' |
| ~ | cli |
./doc · Types · interface ComponentBaseDoc |
theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[] } → theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[]; componentIcons?: ComponentIconSlotDoc[] } |
import type {ComponentBaseDoc} from '@astryxdesign/cli/doc'; const x: ComponentBaseDoc = {theming: …} |
| ~ | cli |
./doc · Types · interface SubComponentDoc |
theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[] } → theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[]; componentIcons?: ComponentIconSlotDoc[] } |
import type {SubComponentDoc} from '@astryxdesign/cli/doc'; const x: SubComponentDoc = {theming: …} |
| + | theme-butter |
Public attributes · attr data-astryx-pressable |
attr data-astryx-pressable (public data attribute) |
[data-astryx-pressable] { … } |
| + | theme-y2k |
Public attributes · attr data-astryx-pressable |
attr data-astryx-pressable (public data attribute) |
[data-astryx-pressable] { … } |
Touched components checked; add ci:run-visual, ci:run-a11y or ci:run-rtl to run the full suites.
Generated by PR Enrichment workflow | View full report
Stack
Row virtualization is split into eight stacked PRs, each under the 2,000-line limit. Each PR's base is the one above it, so review and merge from the top of this list down.
Two record amendments the stack relies on: #10665 (Table adopts the shared list-windowing module first) and #10666 (a windowed row-number column fits its last position).
Maintainer impact
Windowed Table rows need a controller that turns the planner's arithmetic into a stable set of mounted rows, and a geometry source that does not add a second scroll listener or observer to the viewport Table already measures.
Intended invariant
useScrollableAreameasurement, not a new listener or observer.utils/listWindowmodule (feat(core): add the shared list-windowing module and Table's capability hook #10656); this PR adds no second planner.scrollTop. A scroll inside the mounted rows reads no row layout and re-renders no rows.Change
hooks/scrollGeometrySubscriptions.ts: a private bridge that lets Table subscribe to the viewport's existing measurements.hooks/useScrollableArea.ts: publishes each measurement to that bridge, and reports whether it followed a content change (below the content root) or a layout change (viewport or content resize, fonts, or a class or style change on the content root, viewport or an ancestor).Table/tableRuntime.ts: Table's private viewport runtime. It publishes stable geometry snapshots with arevisionand alayoutRevision. A plain scroll reads onlyscrollTop; viewport and content sizes and the body offset are read on connection and on content or layout invalidations.plugins/virtualization/useTableWindow.ts: the controller. It plans mounted rows before cells are built, keeps one focused-row island, reconciles first-visible-key anchors, and validates mounted rows after mount and on invalidations only. Only a windowed table tracks interaction modality, which focus return reads.utils/interactionModality.ts:useInteractionModalityTrackingFortakes an optionalisEnabled, so a table that never windows holds no tracking.registerTableScrollWrapper,isTableScrollWrapperOwnedandTableRuntimeContexthave no caller in this PR; Table and its scroll wrapper use them in feat(Table): window fixed-height flat tables through useTableRowsVirtualization #8280.[chore] InternalChangeset names@astryxdesign/core.Evidence
useScrollableAreatest: a change below the content root publishes a content-only measurement; a class change on an ancestor publishes a layout measurement.Scope
Testing
--max-warnings=0) on every changed file, andpnpm typecheckinpackages/corepass on this exact head.vitest run --project ui packages/coreat the top of this stack: 20,720 tests pass. The Table, hooks, utils and Chat suites pass on this PR's own head. Four locale time-format tests (DateTimeInput,TimeInput,timeFormat) fail on the local machine's ICU data and pass in CI; they do not touch Table.node scripts/pre-review.mjs --base <the branch below>: 1,811 authored lines.main, that is, after the PRs below it merge.This PR was generated with AI assistance (Navi).