Skip to content

fix(platform): size every table's columns to their content - #3502

Merged
yannickmonney merged 4 commits into
feat/automations-sub-panelfrom
fix/table-column-widths
Sep 27, 2026
Merged

yannickmonney merged 4 commits into
feat/automations-sub-panelfrom
fix/table-column-widths

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #3501 (Knowledge tabs, General tab); this PR's base is that branch. Merge #3501 first.

Summary

Every table's columns now match their content. A fixed column (a status, a date, a count, a short enum) is as wide as its header and its widest value in English, German and French, and no wider. The text columns (a name, a description, a comment, an e-mail) take whatever width is left.

The DataTable model (@tale/ui)

  • Before: content columns shared the container in proportion to their declared size. On a wide screen a one-icon Source column grew as much as the name beside it. On a narrow one, a badge column shrank under its label. A column declared at exactly size: 150 was also mistaken for "unset" and rendered auto, which made the Documents Source column 255px wide.
  • Now: every content column is exactly its size in px. The flex columns (meta.flex: true, or else the first content column) are left auto and share the slack in equal parts. The sizes still sum to the table's floor, below which it scrolls sideways.
  • The date and locale column builders default to what their content needs (112 and 56).
  • The ui-docs Data table page gains a "Size columns to their content" section, and its demos declare fitted sizes.

Every table resized from measured content

Widths come from the rendered strings, measured in the app's own font across en/de/fr: headers, badges (label + padding + dot or icon), ll LT dates plus the copy button, and relative times. Examples at 1440px (German, live width before → after):

Table Before After
Automations Projects 314 · Versions 209 · Status 244 168 · 112 · 156; the name takes the rest
Documents Source 255 · RAG status 160 (German "Fehlgeschlagen" + retry needs 183) 76 · 188
Knowledge entries Status 128 (the failed badge ran into Updated) 188; topic and content share the rest
Members Role 159 · Joined 170 120 · 136; the member takes the rest
Audit log Category 114, Status 114 (German labels clipped) 148 · 136; action, user and target share the rest
Usage metrics Requests / Tokens / Cost 227 each 92 / 120 / 120; the assistant or model takes the rest

Also resized:

  • Knowledge: contacts, websites, products.
  • Settings lists: teams, API keys, AI providers and connectors, skills, sandboxes, WebDAV, block counters.
  • Governance: competences, trash, data-subject requests, and the four legal-hold tables.
  • Metrics: feedback (4 tables) and top automations.
  • Import dialogs: the Microsoft 365 import tables, also used by Google Drive.
  • ai-gateway: the accounts table only gets its comment updated; the new model already gives its account column the slack.

Where a column can still meet a rarer, longer value, it now truncates or wraps inside its own cell instead of painting into its neighbour:

  • The "needs reindex" RAG badge truncates beside its retry button.
  • Raw audit action keys wrap after their dots.
  • A credential's raw error payload wraps.
  • IDs and e-mails truncate with a title.

Documents floor

The Documents floor stays at main's 1160px (#3498's regression test holds). Inside that floor the widths are rebalanced so RAG status fits German "Fehlgeschlagen" plus its retry button, and Uploaded by fits the German header.

With #3501's Knowledge tabs underneath, there is no side panel beside the table: at a 1440px window it gets about 1355px and fits without scrolling. It needs a window of about 1250px.

Test plan

  • @tale/ui data-table unit (90) and browser (16) tests, including new browser tests for the exact-px and shared-slack model.
  • Platform UI tests for every touched area: 204 files, 1598 tests.
  • Browser tests: the documents floor and filename tests, skills, sandbox quota, governance skeletons.
  • New unit test: an untranslated audit action key wraps after its dots.
  • Typecheck and type-aware lint: @tale/ui, platform, ai-gateway and ui-docs. ai-gateway and ui-docs tests pass.
  • bun run lint:manual, with a new box KNOW-F29 (columns fit their content).
  • Live probe at 1440 in en/de/fr of Automations, Projects, Documents, Knowledge entries, Contacts, Members, Teams, API keys, Providers, Skills, Logs and Usage. Each fixed column is at or above its content; only flex, truncating or wrapping columns carry more content than width.
  • Websites, products, sandboxes, connectors, governance, feedback and the import dialogs have no rows in my dev org. Their sizes come from measured strings, and the import, feedback and automations-metrics tables were checked in a browser against stubbed responses. A look with real rows is still open.

Every content column now keeps exactly its declared size in px; only the
flex columns — the ones marked meta.flex, or else the first content
column — are left auto and share the slack in equal parts. Growing every
column in proportion handed a one-icon column the same share of a wide
screen as the name beside it, and a declared size of exactly 150 was
mistaken for "unset" and left auto.

The date and locale builders default to the widths their content needs.
A new section on the Data table page: fixed columns keep their declared
px, flex columns share what is left, and the sizes sum to the table's
floor. The demos declare a size on every column, fitted to their content.
The account column now takes the slack as the table's first column while
every other column keeps its declared px; the ACCT-36 pin speaks of the
proportional sharing in the past tense.
Each fixed column now fits its header and its widest value in English,
German and French — a status column its longest badge, a date column its
longest date — and the name, description or comment columns take the
rest. Documents, knowledge entries, contacts, websites, products,
projects, automations, the settings lists, the audit log, governance,
metrics and the Microsoft 365 import dialog are all resized; columns
that could still meet a longer value truncate or wrap inside their cell
instead of running into the next one.
@yannickmonney
yannickmonney force-pushed the fix/table-column-widths branch from c2e76f8 to 9ea5972 Compare September 27, 2026 10:28
@yannickmonney
yannickmonney changed the base branch from main to feat/automations-sub-panel September 27, 2026 10:28
@yannickmonney
yannickmonney merged commit e629e34 into feat/automations-sub-panel Sep 27, 2026
50 of 51 checks passed
@yannickmonney
yannickmonney deleted the fix/table-column-widths branch September 27, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant