Repository navigation
Add BREAKAWAY material type (YXPOLYER Breakaway-80 filaments to follow) - #922
Open
csmarshall wants to merge 1 commit into
Open
csmarshall wants to merge 1 commit into
csmarshall wants to merge 1 commit into
Conversation
Breakaway support filaments (snap-off support, vendor-proprietary base polymer) had no material type to be filed under. Add BREAKAWAY to the material type enum. Upper case like every other value: the WebUI upper-cases material folder names (saveUtils, prBuilder, entityCrud), so a mixed-case value would not round-trip. OrcaSlicer ships no generic breakaway profile, so the type is deliberately left out of ORCA_BASE_BY_MATERIAL and the exporter skips it, as for PEEK or PPS. The generated WebUI mirror (orcaMaterials.generated.ts) therefore does not change; `ofd script generate_orca_materials --check` passes. Tests pin the enum entry, the unmapped behaviour, and that every mapped material is a schema material. Claude-Session: https://claude.ai/code/session_014fHhyroWe51HLFNXtKm6sv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
BREAKAWAYto the material type enum so breakaway support filaments have somewhere to be filed. The first users will be YXPOLYER's "Breakaway-80" Black and White (https://yxpolyer.com/products/breakaway-black and https://yxpolyer.com/products/support-white), which are not part of this PR (see "Not included"); the brand record is in #921.Why a new type. YXPOLYER sells a snap-off support filament ("Support For ABS · PA · PPS · PC · Nylon · ASA", "Peel off without fluids") and never names the base polymer anywhere on its pages or labels. Filing it under PLA (as Snapmaker's Breakaway Support for PLA is) or any other polymer would state a base material the vendor does not state.
Changes
schemas/material_types_schema.json:BREAKAWAYadded to the enum. Written in upper case like every other value, because the WebUI upper-cases material folder names (saveUtils.ts,prBuilder.ts,entityCrud.ts), so a mixed-caseBreakawaywould not round-trip between the data folder and the editor.docs/orcaslicer.md:BREAKAWAYadded to the list of materials the OrcaSlicer export skips.tests/test_orca_exporter.py: two tests. One pinsBREAKAWAYin the schema and that it resolves to no OrcaSlicer base. The other checks every material in the OrcaSlicer mapping tables is a schema material (a typo there would otherwise be silently unreachable). The first test failed before the schema change ('BREAKAWAY' in enum) and passes after.OrcaSlicer mapping. None, on purpose. OrcaSlicer's generic profiles (
Generic PLA/PETG/PVA/HIPS...) include nothing for breakaway support, so a mapping would hand users another material's print behaviour. Unmapped materials are already skipped by the exporter, as for PEEK or PPS. Because the WebUI mirrorwebui/src/lib/utils/orcaMaterials.generated.tsonly lists exportable materials, it does not change;uv run -m ofd script generate_orca_materials --checkpasses.ofd/scripts/import_openprinttag.pyonly holds fallback defaults for imported OpenPrintTag types and nothing there lists the schema enum, so it is untouched.Not included: the Breakaway-80 filaments.
densityis a required filament field and YXPOLYER publishes none for these (I looked at the product pages and all gallery images), so, following what #901 did for a line without a published density, I did not add them or fill in a default. I am asking the vendor for a density and will follow up with the two filaments (Black and White, 1.75 mm, 1 kg net, tolerance ±0.04 mm) once I have it. The vendor's own sources also disagree on the Black nozzle temperature (spool label 220-260°C versus product infographic 250-280°C), so that field would be left out rather than picked.Checks.
uv run -m ofd validatepasses before and after with the same 2110 warnings.pytest tests: 549 passed, 2 failed; the same 2 (tests/test_search_index_exporter.py::test_record_shape_and_hrefs,::test_logo_slugs_are_attached) fail identically on the base branch.ruff checkandruff format --checkare clean.Not verified: that
BREAKAWAYis the name maintainers want (alternatives:Breakaway, a genericSUPPORTtype); that the WebUI shows the new type correctly (I did not run it); that the filament data matches whichever density the vendor eventually gives.Human-directed, AI-assisted: every change was reviewed and directed by a human, with an AI assistant as a power tool.
https://claude.ai/code/session_014fHhyroWe51HLFNXtKm6sv