Repository navigation
style: nonDsClassesInViews items 1-9 — scale renames + named 60vh utilities - #3015
Conversation
…t-body-m min-w-6 is the same 24px from the spacing scale (x3 copy-pasted icon wrapper). The invites row's text-[16px] font-medium becomes text-body-m, which carries the same 16px/Medium — the stacked weight class goes, the token owns the recipe.
h/min-h/max-h-screen-60 in globals.css (min-h-inherit precedent) — the computed value stays exactly 60vh, so this is a visual no-op. three utilities because one @Utility cannot span three properties.
15 on the post-#2953 dev base, minus these 9 fixes = 6. arbitraryFontSize 111 -> 110 rides along (the invites text-[16px] counted there too).
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
Code-analysis diffPainscore total: 7251.68 → 7252.27 (+0.59) |
🧪 UI test report — ✅ all greenSuites
📊 Coverage (unit)
⏱ 10 slowest test cases
|
🖼 Visual diff — 5 screens moved5 of 68 shots changed · 63 identical · baseline
job summary · before/after/diff images — artifact Fixture screenshots, no backend. Advisory — this check never blocks a merge. Posted from the default branch by ds-shots-comment.yml; the report it renders is untrusted data. |
There was a problem hiding this comment.
Chip review — no blocking findings — this is not an approval
The scale substitutions and named 60vh utilities preserve the touched layouts, and the DS ratchet reductions match the exact-head scan.
Checked clean
- Exact detached HEAD and merge base match the supplied SHAs; PR metadata matches trusted author kushagrasarathe and base ref dev.
- All exact-head CI completed successfully, including eslint, format, typecheck, unit, native-export, ds-lint, and ds-shots.
- Verified min-w-6 remains 24px and the Body/M token retains 16px/500; the nested invite label already owns its 20px line height.
- Verified h-screen-60, min-h-screen-60, and max-h-screen-60 emit the same 60vh properties as the replaced arbitrary classes.
- Recomputed the DS lint ratchet: nonDsClassesInViews is 6 and arbitraryFontSize is 110, with no debt metric increase.
- Reviewed the changed class substitutions and utility definitions for correctness, security exposure, adversarial failure paths, and unnecessary duplication.
Security review: did not run — this change has no security, privacy or money surface, so it was not asked. This review is one reviewer short.
Third opinion by claude-opus: 0 finding(s), marked with the model name. It answers only product truth, missing tests and the cross-repo contract, so treat its findings as advice.
Exact head: 8b0cf81cc03e · Context: repo · Took 7m
Summary
Second DS cleanup pass ruled by Kush: items 1-9 of the
nonDsClassesInViewsbreakdown. Pure class renames onto the scale plus one named utility family — visual no-op by construction (every computed value is unchanged).Task: TASK-21446 (DS 02 — lint count baselines / KR1 ratchet)
Changes
Scale one-liners (4)
rewards/invites/page.tsx:text-[16px] font-medium->text-body-m(token carries the same 16px/Medium; the stacked weight class goes)min-w-[24px]->min-w-6(same 24px) in the copy-pasted icon wrapper x3:Claim/Link/Onchain/Confirm.view.tsx,Withdraw/views/Confirm.withdraw.view.tsx,semantic-request/views/SemanticRequestConfirmView.tsx60vh panel family (5) via named utilities
globals.css(following themin-h-inheritprecedent):h-screen-60,min-h-screen-60,max-h-screen-60— all exactly60vh; three utilities because one@utilitycannot span three propertiesAddMoney/views/CryptoDeposit.view.tsx(min-h + h),AddMoney/views/RhinoDeposit.view.tsx(min-h + h),Global/TokenSelector/Components/NetworkListView.tsx(max-h)Deliberately NOT touched (no ruling yet): items 10-15 — the dvh singles,
size-[250px], the qr-pay max-w, the safe-bottom calc, the shadow arbitrary.Metrics
(The breakdown Kush ruled on was taken pre-#2953-merge at 16; #2953 landed one of them, so dev's base is 15.) All other metrics unchanged; baseline rebased,
--checkgreen.Visual changes
None. Every replacement computes to the identical value (24px, 16px/500, 60vh). ds-shots: every screen this PR touches (add-money-crypto, rewards-invites) is pixel-identical. The 5 'moved' screens in its comment (avatar-picker 1.77%, home/add-money/badges/empty-accounts at 0.03-0.07%) are the known flaky set — the same screens move at the same magnitudes on sibling PRs #3011/#3012/#3013 that touch none of them.
QA
node scripts/ds-lint-counts.mjs --checkgreen