Skip to content

fix(dashboards): cap embedded table height via config.height#45

Merged
sauterbe merged 1 commit into
mainfrom
fix/dashboard-table-height-cap
Jul 13, 2026
Merged

fix(dashboards): cap embedded table height via config.height#45
sauterbe merged 1 commit into
mainfrom
fix/dashboard-table-height-cap

Conversation

@sauterbe

Copy link
Copy Markdown
Contributor

Problem

The logistics/warehouse dashboard embedded an order table (TableTabs) that grows endlessly. The embedded workspace view paginates at 25/page, but with config.height unset the widget defaults to grow-with-rows — so it starts ~25 rows tall and keeps growing, pushing the rest of the cockpit off the page.

Root cause

Not a missing capability: the widget already supports a bounded height. stylesFromHeight('420px'){ height: '420px', overflow: 'auto' }, and the editor exposes it as the compact preset ("~8 rows, then scrolls internally"). Nothing was setting it, and my earlier skill rule (#42) wrongly said TableTabs has "no row cap" and pointed at a status filter — which reduces rows but does not bound height.

Fix (uses the shipped mechanism, no new CSS)

  • warehouse_shipping dashboard — backlog table set to config.height: "420px".
  • xentral-dashboards skill (widgets.md + SKILL.md) — rewrite the table-height rule to lead with config.height ("420px" compact / "fill"); note a status filter alone does not cap height.
  • shopify-warehouse prompt — instruct compact table height explicitly.

Supersedes the guidance in #42.

A dashboard TableTabs defaults to grow-with-rows (config.height unset),
so a big list (hundreds of orders) expands endlessly and pushes the rest
of the cockpit off the page — even alone in its column it starts ~25
rows tall. The widget already supports a bound (config.height: '420px' =
compact preset → ~8 rows, then internal scroll via stylesFromHeight);
nothing was setting it.

- warehouse_shipping dashboard: set the backlog table to '420px'.
- xentral-dashboards skill (widgets.md + SKILL.md): correct the
  table-height rule — lead with config.height instead of the earlier
  'no row cap / narrow with a status filter' advice, which missed the
  shipped mechanism and didn't actually bound the height.
- shopify-warehouse prompt: instruct compact table height explicitly.
@sauterbe
sauterbe merged commit ec223a2 into main Jul 13, 2026
1 check passed
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