Repository navigation
refactor(renderer): remove retired trust badge utilities - #1040
Merged
Merged
Conversation
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.
The retired
trust-badge-utils.tsis imported only by its own test suite. Observatory renders risk bands throughfrontend/observatory/runtime/radar.ts; its current consumers include the radar, inspector, roster and risk explanation.Remove the unused helper and its obsolete badge styling/dimension tests. Preserve the useful low/medium/high boundary and out-of-range checks against Observatory's actual
riskBandfunction, and retain the score-60 regression: grade D must still produce a medium-risk group. Update the stale classifier reference in the trust-grade documentation and the derived utility count in the architecture inventory. Production function bodies, styles and policy behavior are unchanged.Validation:
npm run build:renderer,npm run typecheck,npm run format:checkandnpm run lintpassed. Lint reports 59 warnings outside the changed code and no errors.npm run counts:checkpassed: retained renderer utility count is 13 and all declared counters agree.9091a651: full CI passed build, lint, Svelte/type checks, coverage, both mutation gates, derived counts and the production dependency audit. The separate development-tools check also passed.This is a five-file maintenance change. No dependency, lockfile, workflow or settings changes relative to current master. No bundle-size or CI-speed improvement is claimed.