feat(viewer): integrate a shared SVG icon set #1367
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 281 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.338
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1367"
general
weight: 0.35
Bangkah
Summary
Integrates a shared SVG icon set into the read-only viewer and applies it where the mockups
show real icons. Keeps the viewer read-only and CSP-safe; no
antdruntime and no remoteiconfont are introduced.
Changes
internal/viewer/static/icons/(
chevron-left,chevron-right,chevron-down,search,settings,file), normalized tofill="currentColor"so a single asset adapts to light and dark. MIT attribution lives ininternal/viewer/static/icons/NOTICE.consume icons via
{{icon "name"}}and should not source icons independently; icons not yetused here (
chevron-) ship for that upcoming work.//go:embedand add a CSP-safeicontemplate helper that inlines the SVG(no
<script>, no external font/CDN), guarded by a name-allowlist regex so the lookup cannever escape
static/icons/.tool-call headers, replacing the inline unicode gear (
⚙); and the file glyph in theFiles Reviewed list, replacing a hardcoded grey
::beforedata-URI that did not follow thedark theme.
rounded-square
brand-iconwith the design's monochrome aperture mark as an inlineSVG (
static/icons/logo.svg,currentColor), so it follows the text color in lightand dark instead of a fixed green tile.
logo.svgis the project's own brand mark(Apache-2.0), not an Ant Design icon.
chevron-icons ship as part of the shared set for the upcoming per-screen work(back navigation, pagination); the accordion disclosure chevrons remain CSS-drawn for now.
Notes
currentColor, so they follow the theme automatically.Testing
make check— passedmake test— passedopen-code-review (ocr)self-review — 0 findingsAI disclosure
Implemented using the Claude Opus 4.8 model; the change was reviewed with open-code-review
(ocr).
Closes #1321.