From 312a34f7159be3a836865a5120a7cc6f0640f699 Mon Sep 17 00:00:00 2001 From: c0mrade Date: Tue, 26 May 2026 23:23:47 +0300 Subject: [PATCH] fix(subscription): clear critique P0 + P1 + part of P2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three issues from the post-PRODUCT.md /impeccable critique pass: P0 — backdrop-blur-xl shipped to mobile on the two hero cards (SubscriptionCardActive + Subscription detail). DESIGN.md 'Mobile-Without-Blur Rule' restricts backdrop-blur to ≥1024px. Gate with lg: prefix so phones (half the audience) get the opaque surface and skip the scroll-jank-inducing GPU blur layer. P1 — Two destructive device-deletion sites still called the bare browser confirm(). The codebase already imports useDestructiveConfirm and uses it correctly for revoke (line 484). Bring the all-devices and per-device delete paths onto the same platform-aware path, so inside Telegram the user gets the native destructive popup with haptic + theme, and on web they get the inline destructive panel. P2 (partial) — Removed the decorative ambient radial-gradient halo behind the Subscription detail hero card and the trial-shimmer border overlay. Same chrome was distilled out of SubscriptionCardActive earlier in this branch; the rationale is identical (zone/accent hue leaking into pure decoration violates DESIGN.md Tunable-but-Scarce + Status-Hue Lockout rules). Trial state is conveyed by the header badge. --- .../dashboard/SubscriptionCardActive.tsx | 2 +- src/pages/Subscription.tsx | 57 +++++++++---------- 2 files changed, 27 insertions(+), 32 deletions(-) diff --git a/src/components/dashboard/SubscriptionCardActive.tsx b/src/components/dashboard/SubscriptionCardActive.tsx index 0f2ebbb..b62c859 100644 --- a/src/components/dashboard/SubscriptionCardActive.tsx +++ b/src/components/dashboard/SubscriptionCardActive.tsx @@ -72,7 +72,7 @@ export default function SubscriptionCardActive({ return (
- {/* Trial shimmer border */} - {subscription.is_trial && ( -