Repository navigation
[2.1] Fixes #38473: Remove the column cap on table custom properties; show 3 columns with horizontal scroll (backport 2.1 #38490) - #38546
Conversation
…3 columns with horizontal scroll (#38490) * Fixes #38473: remove the column cap on table custom properties Table-type custom properties no longer cap columns at three (both schemas, the backend check and the create form). Every surface that renders the value shows three columns and scrolls horizontally for the rest; wide values in the AI-mode profile row take a full-width slot so the scroll container has a width. * Address self-review: column cell width, stale visual scenario, IT assertion - Schema-tab column cell gives the table value a definite width so the container-query layout does not collapse. - Drop the visual scenario and baselines that waited for the removed 3-column error. - Assert the min-columns rejection type and message; cover the full-width table slot in CustomPropertyRow. * Address Greptile: give the table view a definite width; bound editor columns - The view root is w-full, so a flex host (schema-tab column cell) no longer shrinks the container-query table to its borders. - Editor columns get the same max width as the view and wrap long headers, so a long column name cannot push the visible count below three. * Table custom property: edge scroll shadows and narrower columns - Export the card Tabs' useOverflowEdges hook from ui-core-components and reuse it to shadow whichever table edge hides columns, matching the Explore tabs. In the editor the end shadow sits left of the pinned delete column. - Cap each column at 12rem (still a third of narrow hosts). * Decision record: columns are a third of the host capped at 12rem; edge shadows * Table custom property: one column width class (min-w + max-w) Measured in Chromium and WebKit: on table cells width behaves like min-width, so w was redundant; min-w stops columns squeezing, max-w stops long values widening them. The editor's 2.5rem offset only mattered below ~616px, which no editor host reaches, so view and editor share one class. * Table.Head: opt-in wrapLabel so long headers wrap in capped columns The header label is whitespace-nowrap, so a long column name in a width-capped column spilled into the next header. wrapLabel wraps it (wrap-anywhere, left-aligned) and lets its flex wrappers shrink; the table custom property view opts in. Other tables keep single-line headers. * Move table scroll shadows into ui-core-components - ScrollShadow: scrolls content horizontally and shadows whichever edge hides it (endShadowClassName insets the end shadow before a pinned column). Shares useOverflowEdges with the card Tabs. - Table gets an opt-in scrollShadows prop that renders its scroll container through ScrollShadow; other tables are unchanged. - The table custom property view uses <Table scrollShadows> and the editor wraps its <table> in ScrollShadow; the local frame component is gone. * Table story: WithScrollShadows (scrollShadows + wrapLabel)
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved 🟡 Medium riskRelaxing schema and backend limits lets table custom properties store more columns, changing accepted persisted values and rendering behavior across entity surfaces. Removes the 3-column cap on table-type custom properties across the config schema, value schema, backend validation, and create form, so tables can hold any number of columns. Columns now size to a third of the host (at most 12rem) and scroll horizontally with edge shadows. No issues found. VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Backport of #38490 to
2.1(cherry-pick of squash commit3f70f7c, applied cleanly; no conflicts).Verified on this branch: core vitest 37/37 (scroll-shadow, table, tabs), UI Jest 1,764/1,764 (custom property table, schema table, profile), core build OK.
tscreports 33 pre-existing errors on2.1inSSOUtils.test.tsandOMSelectWidget.tsx, neither touched here.Describe your changes:
Fixes #38473
Table-type custom properties no longer have a column cap. Wherever a table value appears, columns keep a readable width (a third of the host, at most 12rem) and the rest scroll horizontally behind an edge shadow, in both classic and AI mode.
The 3-column cap lived in three places, and all three are removed:
tableConfig.json—columns.maxItems: 3and themaxColumnsdefault. ThemaxColumnsfield stays, unenforced, so previously stored configs still validate.complexTypes.json→table-cp.columns—maxItems: 3on the value schema. Without this, a 10-column property could be defined but no value could be saved.TypeRepository.validateTableTypeConfigand the create form (CustomPropertyFormFields), shared by classic Settings and the AI-mode Custom Properties page.Type of change:
High-level design:
TablePropertyValue.tsx(View + Edit): the entity Custom Properties card, the edit modal, the right-panel widget's edit modal, the schema-tab column cell, the AI-mode profile row and its inline editor, and the CSV bulk-edit modal. The sizing is fixed there once.Tablealready scrolls (TableRootisoverflow-x-auto), but it isw-fulland has no column-width API, so columns used to squeeze to fit and never overflowed. Each column is nowmin(100cqw/3, 12rem)of atw:@containerwrapper, and the table isw-max min-w-full. Hosts narrower than about 36rem (the 230px schema cell) show three columns; wider hosts show more at 12rem each (about four in the 960px modal, five or six on full-width cards). The 12rem cap is a design request: a third of a wide card left mostly-empty columns. Tables that fit still fill the width. The editor's delete-row column is pinned to the right.Tabs. The tabs'useOverflowEdgeshook moved intoui-core-components/src/hooksand is exported, rather than being copied. In the editor, the end shadow sits left of the pinned delete column.CustomPropertyRow(AI-mode profile): wide-type values now render full-width below the header, in the same slot the inline editor already used.ColumnCustomPropertyCell: the value wrapper isw-full.table-cpschema.min-w-40per column: the number of visible columns would vary with the host (1 in the schema cell, 6 in the modal).Table: this is its only caller.Table: react-aria grid keyboard navigation conflicts with theInputs in the cells.docs/decisions/2026-11-23-table-custom-properties-have-no-column-cap.md.Tests:
Use cases covered
Unit tests
TablePropertyValue.test.tsx: renders all 10 headers and cells; editing column 10 saves all 10 columns.CustomPropertyRow.test.tsx: a table value renders full-width below the header. This fails without the fix.CustomPropertyTable/**,SchemaTable/**,Profile/customProperties/**andProfile/tabs/custom-properties/**: 283 passed, 0 failed. Earlier runs acrossdiscovery/personal-space/Profile+CustomPropertyTablepassed 1,720 / 1,720.Backend integration tests
TypeResourceIT:test_tableCustomPropertyStoresValueWithTenColumnsdefines a 10-column property, saves a 10-column value on a domain and reads it back equal. It fails on main, on both the config cap and the value-schema cap.test_addTableCustomPropertyWithoutColumns_failsassertsInvalidRequestExceptionand the new "must have at least 1 column(s)" message.Local Java test run on
2.1: PASSED —TypeResourceIT(mysql-elasticsearch · parallel): 48 run, 0 failed, 1 skipped, includingtest_tableCustomPropertyStoresValueWithTenColumnsandtest_addTableCustomPropertyWithoutColumns_fails. Only the class covering this change was run: the planner diffs againstmain, so on a2.1branch it selects the whole2.1↔maindifference.Ingestion integration tests
validate_table_structurecompares against the configured columns, not a fixed 3.Playwright (UI) tests
CustomProperties.spec.ts,CustomPropertiesApiContract.spec.ts) use 2-column configs and are unaffected; the merge queue runs them.custom-property-config-table-column-limitand its two baselines, because it waited for the "Maximum 3 Columns are allowed" error, which no longer exists.Manual testing performed
DEV_SERVER_TARGET=http://localhost:8595 npx vite) against a local server, logged in as admin.wideTableDemotable property (10 columns) on thetable,tableColumnandusertypes, then set a 2-row value on the admin user./users/admin/custom_properties: 10 headers, 3 fully visible, scroll width 3313 px vs. 994 px visible./#profile:CustomPropertyRowfix it rendered at 0 px wide.UI screen recording:
Classic mode — user page → Custom Properties card, scrolled to column 10 and back:
classic.webm
AI mode — Profile → Custom properties row view, then the inline table editor, both scrolled across 10 columns:
ai.webm
Screenshots after the edge-shadow + column-width change (
1bb08a4; the videos above predate it). Each is taken mid-scroll, so both edge shadows show. Columns are now 192px each.Classic mode: user page card
Classic mode: edit modal (the end shadow sits left of the pinned delete column)
AI mode: profile row, at rest (end shadow only)
AI mode: profile inline editor
Evidence and remaining work (why this is a draft):
fields=joins,usageSummary→UsageDAO$UsageDetailsWithId not present, a stale classpath), so these surfaces are not recorded yet: the table Custom Properties tab and edit modal, the schema-tab column cell, and the right-panel widget.Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.REVIEW.md(thepr-checklistskill runs it) and fixed every 🔴 finding, or answered it on the line below.53706eb. All three 🔴 were fixed inad7e0f6: the schema-cell zero-width collapse, the stale visual scenario, and the IT that assertedException.class. One 🟡 is open:message.maximum-count-allowedis now unused in OSS and is left in place for Collate consumers.docs/decisions/2026-11-23-table-custom-properties-have-no-column-cap.md.🤖 Generated with Claude Code