From bd8a4fad6e7508c1cfedffd2e40f799c4abefc5c Mon Sep 17 00:00:00 2001 From: c0mrade Date: Tue, 26 May 2026 11:10:50 +0300 Subject: [PATCH] refactor(theming): replace amber-* with warning-* tokens Sweep all amber-N color classes to warning-N (uniformly pending/warning semantics). Yellow and orange left for per-file review (mixed Stars brand + semantic uses). --- src/components/PromoOffersSection.tsx | 4 +-- src/components/admin/SettingsTableRow.tsx | 2 +- .../blocking/AccountDeletedScreen.tsx | 2 +- src/components/blocking/MaintenanceScreen.tsx | 8 +++--- .../connection/InstallationGuide.tsx | 2 +- .../subscription/SubscriptionListCard.tsx | 6 ++--- src/pages/AdminAuditLog.tsx | 6 ++--- src/pages/AdminBulkActions.tsx | 26 +++++++++++-------- src/pages/AdminLandingStats.tsx | 6 ++--- src/pages/AdminPayments.tsx | 4 +-- src/pages/AdminUpdates.tsx | 4 +-- src/pages/AdminUserDetail.tsx | 4 +-- src/pages/Subscription.tsx | 8 +++--- src/pages/SubscriptionPurchase.tsx | 4 +-- 14 files changed, 45 insertions(+), 41 deletions(-) diff --git a/src/components/PromoOffersSection.tsx b/src/components/PromoOffersSection.tsx index 8aee2d2..d5c909b 100644 --- a/src/components/PromoOffersSection.tsx +++ b/src/components/PromoOffersSection.tsx @@ -268,7 +268,7 @@ export default function PromoOffersSection({ className = '' }: PromoOffersSectio className="card border-orange-500/30 bg-gradient-to-br from-orange-500/5 to-transparent transition-colors hover:border-orange-500/50" >
-
+
{getOfferIcon(offer.effect_type, offer.discount_percent)}
@@ -291,7 +291,7 @@ export default function PromoOffersSection({ className = '' }: PromoOffersSectio {t('admin.bulkActions.filters.trialOnly')} diff --git a/src/pages/AdminLandingStats.tsx b/src/pages/AdminLandingStats.tsx index 44e5b14..8ca3cf4 100644 --- a/src/pages/AdminLandingStats.tsx +++ b/src/pages/AdminLandingStats.tsx @@ -587,7 +587,7 @@ export default function AdminLandingStats() { {day.label}
- {day.created || 0} + {day.created || 0} / {day.purchases || 0} @@ -605,7 +605,7 @@ export default function AdminLandingStats() { })}
-
+
{t('admin.landings.stats.created', 'Created')}
diff --git a/src/pages/AdminPayments.tsx b/src/pages/AdminPayments.tsx index 22babc7..fc4c7a6 100644 --- a/src/pages/AdminPayments.tsx +++ b/src/pages/AdminPayments.tsx @@ -49,7 +49,7 @@ interface StatusBadgeProps { function StatusBadge({ status }: StatusBadgeProps) { const styles: Record = { paid: 'bg-success-500/20 text-success-400', - pending: 'bg-amber-500/20 text-amber-400', + pending: 'bg-warning-500/20 text-warning-400', cancelled: 'bg-error-500/20 text-error-400', }; @@ -76,7 +76,7 @@ interface StatCardProps { function StatCard({ label, value, color, isActive, onClick }: StatCardProps) { const colors: Record = { blue: 'border-accent-500/30 bg-accent-500/20 text-accent-400', - amber: 'border-amber-500/30 bg-amber-500/20 text-amber-400', + amber: 'border-warning-500/30 bg-warning-500/20 text-warning-400', green: 'border-success-500/30 bg-success-500/20 text-success-400', red: 'border-error-500/30 bg-error-500/20 text-error-400', }; diff --git a/src/pages/AdminUpdates.tsx b/src/pages/AdminUpdates.tsx index 12e6620..c09abe5 100644 --- a/src/pages/AdminUpdates.tsx +++ b/src/pages/AdminUpdates.tsx @@ -175,8 +175,8 @@ function VersionBadge({ hasUpdate }: { hasUpdate: boolean }) { if (hasUpdate) { return ( - - + + {t('adminUpdates.updateAvailable')} ); diff --git a/src/pages/AdminUserDetail.tsx b/src/pages/AdminUserDetail.tsx index a14f637..bd07412 100644 --- a/src/pages/AdminUserDetail.tsx +++ b/src/pages/AdminUserDetail.tsx @@ -1704,8 +1704,8 @@ export default function AdminUserDetail() { disabled={actionLoading} className={`rounded-lg px-3 py-2 text-sm font-medium transition-all disabled:opacity-50 ${ confirmingAction === 'resetSubscription' - ? 'bg-amber-500 text-white' - : 'bg-amber-500/15 text-amber-400 hover:bg-amber-500/25' + ? 'bg-warning-500 text-white' + : 'bg-warning-500/15 text-warning-400 hover:bg-warning-500/25' }`} > {confirmingAction === 'resetSubscription' diff --git a/src/pages/Subscription.tsx b/src/pages/Subscription.tsx index e1417db..92823e6 100644 --- a/src/pages/Subscription.tsx +++ b/src/pages/Subscription.tsx @@ -2344,11 +2344,11 @@ export default function Subscription() {