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.
This commit is contained in:
maziggy
2026-05-15 09:47:21 +02:00
parent 7d7267e9cb
commit f7c94cbc7b
4 changed files with 9 additions and 2 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -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>