Browse Source

Add Hungarian Forint (HUF) currency for filament cost tracking

  Closes #579 — adds HUF with symbol "Ft" to the supported currencies
  list so Hungarian users can track filament costs in their local currency.
maziggy 2 months ago
parent
commit
23b2d97170

+ 1 - 0
CHANGELOG.md

@@ -53,6 +53,7 @@ All notable changes to Bambuddy will be documented in this file.
 - **Updates Card Separates Firmware and Software Settings** — The Updates card on the Settings page mixed printer firmware and Bambuddy software update toggles with no visual grouping. Now splits the card into two labeled sections ("Printer Firmware" and "Bambuddy Software") separated by a divider, making it clear which toggles control what.
 - **SpoolBuddy Test Coverage** — Added integration tests for all 12 SpoolBuddy API endpoints (21 backend tests covering device registration/re-registration, heartbeat status and pending commands, NFC tag scan/match/removal, scale reading broadcast, spool weight calculation, and scale calibration including tare, set-factor, and zero-delta error handling) and component tests for the three main SpoolBuddy frontend components (20 frontend tests covering WeightDisplay weight formatting and status indicators, SpoolInfoCard spool info rendering and action callbacks, UnknownTagCard tag display, and TagDetectedModal open/close/escape behavior with known and unknown spool views).
 - **Cleanup Obsolete Settings** — The startup migration now deletes orphaned settings keys from the database that are no longer used by the application (e.g., `slicer_binary_path` from earlier slicer integration research).
+- **Added HUF Currency** ([#579](https://github.com/maziggy/bambuddy/issues/579)) — Added Hungarian Forint (HUF, Ft) to the supported currencies list for filament cost tracking.
 
 ## [0.2.1] - 2026-02-27
 

+ 2 - 2
frontend/src/__tests__/utils/currency.test.ts

@@ -37,7 +37,7 @@ describe('SUPPORTED_CURRENCIES', () => {
     expect(SUPPORTED_CURRENCIES.find((c) => c.code === 'INR')).toBeDefined();
   });
 
-  it('has 25 entries', () => {
-    expect(SUPPORTED_CURRENCIES).toHaveLength(25);
+  it('has 26 entries', () => {
+    expect(SUPPORTED_CURRENCIES).toHaveLength(26);
   });
 });

+ 2 - 0
frontend/src/utils/currency.ts

@@ -24,6 +24,7 @@ const CURRENCY_SYMBOLS: Record<string, string> = {
   ZAR: 'R',
   TRY: '₺',
   RUB: '₽',
+  HUF: 'Ft',
 };
 
 export function getCurrencySymbol(currencyCode: string): string {
@@ -56,4 +57,5 @@ export const SUPPORTED_CURRENCIES = [
   { code: 'ZAR', label: 'ZAR (R)' },
   { code: 'TRY', label: 'TRY (₺)' },
   { code: 'RUB', label: 'RUB (₽)' },
+  { code: 'HUF', label: 'HUF (Ft)' },
 ] as const;

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


+ 1 - 1
static/index.html

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

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