Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## justin/stage-fleet-tab #7205 +/- ##
=======================================================
Coverage 64.96% 64.96%
=======================================================
Files 513 513
Lines 38541 38541
=======================================================
Hits 25040 25040
Misses 13501 13501 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
jsbroks
force-pushed
the
justin/stage-fleet-tab
branch
from
September 14, 2026 22:58
9fa5046 to
76978fd
Compare
A project that promotes through Targets had no page listing them. The Stage drawer's Fleet tab shows one Stage's Targets; nothing showed the project's Targets themselves, or which Stages govern each. The Targets page lists every Target in the project with its labels and, for each, the Stages that govern it as the coloured pills the pipeline paints Stages with. A pill opens that Stage's drawer, which for a target-aware Stage opens on its Fleet tab, where that Stage's view of the Target lives. When the Target's status records its health under a Stage, the pill leads with the health icon, as the pipeline's Stage tags do. Governance is evaluated client-side from each Stage's selectors, mirroring the controller, so a Target no Stage selects still appears and says so. Rows can be grouped by any label key the Targets carry, discovered from the labels rather than declared, and filtered by Target name, label, or Stage. Stages and Targets stay live through the existing list-then-watch pattern; the Fleet tab's Target watch gains a project-wide mode when no Stage is given. The page lives at /project/<name>/targets. A Targets button joins Events and Settings in the project header, shown only once the project has a Target, and the breadcrumb reads Projects > <project> > Targets as the Events and Settings pages do. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: Justin Brooks <[email protected]>
A fleet can run to hundreds of Targets, and the page rendered every row at once. Tables now paginate client-side: the whole list is still loaded and kept live through the watch, only the rendering is paged. The single ungrouped table starts at twenty rows with a choice of page size and a running "1-20 of 40 Targets" total. A group's table is one of many on the page, so it keeps a fixed page of ten and hides its pager when the group fits. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: Justin Brooks <[email protected]>
jsbroks
force-pushed
the
justin/targets-page
branch
from
September 14, 2026 23:32
89f6166 to
f9df20c
Compare
jsbroks
marked this pull request as ready for review
September 15, 2026 17:24
rpelczar
requested changes
Sep 15, 2026
Contributor
There was a problem hiding this comment.
Can we prepare a dedicated component for Targets? Extending Project complicates this component without benefits.
Comment on lines
+118
to
+127
| {row.stages.map(({ stage, health }) => ( | ||
| <StagePill | ||
| key={stage.metadata?.name} | ||
| projectName={project} | ||
| stage={stage} | ||
| health={health} | ||
| stageColorMap={stageColorMap} | ||
| /> | ||
| ))} | ||
| </Flex> |
Contributor
There was a problem hiding this comment.
Let's limit this to 6, maybe? And add + x more label.
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.
Stacked on #7200, which adds the Fleet tab and the Target endpoints this page reads. Diff shown against that branch; merge it first.
Summary
A project that promotes through Targets had no page listing them. The Stage drawer's Fleet tab shows one Stage's Targets; nothing showed the project's Targets themselves or which Stages govern each. This adds a Targets page at
/project/<name>/targets.What
Projects > <project> > Targetsas the Events and Settings pages do.useWatchTargetsgains a project-wide mode when no Stage is given.Verified
pnpm typecheck,pnpm lint, andpnpm vitest run(35 files, 441 tests) pass.targets-utils.test.tscovers selector evaluation, governance, row construction with per-Stage health, grouping, and search.regionworks, and clicking a Stage pill lands on the drawer's Fleet tab.Not in this PR
Per-Stage Freight or Promotion on the page (one click away in the drawer), and a two-pane layout for very large fleets.
Checklist
Eligibility
Quality
AI Use Disclosure
This PR was written:
Sign-Off
All commits:
git commit -s) (required)git commit -S) (encouraged)🤖 Generated with Claude Code