From a56151fec932ef72475800081811f577eac8f612 Mon Sep 17 00:00:00 2001 From: erio Date: Tue, 14 Apr 2026 19:39:22 +0800 Subject: [PATCH] refactor: extract CapacityBadge component from AccountCapacityCell Extract repeated badge template (SVG icon + current/max display) into a reusable CapacityBadge component. Reduces AccountCapacityCell from ~300 lines to ~180 lines with identical behavior. --- .../account/AccountCapacityCell.vue | 303 +++++------------- .../src/components/account/CapacityBadge.vue | 25 ++ 2 files changed, 114 insertions(+), 214 deletions(-) create mode 100644 frontend/src/components/account/CapacityBadge.vue diff --git a/frontend/src/components/account/AccountCapacityCell.vue b/frontend/src/components/account/AccountCapacityCell.vue index f8fe4b47..3df5b24b 100644 --- a/frontend/src/components/account/AccountCapacityCell.vue +++ b/frontend/src/components/account/AccountCapacityCell.vue @@ -1,76 +1,32 @@