Skip to content

Add BREAKAWAY material type (YXPOLYER Breakaway-80 filaments to follow) - #922

Open
csmarshall wants to merge 1 commit into
OpenFilamentCollective:mainfrom
csmarshall:schema/breakaway-material-type
Open

csmarshall wants to merge 1 commit into
OpenFilamentCollective:mainfrom
csmarshall:schema/breakaway-material-type

Conversation

@csmarshall

Copy link
Copy Markdown
Contributor

Adds BREAKAWAY to 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: BREAKAWAY added 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-case Breakaway would not round-trip between the data folder and the editor.
  • docs/orcaslicer.md: BREAKAWAY added to the list of materials the OrcaSlicer export skips.
  • tests/test_orca_exporter.py: two tests. One pins BREAKAWAY in 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 mirror webui/src/lib/utils/orcaMaterials.generated.ts only lists exportable materials, it does not change; uv run -m ofd script generate_orca_materials --check passes. ofd/scripts/import_openprinttag.py only holds fallback defaults for imported OpenPrintTag types and nothing there lists the schema enum, so it is untouched.

Not included: the Breakaway-80 filaments. density is 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 validate passes 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 check and ruff format --check are clean.

Not verified: that BREAKAWAY is the name maintainers want (alternatives: Breakaway, a generic SUPPORT type); 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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant