From 82178f8abd3ff3ca55f79de4c0549f251e13ab69 Mon Sep 17 00:00:00 2001 From: Keybored <78739882+Keybored02@users.noreply.github.com> Date: Tue, 3 Mar 2026 11:03:53 +0100 Subject: [PATCH] Add energy cost to archive card (#573) * Add energy cost to archive card * Replace Disc3 icon with Coins in ArchivesPage --------- Co-authored-by: MartinNYHC --- frontend/src/pages/ArchivesPage.tsx | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/frontend/src/pages/ArchivesPage.tsx b/frontend/src/pages/ArchivesPage.tsx index 9d28c2d52..5fffea9cb 100644 --- a/frontend/src/pages/ArchivesPage.tsx +++ b/frontend/src/pages/ArchivesPage.tsx @@ -7,6 +7,7 @@ import { Trash2, Clock, Package, + Coins, Layers, Search, Filter, @@ -48,7 +49,7 @@ import { User, Play, ClipboardList, - Coins, + Zap, } from 'lucide-react'; import { api } from '../api/client'; import { openInSlicer, type SlicerType } from '../utils/slicer'; @@ -923,10 +924,20 @@ function ArchiveCard({ {archive.filament_used_grams.toFixed(1)}g )} - {archive.cost != null && ( -
- - {currency}{archive.cost.toFixed(2)} + {(archive.cost != null || archive.energy_cost != null) && ( +
+ {archive.cost != null && ( +
+ + {currency}{archive.cost.toFixed(2)} +
+ )} + {archive.energy_cost != null && ( +
+ + {currency}{archive.energy_cost.toFixed(2)} +
+ )}
)} {(archive.layer_height || archive.total_layers) && (