Skip to content

feat: human-readable risk-level UI - #27

Merged
KevinMB0220 merged 2 commits into
mainfrom
feat/risk-level-ui
Sep 10, 2026
Merged

KevinMB0220 merged 2 commits into
mainfrom
feat/risk-level-ui

Conversation

@salazarsebas

Copy link
Copy Markdown
Contributor

Summary

Implements issue #9. The assessment card no longer prints the raw RiskLevel enum (0-4).

Labels, color, icon, and a short hint live in riskPresentation.ts so the mapping is exhaustive at compile time:

  • None: No known risk
  • Low: Low
  • Elevated: Elevated - review before sending
  • High: High
  • Critical: Critical - send blocked

Matched patterns render as a plain-language category, confidence percent, and evidence snippet. No raw JSON.

Stacked on #26 (feat/detect-address-network) because both touch apps/web/src/App.tsx. Merge #26 first, then retarget this PR to main (or merge this into that branch).

Test plan

  • pnpm --filter @custos/web test
  • pnpm run test (root now includes apps/**)
  • pnpm run build / typecheck / web build
  • Trigger None / Elevated / Critical in the UI and confirm the numeric enum is gone
  • Confirm a text match shows category + evidence, not a JSON blob

Closes #9

@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 5fc01960-c26d-49ec-9fd2-a4f253eba0e9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@KevinMB0220
KevinMB0220 changed the base branch from feat/detect-address-network to main September 10, 2026 20:50
@KevinMB0220
KevinMB0220 merged commit a48d939 into main Sep 10, 2026
2 checks passed
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.

Human-readable risk-level UI (replace raw enum display)

2 participants