From de79895e5dfa380633683aba1b86baebf0576c49 Mon Sep 17 00:00:00 2001 From: senke Date: Fri, 16 Jan 2026 01:59:31 +0100 Subject: [PATCH] consistency: fix remaining Tailwind default colors in auth and features components --- apps/web/docs/TAILWIND_INSTANCES_FULL_LIST.md | 209 +----------------- apps/web/src/components/ErrorBoundary.tsx | 2 +- .../components/admin/AdminDashboardView.tsx | 16 +- .../components/admin/AdminModerationView.tsx | 14 +- .../components/admin/AdminSettingsView.tsx | 12 +- .../src/components/admin/AdminUsersView.tsx | 8 +- .../web/src/components/admin/UserTableRow.tsx | 18 +- .../components/admin/modals/BanUserModal.tsx | 22 +- .../analytics/TrackAnalyticsView.tsx | 6 +- apps/web/src/components/commerce/CartItem.tsx | 8 +- .../src/components/commerce/OrderSummary.tsx | 10 +- .../src/components/commerce/WishlistView.tsx | 14 +- .../commerce/modals/PromoCodeModal.tsx | 2 +- .../commerce/modals/RefundRequestModal.tsx | 10 +- .../web/src/components/dashboard/StatCard.tsx | 4 +- .../src/components/dashboard/TrackList.tsx | 10 +- .../developer/APIPlaygroundView.tsx | 14 +- .../developer/DeveloperDashboardView.tsx | 12 +- .../src/components/developer/WebhooksView.tsx | 10 +- .../developer/modals/CreateAPIKeyModal.tsx | 12 +- .../src/components/education/CourseCard.tsx | 8 +- .../components/education/CourseDetailView.tsx | 36 +-- .../education/CourseLearningView.tsx | 22 +- .../components/education/MyCoursesView.tsx | 8 +- .../education/modals/CertificateModal.tsx | 28 +-- .../components/education/modals/QuizModal.tsx | 12 +- .../gamification/AchievementCard.tsx | 14 +- .../gamification/AchievementsView.tsx | 2 +- .../gamification/LeaderboardView.tsx | 14 +- .../components/gamification/ProfileXPView.tsx | 16 +- .../web/src/components/gamification/XPBar.tsx | 4 +- .../components/inventory/AddEquipmentView.tsx | 10 +- .../components/inventory/EquipmentCard.tsx | 6 +- .../inventory/EquipmentDetailView.tsx | 36 +-- .../components/inventory/InventoryView.tsx | 12 +- .../keyboard/KeyboardShortcutsHelp.tsx | 6 +- .../web/src/components/layout/AudioPlayer.tsx | 30 +-- apps/web/src/components/layout/Header.tsx | 2 +- apps/web/src/components/layout/Sidebar.tsx | 2 +- .../library/AutoMetadataDetectionModal.tsx | 12 +- .../library/WatermarkSettingsModal.tsx | 12 +- .../library/playlists/AddToPlaylistModal.tsx | 8 +- .../library/playlists/CreatePlaylistModal.tsx | 14 +- .../library/playlists/EditPlaylistModal.tsx | 8 +- .../library/playlists/PlaylistDetailView.tsx | 26 +-- .../library/playlists/PlaylistsView.tsx | 14 +- .../library/playlists/QueueView.tsx | 22 +- .../playlists/SaveQueueAsPlaylistModal.tsx | 8 +- .../components/live/LiveStreamDetailView.tsx | 8 +- .../live/modals/TipStreamerModal.tsx | 18 +- .../components/marketplace/LicenceCard.tsx | 4 +- .../components/marketplace/ProductCard.tsx | 6 +- .../marketplace/ProductDetailView.tsx | 38 ++-- .../modals/LicenceDetailsModal.tsx | 12 +- .../marketplace/modals/ReviewProductModal.tsx | 8 +- .../src/components/modals/CreatorModal.tsx | 22 +- .../notifications/NotificationBell.tsx | 4 +- .../notifications/NotificationItem.tsx | 6 +- .../web/src/components/player/LyricsPanel.tsx | 4 +- apps/web/src/components/player/MiniPlayer.tsx | 14 +- .../components/player/PlaybackSpeedModal.tsx | 10 +- .../src/components/player/PlayerControls.tsx | 14 +- .../player/VisualizerSettingsModal.tsx | 10 +- apps/web/src/components/search/SearchBar.tsx | 20 +- .../components/seller/CreateProductView.tsx | 32 +-- .../components/seller/SellerDashboardView.tsx | 18 +- .../seller/modals/FlashSaleModal.tsx | 18 +- .../AccessibilitySettingsView.tsx | 4 +- .../components/EmailVerificationBadge.tsx | 4 +- .../components/PasswordStrengthIndicator.tsx | 6 +- .../auth/pages/ForgotPasswordPage.tsx | 2 +- .../web/src/features/auth/pages/LoginPage.tsx | 2 +- .../src/features/auth/pages/RegisterPage.tsx | 2 +- .../features/auth/pages/ResetPasswordPage.tsx | 2 +- .../features/auth/pages/VerifyEmailPage.tsx | 2 +- .../dashboard/pages/DashboardPage.tsx | 6 +- .../features/error/pages/ServerErrorPage.tsx | 4 +- .../components/PlaylistBatchActions.tsx | 2 +- .../streaming/components/PlaybackSummary.tsx | 2 +- .../tracks/components/TrackHistory.tsx | 6 +- .../tracks/components/TrackListEmpty.tsx | 4 +- .../tracks/components/UploadQuota.tsx | 10 +- 82 files changed, 462 insertions(+), 667 deletions(-) diff --git a/apps/web/docs/TAILWIND_INSTANCES_FULL_LIST.md b/apps/web/docs/TAILWIND_INSTANCES_FULL_LIST.md index e964596ea..7b96b5bcb 100644 --- a/apps/web/docs/TAILWIND_INSTANCES_FULL_LIST.md +++ b/apps/web/docs/TAILWIND_INSTANCES_FULL_LIST.md @@ -1,7 +1,7 @@ # Complete List of Remaining Tailwind Default Color Instances **Generated**: Automatically generated list -**Total Files**: 17 -**Total Instances**: 31 +**Total Files**: 3 +**Total Instances**: 4 **Status**: Action 9.1.1.3 - In Progress (294 instances migrated, ~19.7% complete) ## Usage @@ -34,211 +34,6 @@ Refer to `TAILWIND_COLORS_AUDIT.md` for color mapping: --- -### apps/web/src/features/auth/components/EmailVerificationBadge.tsx -**Total instances in file**: 2 - -- **Line 14**: `text-green-`, `bg-green-`, `text-green-` - ```tsx - - ``` - -- **Line 21**: `bg-yellow-`, `text-yellow-`, `bg-yellow-`, `text-yellow-` - ```tsx - - ``` - ---- - -### apps/web/src/features/auth/components/PasswordStrengthIndicator.tsx -**Total instances in file**: 3 - -- **Line 55**: `bg-orange-` - ```tsx - color = 'bg-orange-500'; - ``` - -- **Line 58**: `bg-yellow-` - ```tsx - color = 'bg-yellow-500'; - ``` - -- **Line 64**: `bg-green-` - ```tsx - color = 'bg-green-600'; - ``` - ---- - -### apps/web/src/features/auth/pages/ForgotPasswordPage.tsx -**Total instances in file**: 1 - -- **Line 102**: `bg-red-` - ```tsx - className="bg-red-50 border border-kodo-red text-kodo-red px-4 py-3 rounded" - ``` - ---- - -### apps/web/src/features/auth/pages/LoginPage.tsx -**Total instances in file**: 1 - -- **Line 224**: `bg-red-` - ```tsx - className="bg-red-50 border border-kodo-red text-kodo-red px-4 py-3 rounded" - ``` - ---- - -### apps/web/src/features/auth/pages/RegisterPage.tsx -**Total instances in file**: 1 - -- **Line 215**: `bg-red-` - ```tsx - className="bg-red-50 border border-kodo-red text-kodo-red px-4 py-3 rounded" - ``` - ---- - -### apps/web/src/features/auth/pages/ResetPasswordPage.tsx -**Total instances in file**: 1 - -- **Line 124**: `bg-red-` - ```tsx -
- ``` - ---- - -### apps/web/src/features/auth/pages/VerifyEmailPage.tsx -**Total instances in file**: 1 - -- **Line 196**: `bg-red-` - ```tsx - className="bg-red-50 border border-kodo-red text-kodo-red px-4 py-3 rounded" - ``` - ---- - -### apps/web/src/features/dashboard/pages/DashboardPage.tsx -**Total instances in file**: 3 - -- **Line 56**: `text-purple-` - ```tsx - color: 'text-purple-600', - ``` - -- **Line 114**: `bg-green-` - ```tsx -
- ``` - -- **Line 123**: `bg-purple-` - ```tsx -
- ``` - ---- - -### apps/web/src/features/error/pages/ServerErrorPage.tsx -**Total instances in file**: 2 - -- **Line 44**: `bg-red-`, `bg-red-` - ```tsx -
- ``` - -- **Line 63**: `border-blue-` - ```tsx -
- ``` - ---- - -### apps/web/src/features/playlists/components/PlaylistBatchActions.tsx -**Total instances in file**: 1 - -- **Line 200**: `border-blue-` - ```tsx - 'p-4 bg-kodo-cyan/10 dark:bg-kodo-cyan/20 border border-kodo-cyan dark:border-blue-800 rounded-lg', - ``` - ---- - -### apps/web/src/features/streaming/components/PlaybackSummary.tsx -**Total instances in file**: 1 - -- **Line 181**: `text-purple-` - ```tsx - - ``` - ---- - -### apps/web/src/features/tracks/components/TrackHistory.tsx -**Total instances in file**: 3 - -- **Line 129**: `bg-red-` - ```tsx - return 'text-kodo-red bg-red-50'; - ``` - -- **Line 131**: `text-purple-`, `bg-purple-` - ```tsx - return 'text-purple-600 bg-purple-50'; - ``` - -- **Line 133**: `text-orange-`, `bg-orange-` - ```tsx - return 'text-orange-600 bg-orange-50'; - ``` - ---- - -### apps/web/src/features/tracks/components/TrackListEmpty.tsx -**Total instances in file**: 2 - -- **Line 106**: `text-red-`, `text-red-` - ```tsx - ? 'text-red-900 dark:text-red-100' - ``` - -- **Line 117**: `text-red-` - ```tsx - ? 'text-kodo-red dark:text-red-300' - ``` - ---- - -### apps/web/src/features/tracks/components/UploadQuota.tsx -**Total instances in file**: 5 - -- **Line 132**: `text-yellow-` - ```tsx - isQuotaNearLimit && !isQuotaExceeded && 'text-yellow-600', - ``` - -- **Line 142**: `bg-yellow-` - ```tsx - isQuotaNearLimit && !isQuotaExceeded && '[&>div]:bg-yellow-500', - ``` - -- **Line 163**: `text-yellow-` - ```tsx - isQuotaNearLimit && !isQuotaExceeded && 'text-yellow-600', - ``` - -- **Line 174**: `bg-yellow-` - ```tsx - isQuotaNearLimit && !isQuotaExceeded && '[&>div]:bg-yellow-500', - ``` - -- **Line 186**: `bg-yellow-`, `bg-yellow-`, `text-yellow-`, `text-yellow-` - ```tsx -
- ``` - ---- - ### apps/web/src/features/upload/components/UploadModal.tsx **Total instances in file**: 1 diff --git a/apps/web/src/components/ErrorBoundary.tsx b/apps/web/src/components/ErrorBoundary.tsx index 77bf84d06..1faa4de37 100644 --- a/apps/web/src/components/ErrorBoundary.tsx +++ b/apps/web/src/components/ErrorBoundary.tsx @@ -87,7 +87,7 @@ export class ErrorBoundary extends Component { // Action 3.3.1.3: Use ErrorDisplay component for consistent error presentation return ( -
+
{

Traffic & Server Load

- +
{' '} Traffic
- +
CPU
@@ -178,15 +178,15 @@ export const AdminDashboardView: React.FC = () => {
- Database + Database Healthy
- Storage + Storage 65% Used
- API Latency + API Latency 45ms
@@ -215,7 +215,7 @@ export const AdminDashboardView: React.FC = () => {
{report.targetName}
-
+
{report.targetType} • {report.reason}
@@ -240,7 +240,7 @@ export const AdminDashboardView: React.FC = () => {
))} {reports.length === 0 && ( -
+
No pending reports.
)} @@ -267,7 +267,7 @@ export const AdminDashboardView: React.FC = () => {
{upload.name}
-
+
{upload.user} • {upload.size}
diff --git a/apps/web/src/components/admin/AdminModerationView.tsx b/apps/web/src/components/admin/AdminModerationView.tsx index 0d1f792b1..93fefb84b 100644 --- a/apps/web/src/components/admin/AdminModerationView.tsx +++ b/apps/web/src/components/admin/AdminModerationView.tsx @@ -79,7 +79,7 @@ export const AdminModerationView: React.FC = () => {
-
+
Reported by:{' '} {report.reportedBy}
@@ -146,7 +146,7 @@ export const AdminModerationView: React.FC = () => {