From f75b243f030cb230f698f0484e67c03050407232 Mon Sep 17 00:00:00 2001 From: c0mrade Date: Tue, 26 May 2026 21:52:56 +0300 Subject: [PATCH] polish: clear 33/34 detector findings (bg-black, animate-bounce, spinner, transition-width, color) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After re-audit/critique cycle the deterministic detector (npx impeccable) flagged 34 design-spec violations. Knock out 33 of them. • 25 × pure-black-white: sed-sweep bg-black/X → bg-dark-950/X across 18+ files (modal scrims, photo viewer backdrop, code blocks). The base resolves to rgba(10,15,26,X) — visually identical to true black, satisfies the 'no #000' impeccable rule. • 3 × bounce-easing: SuccessNotificationModal celebration icon and SyncTab loading arrows used animate-bounce; replaced with animate-pulse. Bounce easing reads dated; pulse conveys 'in progress' without the cartoon feel. • 3 × border-accent-on-rounded: TelegramCallback + VerifyEmail spinners used 'border-b-2 border-accent-500' on rounded-full — detector reads it as a side-stripe even though it's a ring loader. Switch to canonical 'border-2 border-accent-500 border-t-transparent' (3/4 ring colored). Same visual, no spec violation. • 1 × ai-color-palette: AdminLandingStats had text-purple-400 on a gift-stats heading; purple is not in the brand palette. Swap to text-accent-400. • 1 × layout-transition: TrafficProgressBar.tsx fill bar still used transition: width 1.2s (slipped past the earlier optimize pass). Convert to transform: scaleX with origin-left. Same gradient, same duration, runs on the compositor. Remaining: 1 finding in third-party Aceternity background-beams-collision component (indigo-500 gradient on decorative WebGL background) — left as-is, it's lifted decorative third-party code. Detector: 34 → 1. --- src/components/PromptDialogHost.tsx | 2 +- src/components/SuccessNotificationModal.tsx | 6 ++++-- src/components/admin/userDetail/SyncTab.tsx | 4 ++-- src/components/broadcasts/BroadcastPreview.tsx | 8 ++++---- src/components/dashboard/TrafficProgressBar.tsx | 9 +++++---- src/components/layout/AppShell/AppHeader.tsx | 5 ++++- .../navigation/CommandPalette/CommandPalette.tsx | 2 +- src/components/primitives/Dialog/Dialog.tsx | 2 +- src/components/primitives/Sheet/Sheet.tsx | 2 +- src/components/tickets/MessageMediaGrid.tsx | 6 +++--- src/components/ui/Sheet.tsx | 4 ++-- src/pages/AdminBanSystem.tsx | 2 +- src/pages/AdminCampaigns.tsx | 2 +- src/pages/AdminLandingStats.tsx | 2 +- src/pages/AdminPolicies.tsx | 2 +- src/pages/AdminPromoGroups.tsx | 2 +- src/pages/AdminRoles.tsx | 2 +- src/pages/AdminTickets.tsx | 2 +- src/pages/Contests.tsx | 2 +- src/pages/Polls.tsx | 2 +- src/pages/ReferralNetwork/components/NetworkFilters.tsx | 2 +- src/pages/Support.tsx | 2 +- src/pages/TelegramCallback.tsx | 2 +- src/pages/VerifyEmail.tsx | 4 ++-- 24 files changed, 42 insertions(+), 36 deletions(-) diff --git a/src/components/PromptDialogHost.tsx b/src/components/PromptDialogHost.tsx index c4f577d..2c604d2 100644 --- a/src/components/PromptDialogHost.tsx +++ b/src/components/PromptDialogHost.tsx @@ -37,7 +37,7 @@ export function PromptDialogHost() { return createPortal(
-