Skip to content

Multi-head 6/7: documentation page and diagrams - #101

Merged
vycdev merged 12 commits into
vycdev:developfrom
Bjohnson131:mph-split-6-docs
Nov 1, 2026
Merged

vycdev merged 12 commits into
vycdev:developfrom
Bjohnson131:mph-split-6-docs

Conversation

@Bjohnson131

Copy link
Copy Markdown
Contributor

Sixth of seven PRs splitting up #38 (Multi Print Head Capability).

Depends on the earlier parts, mainly #100. Until they merge, this diff also shows them; the new files are src/docs/multi-head-printing.md and four SVGs under src/assets/diagrams/.

What

An in-app guide for Multi-head printing: prerequisites, how layers become color runs and windows, the Head Schedule, the combination search space, and what Fast/Balanced/Thorough search depth change. The four diagrams follow the docs accessibility convention (role, <title>, <desc>).

Known gap

There is no translated multi-head-printing.md for the 11 non-English locales, so those users would get a missing-translation error on this page. Needs translations or an English fallback before release.

Tests

Covered by the existing docs test, which checks every docs image for accessibility tags (test:docs passes; test:i18n passes). tsc is clean and the full unit suite passes (978 tests, 0 failures, 1 skipped).

Series

  1. Export and meshing (Multi-head 1/7: 3MF export and combined-mask meshing #96)
  2. Analysis core (Multi-head 2/7: window analysis core #97)
  3. Run-based analysis engine (Multi-head 3/7: run-based analysis engine #98)
  4. Head schedule and plan conversion (Multi-head 4/7: head schedule and plan conversion #99)
  5. Worker, UI and export wiring (mph-split-5-ui-wiring)
  6. Docs and diagrams (mph-split-6-docs)
  7. Color grouping mode (mph-split-7-color-grouping)

🤖 Generated with Claude Code

Bjohnson131 and others added 3 commits October 22, 2026 23:37
In-app guide covering prerequisites, color runs and windows, the Head
Schedule, the combination search space and search depth, with four
diagrams. Diagrams follow the docs accessibility convention (role,
title, description) and use American spelling.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@Bjohnson131

Copy link
Copy Markdown
Contributor Author

Unit test results for this branch (npm test on mph-split-6-docs): 978 tests, 977 passed, 0 failed, 1 skipped. Full output: https://gist.github.com/Bjohnson131/58348b01975e2da17ab1f0eab5c7603f (file test-results-mph-split-6-docs.txt).

@vycdev vycdev left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated code review

Verdict: Needs changes · Findings: 3 (3 inline)

Scope: only what this PR adds on top of #100; the earlier PRs in this stack are reviewed in their own threads.

This PR adds the multi-head guide, four SVG diagrams, navigation, and a changelog entry. Docs tests (3/3), i18n tests (10/10), and read-only TypeScript compiler checks pass. However, translation-coverage and diagram-layout build checks fail, and the page's navigation metadata is missing even in English.


Reviewed by GPT 6.1 Sol

---
title: Multi-Head Printing
slug: multi-head-printing
order: 65

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[high] Include translated guides before exposing the new page

None of the 11 non-English locales has this guide. loadTranslatedDoc throws without falling back, so opening /fr/docs/multi-head-printing, for example, displays a load error that retry cannot resolve. This also blocks production builds: node scripts/check-translations.mjs, invoked by npm run build, reports 11 missing-guide errors. Add the translated guides and matching localized metadata before registering this page.

Reviewed by GPT 6.1 Sol

@@ -0,0 +1,74 @@
<svg xmlns="http://www.w3.org/2000/svg" width="820" height="540" viewBox="0 0 820 540" role="img" aria-labelledby="title desc">

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[high] Integrate the new SVGs with diagram localization

All four new SVGs lack data-i18n annotations and corresponding entries in the diagram catalogs. The static localized-page generator enumerates every SVG and calls Object.values on its catalog entry, so these files cause a TypeError even after the missing guides are supplied. Independently, node scripts/check-diagram-layout.mjs fails because the added SVGs invalidate the committed measurement hash. Add the localization annotations/catalog entries and regenerate the checked-in diagram measurements.

Reviewed by GPT 6.1 Sol

'flat-paint',
'calibration-workflows',
'calibration-theory',
'multi-head-printing',

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[medium] Add the guide's English navigation metadata

The sidebar obtains titles through t('docsMeta:<slug>.title'), but multi-head-printing is absent from src/locales/en/docsMeta.json and every translated catalog. Consequently, even with English selected, this new link displays multi-head-printing.title instead of the guide's title; the Markdown frontmatter is not used as a fallback here. Add title and description entries to the metadata catalogs.

Reviewed by GPT 6.1 Sol

- Add translated guides and navigation metadata for all locales
- Localize four diagrams and regenerate text measurements
- Align workflow explanations with routing, schedules, exports, and fallback
- Add reciprocal Auto-paint links and documentation regression checks
vycdev added a commit to Bjohnson131/Kromacut-mph that referenced this pull request Oct 29, 2026
- Preserve reviewed mappings, optics, reconciliation, scheduling, routing, and build lifecycle
- Integrate Color grouping with final-stack analysis and build snapshots
- Localize grouping controls and combine guide and changelog changes
- Adapt integration regressions while preserving localized guides for the next step
@vycdev

vycdev commented Oct 29, 2026

Copy link
Copy Markdown
Owner

Fixes for the automated review

Pushed 6048cd9 to this branch.

This branch also merges the fixed lower layers (#100), so it builds on the corrected code.

Findings

  • ✅ Include translated guides before exposing the new page: Added real translations for all 11 non-English locales, with matching metadata and reciprocal Auto-paint links.

  • ✅ Integrate the new SVGs with diagram localization: Annotated all four SVGs, added catalogs for every locale and label bounds, and regenerated measurements. No labels remain flagged as cramped.

  • ✅ Add the guide's English navigation metadata: Added title and description entries in all 12 docsMeta catalogs. Regression tests verify guide metadata and diagram catalog coverage.

Also fixed

  • Correct multi-head workflow and diagram explanations: Documented routed colors, Head Schedule reloads, 3MF assignments and M600 markers, fallback, and cancellation. Corrected run/window and sampling claims, diagram reload totals, and a hidden best-order label.

Verification: npm run test:docs, npm run check:i18n and the docs E2E suite (5/5) pass; the build generates the localized /<lang>/docs/multi-head-printing pages.


Fixed by GPT 6.1 Sol

@vycdev vycdev left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated code review: second pass

Verdict: Looks good · New or remaining findings: 0

Reviewed head 6048cd9, which includes the fixes for the first review. Scope: only what this PR adds on top of #100; the other PRs in this stack are reviewed in their own threads.

All three first-pass findings are resolved. The localized guide and diagrams match the implemented routing, reload schedule, export, and fallback behavior; no new actionable defects were found in this PR’s changes above #100. npm run test:docs (5/5), npm run test:i18n (10/10), npm run check:i18n, and npx tsc -b --noEmit all passed.

First-pass findings

  • ✅ Resolved: Include translated guides before exposing the new page. All 11 non-English guides are present with matching localized metadata and reciprocal Auto-paint links. Translation checks and documentation tests pass.
  • ✅ Resolved: Integrate the new SVGs with diagram localization. All four SVGs have localization annotations, catalogs for every locale, and label bounds. Catalog localization tests and the committed measurement-hash check pass.
  • ✅ Resolved: Add the guide's English navigation metadata. All 12 docsMeta catalogs now contain the guide’s title and description. The regression test verifies that these match each guide’s frontmatter.

Reviewed by GPT 6.1 Sol

vycdev added a commit to Bjohnson131/Kromacut-mph that referenced this pull request Oct 29, 2026
@vycdev

vycdev commented Oct 29, 2026

Copy link
Copy Markdown
Owner

Second-round fixes merged in

Pushed 1a613d2 to this branch.

This branch merges the second-round fixes from the lower layers (#100), so it builds on the corrected code. The second review found nothing new in this PR's own changes, so there are no other edits here.

Verification: After the merge: full unit suite 1,034/1,034, tsc -b, lint, check:i18n and test:docs pass. On the top of the stack (#102 with every fix merged), a browser run with an 8-filament profile built routed 3-head models (no smoothing and Medium smoothing) and a routed 4-head model. The meshes were tagged with the scheduled heads, the 3MF used matching extruders and M600 pause markers, and every exported mesh was closed and consistently wound (each edge shared by exactly two triangles). The smoke e2e suite passed 64/66; the two failures are landing-page specs this stack does not touch, and develop has since fixed the landing credit link and updated both specs.


Reviewed by GPT 6.1 Sol

- Say that window size is also limited by the runs above the first run,
  and that heads that are not needed stay EMPTY in the head schedule
- Update the guide in all 12 languages
vycdev added a commit to Bjohnson131/Kromacut-mph that referenced this pull request Oct 29, 2026
@vycdev

vycdev commented Oct 29, 2026

Copy link
Copy Markdown
Owner

Guide update for the head-count fix

Pushed 0d4e44e to this branch, plus a merge of the #98–#100 fixes.

  • The Runs and Windows section now says that window size is also limited by the runs above the first run, which always keeps its filament, and that heads that are not needed stay EMPTY in the head schedule. Updated in all 12 languages.

Verification: after the merge, full unit suite 1,036/1,036, tsc -b, lint, check:i18n and test:docs pass.


Fixed by Claude Opus 5.5

@vycdev

vycdev commented Oct 29, 2026

Copy link
Copy Markdown
Owner

Search fix merged in

Pushed 48b02e6 to this branch. It merges the #98 sampling fix, so large windows keep the reorders that smaller windows find. There are no other changes in this PR.

Verification: after the merge, full unit suite 1,038/1,038, tsc -b, lint, check:i18n and test:docs pass.


Fixed by Claude Opus 5.5

…o mph-split-6-docs

# Conflicts:
#	CHANGELOG.md
- Say that builds also fall back when the predicted improvement is too
  small to justify the head swaps
- Update the guide in all 12 languages
vycdev added a commit to Bjohnson131/Kromacut-mph that referenced this pull request Oct 31, 2026
…o mph-split-7-color-grouping

# Conflicts:
#	CHANGELOG.md
@vycdev

vycdev commented Oct 31, 2026

Copy link
Copy Markdown
Owner

Note

🤖 Claude Opus 5.5 responding on behalf of Victor Sandu

The guide now explains the new fallback. Pushed bc3cf6d, on top of a merge of the #99 and #100 changes.

The Fallback and Rebuilding section says builds also fall back when the predicted improvement is too small to justify the head swaps. This is updated in all 12 languages. The fallback notice in the app is unchanged, so it still says "found no layout that improves the normal stack".

Verified: after the merge, unit suite 1,043/1,043, tsc -b, lint, check:i18n and test:docs pass.

@vycdev
vycdev merged commit 1673b47 into vycdev:develop Nov 1, 2026
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.

2 participants