Skip to content

Commit 551aa53

Browse files
rdmuellerclaude
andcommitted
feat: bump version to 1.5.0 and update CLAUDE.md architecture docs
Update architecture section to reflect new component structure with CSS modules. Bump version from 1.4.0 to 1.5.0. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9eb59e6 commit 551aa53

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

CLAUDE.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ This is a single-page React app (React 18, Vite 6) that visualizes a MECE risk f
2020

2121
### Core Structure
2222

23-
- **`src/RiskRadar.jsx`** — All React components (~258 lines):
24-
- **Risk model**: 5 dimensions (codeType, language, deployment, data, blastRadius), each scored 0–4. The tier is determined by `Math.max()` across all dimensions, mapped to 4 tiers.
25-
- **Components** (not exported, all in the same file): `RadarChart` (SVG polygon radar), `MitigationCard` (expandable tier cards), `DocSidebar` (slide-out documentation panel using asciidoctor.js), and the default export `RiskRadar`.
26-
- **Styling**: All inline styles, no CSS modules or styled-components. Dark theme with slate color palette. Colors defined via `TIER_BG` and `TYPE_COLORS` constants.
23+
- **`src/constants.js`** — Shared constants: `VERSION`, `TIER_BG` (tier colors), `TYPE_COLORS` (measure type colors).
24+
- **`src/utils.js`** — Pure utility functions: `getTierIndex`, `polarToCartesian`, `detectBrowserLanguage`.
25+
- **`src/components/RiskRadar.jsx`** + `.module.css` — Main app component. Risk model: 5 dimensions (codeType, language, deployment, data, blastRadius), each scored 0–4. Tier = `Math.max()` across all dimensions, mapped to 4 tiers.
26+
- **`src/components/RadarChart.jsx`** + `.module.css` — SVG polygon radar chart.
27+
- **`src/components/MitigationCard.jsx`** + `.module.css` — Expandable tier cards showing mitigation measures.
28+
- **`src/components/DocSidebar.jsx`** + `.module.css` — Slide-out documentation panel using asciidoctor.js.
29+
- **Styling**: CSS Modules for static layout/typography, inline styles only for dynamic/JS-dependent values (tier colors, active states). Theme via CSS custom properties in `src/theme.js`.
2730

2831
- **`src/i18n.js`** — Full DE/EN translations (~353 lines): dimension definitions, preset scenarios, mitigation measures, and documentation content with AsciiDoc markup and hyperlinked references.
2932

src/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const VERSION = "1.4.0";
1+
export const VERSION = "1.5.0";
22

33
export const TIER_BG = ["#10b981", "#f59e0b", "#f97316", "#ef4444"];
44

0 commit comments

Comments
 (0)