Repository navigation
fix(hub): show build status labels in history - #403
Merged
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The review records no active issues, and the change is limited to adopting the shared BuildStateLabel presentation with expanded lifecycle-state fixtures.
No open issues 🎉
What changed in this PR
Updates Hub Build History to use the shared BuildStateLabel component, making lifecycle status presentation consistent with Build details.
Changes:
- Replaces plain history status text with soft Build state labels.
- Expands the Multiple Storybook story to cover queued, superseded, running, failed, and successful Builds.
- Updates the latest Build fixture to represent the queued state.
| File | Description |
|---|---|
| hub/app/javascript/pages/builds-index-page/stories.tsx | Expands the Multiple Storybook story with fixtures for all Build lifecycle states and updates the latest Build fixture. |
| hub/app/javascript/pages/builds-index-page/index.tsx | Renders shared soft-appearance status labels for each historical Build. |
Review effort: Lite (adaptive)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
ab320bbbc98147b847af64de877049999d1a2536↑ Hub lint, format, tests, build, and Storybook build passed.
↓ Full Hub CI and a live Rails Hub were not verified.
Why
Build History showed plain status text while Build details used status labels. Consistent labels make Build states easier to recognize.
What changes
History now uses the existing Build status labels. The Multiple story shows queued, superseded, running, failed, and successful Builds together.
Full Hub CI could not run because the configured ports were occupied and the npm registry connection reset. The local preview uses Storybook data rather than a running Rails Hub.
Storybook screenshots
Hub/Pages/Builds/Index - Single: light, 1280 × 720
Hub/Pages/Builds/Index - Unlinked Author: light, 1280 × 720
Hub/Pages/Builds/Index - Multiple: light, 1575 × 1232, timeline crop