Browse Source

fix(inventory): add CF/GF to subtype dropdown on the Add/Edit Spool form (#1345)

  Adding a third-party PETG-CF spool via the Material=PETG + Subtype=CF
  flow (same shape as the existing PETG HF) hit a missing option: KNOWN_VARIANTS
  in spool-form/constants.ts didn't list CF or GF. Users had to type it
  freehand into the "create new" tail of the dropdown.

  Added both: CF (matches PETG-CF / PLA-CF / ASA-CF / PA-CF) and GF (the
  natural pair for ABS-GF / PA6-GF). parsePresetName is unaffected — its
  materials list is iterated longest-first, so cloud presets like
  "Bambu PETG-CF Black" still resolve to material=PETG-CF with empty
  afterMaterial.
maziggy 1 week ago
parent
commit
f7c94cbc7b

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


+ 5 - 0
frontend/src/components/spool-form/constants.ts

@@ -18,6 +18,11 @@ export const DEFAULT_BRANDS = [
 // Known filament variants/subtypes
 export const KNOWN_VARIANTS = [
   'Basic', 'Matte', 'Silk', 'Silk+', 'Tough', 'Tough+', 'HF', 'High Flow', 'Engineering',
+  // CF (Carbon Fiber) / GF (Glass Fiber) — match Bambu's PETG-CF / PA6-GF /
+  // ABS-GF naming so users adding a third-party CF/GF spool can pick the
+  // base material + subtype here instead of needing a -CF Material entry
+  // (#1345).
+  'CF', 'GF',
   'Galaxy', 'Glow', 'Marble', 'Metal', 'Rainbow', 'Sparkle', 'Wood',
   'Translucent', 'Transparent', 'Clear', 'Lite', 'Pro', 'Plus', 'Max',
   'Super', 'Ultra', 'Flex', 'Soft', 'Hard', 'Strong', 'Impact',

File diff suppressed because it is too large
+ 0 - 0
static/assets/index-B7LxDq2k.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-BxdzCdot.js"></script>
+    <script type="module" crossorigin src="/assets/index-B7LxDq2k.js"></script>
     <link rel="stylesheet" crossorigin href="/assets/index-BOMoNf8F.css">
   </head>
   <body>

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