Skip to content

feat(hub): clarify build status indicators - #378

Open
lukasoppermann wants to merge 1 commit into
mainfrom
lukasoppermann-build-status-visuals
Open

lukasoppermann wants to merge 1 commit into
mainfrom
lukasoppermann-build-status-visuals

Conversation

@lukasoppermann

Copy link
Copy Markdown
Contributor

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: e28862b2a2c06dbe4f94cac61f500467fc6fb8ee

Dimension Assessment Rationale
Change confidence 8/10 ↑ Reviewed the change and inspected the affected Storybook states in light and dark themes.
↑ Frontend lint, format, tests, build and Storybook build passed.
↓ Full Hub CI was blocked by an npm registry connection reset; authenticated live Hub behavior remains unverified.

Why

Build states need to be easier to recognize on the Build page and in the Build selector.

What changes

Build pages now show softly colored state labels, with a spinner for running Builds and a red icon for failures. The Build selector uses only a spinner for queued and running Builds and a red icon for failed Builds; status text remains available to screen readers.

Added stories for the label appearances and Build selector states. Removed duplicate narrow-width stories; Storybook's viewport controls cover those layouts.

Storybook screenshots

All screenshots use a 1575 × 1232 CSS-pixel viewport.

Build pages

Hub/Pages/Builds/Show / In Progress — light
Running Build page

Hub/Pages/Builds/Show / Failed — light
Failed Build page

Hub/Pages/Builds/Show / Successful — light
Successful Build page

Hub/Pages/Builds/Index / Multiple — light
Build history with selector open

Hub/Pages/Prototype Review / Multiple — light
Prototype review with failed Build in selector

Build labels

Components/Build State Label / Default — light
Default Build label

Components/Build State Label / States — light
Outlined Build labels

Components/Build State Label / Soft Background — light
Soft Build labels in light theme

Components/Build State Label / Soft Background — dark
Soft Build labels in dark theme

Components/Content Page Header / With Status — light
Content page header with status

Build selector

Hub/Features/Review/Shell Header / Build States — light
Build selector states in light theme

Hub/Features/Review/Shell Header / Build States — dark
Build selector states in dark theme

Hub/Features/Review/Shell Header / Newer Build Failed — light
Selector with a newer failed Build

Hub/Features/Review/Shell Header / Long Build Status — light
Selector with long status text

Hub/Features/Review/Shell Header / Many Builds — light
Selector with many Builds

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@lukasoppermann
lukasoppermann requested review from a team and nshki as code owners November 25, 2026 17:45
Copilot AI adaptive review requested due to automatic review settings November 25, 2026 17:45

Copilot AI 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.

🟡 Changes recommended

Active issues remain: a deleted BuildStateLabel test leaves the changed state mappings and indicators unprotected, and successful or superseded build options lose their screen-reader status labels.

2 open issues
What changed in this PR

This pull request clarifies Build lifecycle states across Hub pages and the Build selector with softer labels, progress spinners, and failure icons.

Changes:

  • Adds soft Build-state styling and state-specific visual indicators.
  • Updates Build pages and selector stories for queued, running, failed, and successful states.
  • Adds Storybook coverage and removes duplicate narrow-layout stories and the previous component test.
File Description
hub/​app/​javascript/​pages/​builds-show-page/​index.tsx Uses the soft Build-state label appearance on Build pages.
hub/​app/​javascript/​features/​prototype-workspace-header/​stories.tsx Adds Build selector lifecycle-state stories and removes duplicate narrow-layout stories.
hub/​app/​javascript/​features/​prototype-workspace-header/​index.tsx Adds spinner and failure indicators to Build selector options.
hub/​app/​javascript/​features/​prototype-workspace-header-layout/​styles.css Aligns selector content and styles failure indicators.
hub/​app/​javascript/​components/​build-state-label/​types.ts Adds the label appearance option.
hub/​app/​javascript/​components/​build-state-label/​styles.css Defines soft label backgrounds, state colors, spacing, sizing, and truncation.
hub/​app/​javascript/​components/​build-state-label/​stories.tsx Adds Storybook coverage for soft Build-state labels and their state presentations.
hub/​app/​javascript/​components/​build-state-label/​index.tsx Adds state-specific visuals and appearance classes to Build-state labels.
hub/​app/​javascript/​components/​build-state-label/​index.test.tsx Removes the previous BuildStateLabel unit test.

Review effort: Lite (adaptive)

Comment on lines +257 to 273
{build.stateLabel &&
(build.state === "queued" ||
build.state === "running" ||
build.state === "failed") ? (
<span className="review-shell__build-status" title={build.stateLabel}>
{build.state === "failed" ? (
<XCircleIcon
aria-hidden="true"
size={16}
className="review-shell__build-status-failed"
/>
) : (
<HubSpinner decorative size="small" />
)}
<HubVisuallyHidden>{build.stateLabel}</HubVisuallyHidden>
</span>
) : null}
Comment on lines +19 to +30
export function BuildStateLabel({ label, state, appearance = "outline" }: BuildStateLabelProps) {
return (
<Label color={stateVariants[state]} size="small">
<Label
className={`build-state-label build-state-label--${appearance} build-state-label--${state}`}
color={stateVariants[state]}
size="small"
leadingVisual={
state === "running" ? (
<HubSpinner decorative size="small" />
) : state === "failed" ? (
<StopIcon size={12} />
) : undefined
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.

2 participants