Skip to content

fix(report): clean up repo lists in the risk story - #19

Merged
blimmer merged 2 commits into
mainfrom
final-adjustments
May 27, 2026
Merged

fix(report): clean up repo lists in the risk story#19
blimmer merged 2 commits into
mainfrom
final-adjustments

Conversation

@blimmer

@blimmer blimmer commented May 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Two presentation fixes for the generated report's risk story. The "repos without security alerts enabled" list is now a proper table (ReposWithoutAlertsTable) instead of an inline RepoList blob, and the top-repos-by-severity bars now render the bare repo name instead of owner/name. In a single-org scan every row shares the same owner, so the prefix was pure noise — and it was eating the truncated label, hiding the part that actually identifies the repo. The full owner/name is still kept in the bar's hover tooltip and the methodology appendix table.

Review focus

The layer choice for dropping the org prefix: it happens at display time via a new format/repo.ts helper, not upstream in aggregate.ts. The aggregate contract deliberately flattens every repo reference to an owner/name string, and the appendix table + tooltip still need the full path, so stripping in the data layer would have destroyed information and weakened the per-repo map key. Sanity-check that this is the right boundary.

Commits

  • eb84da9 — fix: better repos list
  • d2356fb — fix(report): show bare repo name in top-repos-by-severity bars

blimmer added 2 commits May 27, 2026 11:38
Every repo in scope shares the scan target's owner, so the prefix is noise in these bars. Strip it for the visible label via a new format/repo.ts helper; the full owner/name stays in the hover tooltip and the methodology appendix.
@blimmer
blimmer marked this pull request as ready for review May 27, 2026 17:53
@blimmer
blimmer requested a review from jcarver989 as a code owner May 27, 2026 17:53
data-testid={riskStoryTestIds.disabledAlertsLink}
onClick={() => reveal('calculation')}
className="text-primary underline underline-offset-4"
>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

footnote was weird - rendering in a table now

@@ -112,22 +112,26 @@ describe('App report shell', () => {
expect(screen.getByTestId(riskStoryTestIds.severityBar)).toBeInTheDocument();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

for long org names, the repo list was not useful

@blimmer
blimmer merged commit 4d71a9e into main May 27, 2026
8 checks passed
@blimmer
blimmer deleted the final-adjustments branch May 27, 2026 17:54
blimmer pushed a commit that referenced this pull request May 27, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.2.1](v0.2.0...v0.2.1)
(2026-05-27)


### Bug Fixes

* **report:** clean up repo lists in the risk story
([#19](#19))
([4d71a9e](4d71a9e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: contextbridge-pr-automation[bot] <259134118+contextbridge-pr-automation[bot]@users.noreply.github.com>
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