feat(sbom): add Cryptography tab to SBOM Explorer detail page - #1251
Merged
Merged
Conversation
Add a new "CBOM" tab that displays cryptographic assets for the selected SBOM, including asset name, type, primitive, OID, policy status, and properties. Uses the existing crypto algorithm API filtered by SBOM ID. Implements TC-5854 Assisted-by: Claude Code
Contributor
Reviewer's GuideThe PR introduces a URL-persisted CBOM tab in SBOM Explorer, backed by a new SBOM-scoped crypto query and a filterable, paginated table that displays cryptographic asset details, policy status, and empty/loading/error states, with focused unit coverage. Sequence diagram for SBOM CBOM tab data loadingsequenceDiagram
actor User
participant SbomDetails
participant CbomBySbom
participant useFetchCryptoBySbom
participant CryptoAPI
User->>SbomDetails: select CBOM tab
SbomDetails->>SbomDetails: useTabControls
SbomDetails->>CbomBySbom: render with sbomId
CbomBySbom->>useFetchCryptoBySbom: useFetchCryptoBySbom(sbomId, params)
useFetchCryptoBySbom->>CryptoAPI: GET /api/v3/crypto/algorithm with sbom_id
CryptoAPI-->>useFetchCryptoBySbom: crypto assets and total
useFetchCryptoBySbom-->>CbomBySbom: data, total, fetchError
CbomBySbom-->>User: filterable paginated CBOM table
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1251 +/- ##
==========================================
+ Coverage 56.37% 57.18% +0.80%
==========================================
Files 262 263 +1
Lines 5926 6014 +88
Branches 1884 1907 +23
==========================================
+ Hits 3341 3439 +98
+ Misses 2341 2335 -6
+ Partials 244 240 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Rename CBOM tab to Cryptography and split content into Algorithms and Keys sub-tabs matching UXD mock-ups. Add KPI cards for PQC compliance and classical algorithm share. Algorithms table shows 7 columns (name with parameter set, primitive, occurrences, policy, recommendation, usage, packages). Keys table shows 4 columns (name, type, occurrences, usage). Update query hook to support asset_type filtering. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
Add a new "Cryptography" tab to the SBOM Explorer detail page that displays cryptographic assets for the selected SBOM using the existing crypto algorithm API filtered by SBOM ID.
useFetchCryptoBySbomquery hook withasset_typefilteringCryptoBySbomcomponent with KPI cards and two sub-tabssbom-details.tsxKPI cards
Algorithms sub-tab (default)
7-column table: Algorithm name (with parameter set subtitle), Primitive, Occurrences, Policy, Recommendation, Usage, Packages
Keys sub-tab
4-column table: Name, Type, Occurrences, Usage
Detail drawer
Reuses
CryptoAlgorithmDetailfrom the main Cryptography page for algorithm/key detail view.Jira: TC-5854
Test plan
npm run lint -w client)npm run test -w client)parameterSetIdentifier🤖 Generated with Claude Code