Skip to content

Introduce the Workbench rail layout for Artifacts - #50481

Merged
AmethystLiang merged 3 commits into
mainfrom
jinjing/rail-workbench-c4-1-shell
Nov 27, 2026
Merged

AmethystLiang merged 3 commits into
mainfrom
jinjing/rail-workbench-c4-1-shell

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Introduce the Workbench rail layout for Artifacts.

Files Added Deleted Net
Test 0 0 0 0
Prod 29 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1365 $\color{#cf222e}{\Huge{\mathbf{−}}}$​167 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1198

What Changed

Artifacts uses the shared rail header, toolbar and list gutters. The existing source type determines each row’s leading icon. The header only displays a total after a successful load for the current account.

Why

The four rail pages share a layout so the same kind of control stays in the same place. This is part 1 of five. The layout was checked against comparable products.

Visual Proof

The screenshots use an isolated profile and invented data.

Before

After

Artifacts types before

Artifacts types after

Testing

  • Bounded local preflight, including lint and typecheck.
  • Mod+F reaches page Search from a focused rail control. Existing editor, terminal, dialog and text-entry shortcuts keep their context.
  • Hidden Electron interactions with isolated fixtures at 1280px and 560px in light and dark themes.
  • Provider and remote selection cases use seeded fixtures.

Performance

The stack was measured with 20 trials per build for each first-open and page-switch route. Times are median / p95 in milliseconds. The frame measure uses the second animation frame.

Route DOM before DOM after Frame before Frame after
Tasks first open 384.45 / 473.00 399.15 / 490.90 404.20 / 503.60 424.25 / 531.30
Automations first open 326.85 / 346.50 325.20 / 341.10 385.15 / 431.10 375.00 / 433.40
Artifacts first open 321.20 / 334.50 318.30 / 327.70 337.50 / 367.80 336.10 / 342.50
Skills first open 323.10 / 337.60 318.40 / 328.10 344.85 / 379.40 339.75 / 364.30
Tasks → Automations 24.75 / 36.40 22.45 / 35.20 34.35 / 42.70 39.05 / 47.20
Tasks → Artifacts 25.75 / 40.40 22.00 / 38.10 29.25 / 44.40 27.70 / 42.40
Tasks → Skills 29.35 / 42.10 27.10 / 38.20 36.15 / 47.00 36.35 / 48.00
Automations → Tasks 66.80 / 85.10 65.90 / 92.50 109.55 / 161.70 118.85 / 164.90
Automations → Artifacts 19.40 / 25.90 15.40 / 25.10 26.15 / 38.30 27.55 / 37.20
Automations → Skills 26.55 / 35.10 16.40 / 24.10 31.40 / 42.20 24.25 / 34.70
Artifacts → Tasks 58.70 / 80.90 55.80 / 88.90 95.60 / 145.30 95.75 / 157.00
Artifacts → Automations 19.60 / 28.00 15.25 / 22.30 28.20 / 47.60 29.10 / 47.50
Artifacts → Skills 22.05 / 32.40 14.15 / 21.80 26.60 / 38.90 28.30 / 31.60
Skills → Tasks 60.70 / 90.60 54.40 / 85.40 87.35 / 149.10 74.35 / 150.60
Skills → Automations 21.35 / 28.00 18.05 / 29.30 28.10 / 47.60 29.25 / 56.30
Skills → Artifacts 18.55 / 23.30 14.40 / 23.10 25.75 / 30.30 26.45 / 30.80
Focused retest Before After
Artifacts → Automations, warmed DOM 11.55 / 19.60 9.15 / 10.30
Tasks first open, alternated cold frame 364.95 / 550.30 371.40 / 514.80

The alternated retest reduced the median difference to 6.5 ms and improved p95 by 35.5 ms. The UX review accepted these results as within host variation.

Risk

Medium. Shared search focus and list layout affect rail navigation. A revert removes the shared layout and restores the previous Artifacts view.

…, Artifacts on it

One RailPage module (inset surface, 52px header band, 42px toolbar band,
notice band, non-scrolling body) with a container-query narrow mode and a
--rail-page-gutter that list rows, headers and sticky cells share.
page.search (Mod+F) is a registry action guarded to page focus.
Artifacts moves onto the template with its controls, Esc ladder and
autofocus unchanged.
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0c212070-64a7-4492-b7e1-d56537eb1284
Commits

Reviewing files that changed from the base of the PR and between f74065d and f74065d.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

This change adds shared rail-page layout, header, toolbar, search, and control components. It adds a page.search keybinding with focus eligibility checks and responsive search behavior. The artifacts page adopts the shared layout and controls, displays counts only when the current page is loaded and complete, and passes error notices through its states. Artifact rows, loading skeletons, and table layout also receive updates.

Merge Risk: Minimal · up to f7406

This change moves Artifacts onto the shared rail-page layout and adds a page search shortcut. No concrete defects were found, and a revert would restore the previous view, so merge risk is minimal.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description follows the template's section headings (ELI5, What Changed, Why, Visual Proof, Testing, Performance, Risk), and it covers the main change and the risk. However, it is missing or incom… 1. Add a Linked Issue section with an actual issue reference (for example, "Fixes #NNNN"). Outside contributors need this link or the PR may be ignored. 2. Expand the Why section to explain why a shared rail layout is better than the altern…
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title "Introduce the Workbench rail layout for Artifacts" matches the main change. The diff adds shared rail-page components (RailPage, RailPageHeader, RailPageToolbar, RailPageSearch, RailPageScr…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Introduce the Workbench rail layout for Artifacts" matches the main change. The diff adds shared rail-page components (RailPage, RailPageHeader, RailPageToolbar, RailPageSearch, RailPageScroll) and applies them to ArtifactsPage and ArtifactCollection. It is specific and concise, with no file lists or vague terms. The title does not mention the search shortcut, row icons, or the header count, but those are secondary to the layout change.

Full details: Description check

Explanation

The description follows the template's section headings (ELI5, What Changed, Why, Visual Proof, Testing, Performance, Risk), and it covers the main change and the risk. However, it is missing or incomplete in several required places. The Linked Issue section is absent entirely, although the template says there should always be one for outside contributors and the author gives no issue reference. The Why section gives only a brief rationale and does not explain why this approach was chosen over alternatives. The Testing section does not say which platforms were tested (macOS, Linux, Windows, or SSH), and the template checklist items are not marked. The Review, Notes, and Checklist sections are absent, as is the Agent skill upstream boundary confirmation. The AI Disclosure section is also missing, and the template asks for it unless the author is a StablyAI team member. The Risk section has a level, but it does not name the riskiest part precisely or describe what users would see if it failed. The Performance section gives a table and a one-line reasoning but does not clearly state the trade-off. The Visual Proof section uses before and after images, which is acceptable. Overall the description is substantial, but the missing Linked Issue section and the missing platform and disclosure details keep it from being complete.

Resolution

  1. Add a Linked Issue section with an actual issue reference (for example, "Fixes #NNNN"). Outside contributors need this link or the PR may be ignored. 2. Expand the Why section to explain why a shared rail layout is better than the alternatives that were considered. 3. In Testing, name the platforms that were actually tested (macOS, Linux, Windows, or SSH) and mark the template checklist items. 4. Add the AI Disclosure section, stating which AI model was used if any, or confirm the author is a StablyAI team member. 5. Add the Review section and the Agent skill upstream boundary checkbox. 6. Expand the Risk section to name the riskiest part (shared search focus handling for Mod+F and the shared list layout), state what users would see if it failed, and state the revert path precisely. 7. Add the Notes and Checklist sections from the template, or confirm each item. 8. In Performance, state the trade-off in one sentence, for example that the DOM and frame timings are within host variation.
  • 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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b6ad18ae-64fb-442b-8679-3a96dee556f6
Commits

Reviewing files that changed from the base of the PR and between a374d8f and f74065d.

Files selected for processing: 1

  • src/renderer/src/components/rail-page/RailPageHeader.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fbcb323b-b3fe-4dc2-a381-0da850ab806a
Commits

Reviewing files that changed from the base of the PR and between 42bf92d and f4d1ad4.

Files selected for processing: 29

  • src/renderer/src/app-shell/AppWorkspaceShell.tsx
  • src/renderer/src/app-shell/chrome/AppShellLeftColumn.tsx
  • src/renderer/src/app-shell/chrome/use-rail-page-focus-recovery.ts
  • src/renderer/src/assets/main.css
  • src/renderer/src/components/app-rail/AppRailCustomizeMenu.tsx
  • src/renderer/src/components/artifacts/ArtifactCollection.tsx
  • src/renderer/src/components/artifacts/ArtifactListRow.tsx
  • src/renderer/src/components/artifacts/ArtifactListSearchField.tsx
  • src/renderer/src/components/artifacts/ArtifactListToolbar.tsx
  • src/renderer/src/components/artifacts/ArtifactsPage.tsx
  • src/renderer/src/components/artifacts/ArtifactsPageSkeleton.tsx
  • src/renderer/src/components/artifacts/ArtifactsPageStates.tsx
  • src/renderer/src/components/artifacts/artifacts-table-layout.ts
  • src/renderer/src/components/artifacts/useArtifactPagination.ts
  • src/renderer/src/components/rail-page/RailPage.fixture.tsx
  • src/renderer/src/components/rail-page/RailPage.tsx
  • src/renderer/src/components/rail-page/RailPageHeader.tsx
  • src/renderer/src/components/rail-page/RailPageSearch.tsx
  • src/renderer/src/components/rail-page/RailPageToolbar.tsx
  • src/renderer/src/components/rail-page/rail-page-search-shortcut.ts
  • src/renderer/src/components/settings/shortcuts/keybinding-title-copy.ts
  • src/renderer/src/components/ui/button.tsx
  • src/renderer/src/components/ui/input.tsx
  • src/renderer/src/components/ui/toggle-group.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/lib/list-interaction/list-table-layout.ts
  • src/renderer/src/lib/overlay-interaction/visible-overlay.ts
  • src/shared/keybindings/definitions-core-3.ts
  • src/shared/keybindings/types.ts
Files with no reviewable changes: 1

  • src/renderer/src/components/artifacts/ArtifactListToolbar.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

@AmethystLiang
AmethystLiang marked this pull request as draft November 27, 2026 08:35
@AmethystLiang
AmethystLiang marked this pull request as ready for review November 27, 2026 08:35
@AmethystLiang
AmethystLiang marked this pull request as draft November 27, 2026 08:37
@AmethystLiang
AmethystLiang changed the base branch from main to jinjing/rail-workbench-c4-2-automations November 27, 2026 08:37
@AmethystLiang
AmethystLiang changed the base branch from jinjing/rail-workbench-c4-2-automations to main November 27, 2026 08:37
@AmethystLiang
AmethystLiang marked this pull request as ready for review November 27, 2026 08:38
@AmethystLiang
AmethystLiang merged commit 23819db into main Nov 27, 2026
213 of 225 checks 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