Skip to content

feat(templates): revamp pre-made templates to show-stopper level#26

Merged
exitzerolabs-admin merged 5 commits into
mainfrom
feat/polish-templates
Mar 3, 2026
Merged

feat(templates): revamp pre-made templates to show-stopper level#26
exitzerolabs-admin merged 5 commits into
mainfrom
feat/polish-templates

Conversation

@exitzerolabs-admin

Copy link
Copy Markdown
Contributor

Summary

  • Completely rewrote template system from 3 basic templates to 6 professional, information-dense templates
  • Each template: 12-13 elements (proper shapes), 12-13 data flows, 3 colored trust boundaries, 5 STRIDE threats with mitigations
  • Templates: E-Commerce Platform, Cloud Microservices, Mobile Banking, SaaS Platform, IoT Smart Building, Healthcare Data Platform
  • Updated empty state UI to 2x3 grid with per-template Lucide icons and accent colors
  • Added Playwright screenshot script for visual validation, screenshots/ to .gitignore

Test plan

  • npx biome check . — clean (pre-existing !important warning only)
  • npx tsc --noEmit — zero type errors
  • npx vitest --run — 408/408 tests pass
  • cargo clippy + cargo test — clean, 55/55 pass
  • Playwright screenshots of all 6 templates — layouts verified visually
  • Manual: click each template in empty state, verify canvas renders correctly

🤖 Generated with Claude Code

Completely rewrote and expanded template system from 3 basic templates to
6 professional, information-dense templates with proper component library
types, colored trust boundaries, and pre-populated STRIDE threats.

Templates: E-Commerce Platform, Cloud Microservices, Mobile Banking,
SaaS Platform, IoT Smart Building, Healthcare Data Platform.

Each template now includes 12-13 elements (proper shapes: hexagons,
database barrels, rectangles), 12-13 data flows with protocols and
auth indicators, 3 colored trust boundaries, and 5 STRIDE threats
with mitigations.

Updated empty state UI to 2x3 grid with per-template Lucide icons
and accent colors. Added Playwright screenshot script for visual
validation. Added screenshots/ to .gitignore.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Mar 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
threat-forge Error Error Mar 3, 2026 7:23pm

Request Review

- Widen column gaps to ~400px across all 6 templates
- Trim all flow data arrays to 1 item for shorter edge labels
- Add explicit handle overrides on congested nodes (API Server,
  FHIR Gateway, API Gateway) to fan out connectors
- Fix mismatched element positions for IoT and Healthcare templates
- Adjust boundary sizes to match new node positions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add z-index to edge label renderer so labels appear above connector
  lines instead of behind them
- Change label layout from horizontal to vertical (flex-col), stacking
  flow number, protocol, and data on separate lines for better readability

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Shift Col1 to x=180 so nodes clear the left sidebar
- Widen all multi-node boundaries from 220px to 280px (node names no
  longer clipped)
- Increase column gaps to 340-380px for better label clearance
- Add label_offset on 23 congested flows to prevent label overlap
- Cap total template width at ~1300px so fitView keeps readable zoom

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@exitzerolabs-admin exitzerolabs-admin merged commit f0ab570 into main Mar 3, 2026
7 of 8 checks passed
@exitzerolabs-admin exitzerolabs-admin deleted the feat/polish-templates branch March 3, 2026 19:28
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.

1 participant