Compare commits

...

4 Commits

Author SHA1 Message Date
Phil Merricks
d7f4983d0d fix: slot assignment dialog now matches "PLA Silk", "Matte PLA" etc. to PLA slots
_normalizeMaterialKey now scans all space-separated words in a slot label and
returns the first known base material type found. This handles both "modifier
first" ("Matte PLA") and "modifier last" ("PLA Silk", "PLA Matte") patterns,
which arise when users label slots with full product-style names while OrcaSlicer
writes only the base type (PLA, PETG, …) in GCode comments.

Dash-suffix composites ("PLA-CF", "PETG-CF") contain no space and are unchanged,
preserving correct incompatibility with their base types.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-18 20:47:45 +01:00
891b679230 .gitea/ISSUE_TEMPLATE/bug_report.yml hinzugefügt 2026-06-18 15:01:05 +02:00
8ae218321f .gitea/ISSUE_TEMPLATE/bug_report.ym hinzugefügt 2026-06-18 14:56:56 +02:00
ada027bc04 .gitea/ISSUE_TEMPLATE/bug_report.yml 2026-06-18 14:54:02 +02:00
4 changed files with 264 additions and 0 deletions

View File

@@ -0,0 +1,82 @@
name: "Bug Report"
about: "Report a problem or error"
title: "[BUG] "
labels:
- bug
body:
- type: dropdown
id: os
attributes:
label: "Operating System"
options:
- "Windows 10"
- "Windows 11"
- "Ubuntu / Debian"
- "Fedora / RHEL"
- "Arch Linux"
- "macOS"
- "Other"
validations:
required: true
- type: dropdown
id: install_type
attributes:
label: "Installation Type"
options:
- "Docker / Docker Compose"
- "EXE / Binary (Windows)"
- "Binary (Linux)"
validations:
required: true
- type: dropdown
id: slicer
attributes:
label: "Slicer"
options:
- "OrcaSlicer (KX-Patch)"
- "OrcaSlicer (Standard)"
- "BambuStudio"
- "PrusaSlicer"
- "Other"
validations:
required: true
- type: input
id: slicer_version
attributes:
label: "Slicer Version"
placeholder: "e.g. 2.4.0-dev-kx1"
validations:
required: true
- type: input
id: bridge_version
attributes:
label: "KX-Bridge Version"
placeholder: "e.g. v0.9.20"
description: "Found in the web interface or in the logs at startup."
validations:
required: true
- type: textarea
id: description
attributes:
label: "Problem Description"
description: "What is happening? What did you expect to happen?"
placeholder: |
What happened:
What was expected:
validations:
required: true
- type: textarea
id: logs
attributes:
label: "Logs / Error Message"
description: "Relevant output from the KX-Bridge logs. Docker: `docker logs <container>`"
render: text
validations:
required: false

View File

@@ -0,0 +1,85 @@
name: Bug Report
about: File a bug report
title: "[Bug]: "
body:
- type: markdown
attributes:
value: |
Please fill out all required fields to help us resolve your issue faster.
- type: dropdown
id: os
attributes:
label: Operating System
options:
- Windows 10
- Windows 11
- Ubuntu / Debian
- Fedora / RHEL
- Arch Linux
- macOS
- Other
validations:
required: true
- type: dropdown
id: install_type
attributes:
label: Installation Type
options:
- Docker / Docker Compose
- EXE / Binary (Windows)
- Binary (Linux)
validations:
required: true
- type: dropdown
id: slicer
attributes:
label: Slicer
options:
- OrcaSlicer (KX-Patch)
- OrcaSlicer (Standard)
- BambuStudio
- PrusaSlicer
- Other
validations:
required: true
- type: input
id: slicer_version
attributes:
label: Slicer Version
placeholder: "e.g. 2.4.0-dev-kx1"
validations:
required: true
- type: input
id: bridge_version
attributes:
label: KX-Bridge Version
description: "Found in the web interface or in the logs at startup."
placeholder: "e.g. v0.9.20"
validations:
required: true
- type: textarea
id: description
attributes:
label: Problem Description
description: What is happening? What did you expect to happen?
placeholder: |
What happened:
What was expected:
validations:
required: true
- type: textarea
id: logs
attributes:
label: Logs / Error Message
description: "Relevant output from the KX-Bridge logs. Docker: `docker logs <container>`"
render: shell
validations:
required: false

