Browse Source

fix(stats): cancelled bucket icon now uses semantic warning token (orange) (#1390 follow-up)

  Reporter flagged that the new Cancelled row's Ban icon rendered colourless
  while Successful and Failed used green/red icons in the same widget. Switch
  the Cancelled icon to text-status-warning (amber-500) so all three rows now
  use semantic status tokens consistently, and the colour matches the orange
  Archives + notification badges already use for cancelled status.
maziggy 2 days ago
parent
commit
4cce575bcc
4 changed files with 2 additions and 2 deletions
  1. 0 0
      CHANGELOG.md
  2. 1 1
      frontend/src/pages/StatsPage.tsx
  3. 0 0
      static/assets/index-RpiIrueH.js
  4. 1 1
      static/index.html

File diff suppressed because it is too large
+ 0 - 0
CHANGELOG.md


+ 1 - 1
frontend/src/pages/StatsPage.tsx

@@ -253,7 +253,7 @@ function SuccessRateWidget({
             <span className="text-sm text-white font-medium">{stats?.failed_prints || 0}</span>
           </div>
           <div className="flex items-center gap-2">
-            <Ban className="w-4 h-4 text-bambu-gray flex-shrink-0" />
+            <Ban className="w-4 h-4 text-status-warning flex-shrink-0" />
             <span className="text-sm text-bambu-gray">{t('stats.cancelled')}</span>
             <span className="text-sm text-white font-medium">{stats?.cancelled_prints || 0}</span>
           </div>

File diff suppressed because it is too large
+ 0 - 0
static/assets/index-RpiIrueH.js


+ 1 - 1
static/index.html

@@ -26,7 +26,7 @@
 
     <!-- Splash screens for iOS -->
     <link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
-    <script type="module" crossorigin src="/assets/index-BW850Rth.js"></script>
+    <script type="module" crossorigin src="/assets/index-RpiIrueH.js"></script>
     <link rel="stylesheet" crossorigin href="/assets/index-y4woBlMv.css">
   </head>
   <body>

Some files were not shown because too many files changed in this diff