Skip to content

refactor(web): one route-tab strip, row link, sheet header and page title - #1986

Merged
Makisuo merged 3 commits into
ui-consistency-1from
ui-consistency-2
Oct 30, 2026
Merged

Makisuo merged 3 commits into
ui-consistency-1from
ui-consistency-2

Conversation

@Makisuo

@Makisuo Makisuo commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Stack: #1985 tokens and primitives → #1986 kit pieces → #1987 migrations → #1988 scale cleanup

Second PR in the UI consistency stack (on #1985). It gives four layout pieces one shared implementation each, so pages stop hand-building them.

Changes

Route tabs. linkTabStrip (page/kit/underline-tabs.ts) gains an optional icon, a count (with an error tone) and an in-place onClick. The alerts hub, alert rule, investigation detail and every infra / infra-integrations strip now render through it. Infra's second function also named linkTabStrip is now a thin viewTabStrip adapter, and investigations moves its tabs from sticky: into the tabs: slot (a <nav> of links with aria-current instead of a tablist). Every strip now uses the kit look (security and code-review already did): 12px tab padding, underline inset to the content edge. Narrow screens scroll the strip.

Before After

Row navigation. ui/table.ts exports rowLink (a real link stretched over its row) and ROW_LINK_LIFT for controls that must stay clickable above it. The four copies of the overlay class (agent sessions, metrics, traces, alerts hub with ROW_STRETCHED_LINK_CLASS) are gone. No visual change.

Sheet headers. sheetDetailHeader takes segmented kinds and an adornment beside the title. The pod peek, code-review review sheet and investigation action sheet drop their copies and use it; their titles get the kit's display face.

Page titles. Every page <h1> goes through pageTitle: dashboardPage, infra pageHero/pageHeroParts (22 pages), dashboards list/templates/view, security, anomalies, investigations, integrations hub and detail, new source. The integration detail title grows from text-lg to the standard page-title size.

Before After

Verification

  • apps/web typecheck passes; Vitest: 1277 tests in every touched area plus src/ui and src/lab.
  • A review agent read the diff. Fixed from it: link strips had lost horizontal scrolling, and the investigations hero and anomaly titles were truncating instead of wrapping.
  • Screenshots: /lab/* before (PR fix(ui): one status palette, Card on the Panel radius, 14px control icons #1985 state) and after, 1440px, dark and light. Pages without a lab route (alerts hub, pod peek, review sheet) are covered by their scene tests only. Agent sessions shows no pixel change, as intended.

Known and unchanged: Foldkit's OnClick prevents every click, so cmd-click on the in-place Cloudflare/GCP tabs does not open a new tab (middle-click does). This predates the PR.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

…itle

linkTabStrip gains optional icon, count and onClick, and the alerts hub,
alert rule, investigation and infra strips render through it. ui/table
exports rowLink for stretched-link row navigation, replacing four copies of
the overlay class. sheetDetailHeader gains segmented kinds and an adornment
slot; the pod peek, review sheet and investigation action sheet use it.
Every page h1 now goes through pageTitle.
@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 31 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 66d309ff-de89-4711-8595-4bb6a9c36354
Commits

Reviewing files that changed from the base of the PR and between 1a2102c and 8fb880c.

Files selected for processing: 33
  • apps/web/src/page/agent-sessions/list/view-table.ts
  • apps/web/src/page/alerts/hub/view-inbox.ts
  • apps/web/src/page/alerts/hub/view-rules.ts
  • apps/web/src/page/alerts/hub/view-uptime.ts
  • apps/web/src/page/alerts/hub/view.ts
  • apps/web/src/page/alerts/rule/view.ts
  • apps/web/src/page/alerts/shared/links.ts
  • apps/web/src/page/anomalies/detail/view-body.ts
  • apps/web/src/page/code-review/kit/review-sheet-view.ts
  • apps/web/src/page/dashboards/list/view.ts
  • apps/web/src/page/dashboards/templates/view.ts
  • apps/web/src/page/dashboards/view/view.ts
  • apps/web/src/page/infra-integrations/aws/list/view.ts
  • apps/web/src/page/infra-integrations/cloudflare/list/view.ts
  • apps/web/src/page/infra-integrations/gcp/list/view.ts
  • apps/web/src/page/infra/kit/page-parts.ts
  • apps/web/src/page/infra/kit/view-tabs.ts
  • apps/web/src/page/infra/kubernetes/peek/view-header.ts
  • apps/web/src/page/integrations/view-header.ts
  • apps/web/src/page/integrations/view-hub.ts
  • apps/web/src/page/investigations/detail/view-action-sheet.ts
  • apps/web/src/page/investigations/detail/view.ts
  • apps/web/src/page/investigations/list/view.ts
  • apps/web/src/page/kit/dashboard-page.ts
  • apps/web/src/page/kit/sheet-detail-header.ts
  • apps/web/src/page/kit/underline-tabs.ts
  • apps/web/src/page/metrics/browse/view-table.ts
  • apps/web/src/page/security/kit/layout.ts
  • apps/web/src/page/sources/new/view.ts
  • apps/web/src/page/traces/list/view-row.ts
  • apps/web/src/ui/page-layout.ts
  • apps/web/src/ui/table.ts
  • packages/ui/src/components/ui/table.styles.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@maple-review-bot

This comment has been minimized.

@maple-review-bot

maple-review-bot Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Maple review

🟢 Confidence 10/10 · safe to merge. Only base-branch files changed since the last review and they are not in this diff; the earlier strip-scrolling and title-wrapping fixes are present at the head.
no findings · tests covered · risk medium

Consolidates four web layout primitives — route-tab strip, row link, sheet header and page title — into the kit and moves ~30 pages onto them. The substitutions are faithful (same classes, attributes and roles) and nothing in the diff is unsafe to merge.

  • linkTabStrip gains icon, count/countTone and onClick, and every route-tab strip now renders through it
  • rowLink and ROW_LINK_LIFT replace the four copied stretched-link class strings
  • sheetDetailHeader takes segmented kinds and an adornment; peek, review and action sheets use it
  • pageTitle/pageHeroParts put every page <h1> on pageTitleStyles

8fb880c · What was checked, coverage and telemetry details are on the Maple / review check. Reply "won't fix" to dismiss a finding, or mention @maple-review-bot to ask about one.

@Makisuo
Makisuo added this pull request to stack #1989 October 30, 2026 19:58
@Makisuo
Makisuo merged commit dbd0a52 into main Oct 30, 2026
29 checks passed
@Makisuo
Makisuo deleted the ui-consistency-2 branch October 30, 2026 19:58
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