refactor(web): migrate JReviewsSection and ReviewFormV2 to Tailwind CSS v4 #2264
All Vouch review confidence checks passed
Residual risk 0.39 = Change Risk (0.66) × (1 − Review Confidence (0.41)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.66 · 395 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 76% · 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.358
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.066
Real PR Conversation Timeline
1 comments
"Review active on #2264"
general
weight: 0.35
claude[bot]
Summary
JReviewsSection.tsxandReviewFormV2.tsxfrom Bootstrap 5 utility/component classes (btn-group,btn-close,progress,progress-bar,col-,row,d-flex,alert-,form-control,form-select,form-label,form-check-input,rounded-pill,rounded-circle,spinner-border,stretched-link, spacing/typography helpers) to Tailwind CSS v4 utilities,--rate-semantic tokens, and shadcn/uiButton,Badge,Card, andInputprimitives.@sourceentries forJReviewsSection.tsxandReviewFormV2.tsxinapps/web/src/app/style/tailwind.css.data-testidattributes, ARIA semantics, mobile touch targets (>= 24px), and compact SSR HTML for/smartphones/[slug].review-display.test.tsto match the migrated Tailwindbg-status--fgbars and addsapps/web/src/components/reviews/__tests__/reviews-tailwind.test.ts.Verification
npx prettier --checkon all 5 changed files: passed.npm run typecheck -w @repo/web: passed.npm run lint -w @repo/web: passed (--max-warnings 0).npm test -w @repo/web: all 100 unit test files passed.Closes #2260
---
<!-- dos-pr-summary -->
📌 TL;DR
This PR refactors the
JReviewsSectioncomponent to replace legacy Bootstrap utility classes with modern Tailwind CSS utilities and custom design tokens. It also updates the Tailwind configuration to ensure the new review components are correctly scanned for class generation.🎯 Type of Change
🔍 Changes Walkthrough
| File | Summary of Changes |
| :--- | :--- |
|
apps/web/src/app/style/tailwind.css| Added@sourcedirectives forJReviewsSection.tsxandReviewFormV2.tsxto ensure Tailwind CSS correctly scans these files for utility classes. ||
apps/web/src/components/reviews/JReviewsSection.tsx| Styling Migration: Replaced Bootstrap classes (e.g.,d-flex,mb-3,alert-success) with Tailwind utilities (e.g.,flex,mb-[12px],bg-status-good-bg).<br>Component Updates: Swapped native HTML elements for design system components (e.g.,<button>to<Button>,<input>to<Input>).<br>Layout Improvements: Updated grid layouts for review cards and criteria sliders to use Tailwind's grid system (grid-cols-1 md:grid-cols-2).<br>Accessibility: Replacedvisually-hiddenwithsr-onlyand updated focus states to usefocus-visibleutilities. |📊 Architectural Flow
<!-- /dos-pr-summary -->
Claimant: antigravity:wave-h-2260