82
bug_report.yml Normal file
View File

@@ -0,0 +1,82 @@
name: "Bug Report"
about: "Problem oder Fehler melden"
title: "[BUG] "
labels:
- bug
body:
- type: dropdown
id: os
attributes:
label: "Betriebssystem"
options:
- "Windows 10"
- "Windows 11"
- "Ubuntu / Debian"
- "Fedora / RHEL"
- "Arch Linux"
- "macOS"
- "Anderes"
validations:
required: true
- type: dropdown
id: install_type
attributes:
label: "Installationsart"
options:
- "Docker / Docker Compose"
- "EXE / Binary (Windows)"
- "Binary (Linux)"
validations:
required: true
- type: dropdown
id: slicer
attributes:
label: "Slicer"
options:
- "OrcaSlicer (KX-Patch)"
- "OrcaSlicer (Standard)"
- "BambuStudio"
- "PrusaSlicer"
- "Anderer"
validations:
required: true
- type: input
id: slicer_version
attributes:
label: "Slicer Version"
placeholder: "z.B. 2.4.0-dev-kx1"
validations:
required: true
- type: input
id: bridge_version
attributes:
label: "KX-Bridge Version"
placeholder: "z.B. v0.9.20"
description: "Zu finden im Webinterface oder in den Logs beim Start."
validations:
required: true
- type: textarea
id: description
attributes:
label: "Problembeschreibung"
description: "Was passiert? Was hast du erwartet?"
placeholder: |
Was ist passiert:
Was wurde erwartet:
validations:
required: true
- type: textarea
id: logs
attributes:
label: "Logs / Fehlermeldung"
description: "Relevante Ausgabe aus den KX-Bridge Logs. Docker: `docker logs <container>`"
render: text
validations:
required: false

View File

@@ -1193,6 +1193,7 @@ function doProfileImportUpload(files){
var _slotEditIndex=-1;
var _slotEditLoaded=false;
var _MAT_PRESETS=['PLA','PETG','ABS','ASA','TPU','PA','PC','HIPS'];
var _BASE_MATERIAL_TYPES=['PLA','PETG','ABS','ASA','TPU','TPE','PA','PC','HIPS','PEI','PEEK'];
function updateSlotEditFeedButton(){
var btn=document.getElementById('btn-slot-edit-feed');
if(!btn)return;
@@ -2332,6 +2333,20 @@ function _normalizeMaterialKey(material){
var key=(material||'').toUpperCase().replace(/[^A-Z0-9+]/g,'');
// Orca often uses PLA for PLA+, while AMS may report PLA+.
if(key==='PLA+'||key==='PLAPLUS') return 'PLA';
// Handle modifier+base patterns in either order: "Matte PLA", "Silk PETG",
// "PLA Silk", "PLA Matte". OrcaSlicer always writes the base type in GCode
// (filament_type = PLA), but users label slots with the full product-style name.
// Scan each space-separated word; return the first one that is a known base material.
// Dash-suffix variants ("PLA-CF", "PETG-CF") contain no space and fall through
// unchanged, preserving correct incompatibility with their base types.
var trimmed=(material||'').trim();
if(trimmed.indexOf(' ')>=0){
var words=trimmed.toUpperCase().split(/\s+/);
for(var i=0;i<words.length;i++){
var w=words[i].replace(/[^A-Z0-9+]/g,'');
if(_BASE_MATERIAL_TYPES.indexOf(w)>=0) return w;
}
}
return key;
}
function _materialsCompatible(a,b){