Skip to content

render: integrate product jobs and scalar libraries with async dialogs - #849

Closed
selun3 wants to merge 34 commits into
tangency-labs:mainfrom
selun3:codex/render-integration
Closed

selun3 wants to merge 34 commits into
tangency-labs:mainfrom
selun3:codex/render-integration

Conversation

@selun3

@selun3 selun3 commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Integrates the existing render foundations and the now-merged scalar library with asynchronous file dialogs. PNG export keeps the selected image, overwrite choice and originating document; delayed library responses cannot overwrite a different Appearance editor. Refs #842, #620, #813 and #922.

Published head 2c191fb, based on upstream d399eff (#863, Thin Extrude and Russian localization), retains R2 #667, R3 #706, R4a #800 and merged HDR input #837. It also integrates the candidate #1114 (c8c1b122) with original authorship. That PR remains an open upstream dependency; the contributor branch is untouched.

  • Both atomic PNG paths check caller file scope. The guard and document-adoption regression also live in standalone Render R4a: bounded image jobs, cancellation and PNG export #800.
  • Render uses an explicit captured job ID through the asynchronous picker. Cancel/close/eviction cannot redirect export or substitute a newer image.
  • Library open/save use the same dialog service. Editor identity and captured overwrite consent prevent delayed answers from changing a new editor or silently expanding overwrite permission. Export snapshots the originating design when its command executes after choosing the destination.
  • ui.inspect.file_dialog_open reports only pending state, without file paths. Render labels now cover Russian too; other partial-language gaps retain the project fallback policy.
  • The phase guide separates density, engineering cards, optical appearances, catalog transport and future HDRI/texture consumers. No constituent PR, full renderer roadmap or certified dataset is claimed merged/completed.

Validation on the integrated production tree:

  • 706 UI tests; 109 scenarios passed / 1 ignored; 21 native app tests. Focused checks include 12 Render tests (clicked workflows loop en/de/ko/ru), 14 localization tests, 4 library UI tests, 6 library engine tests and 4 catalog IO tests.
  • Strict all-target engine/UI Clippy and all 11 wasm crate builds pass. Clippy found test-helper panics; helpers now return Result, the 4 library tests were repeated and final strict Clippy passes without suppression.
  • cargo xtask features: 359 implemented + 6 planned = 365 registered.
  • Full cargo xtask ci passes format, 84 asset attributions, licence freshness and layers, then stops at existing Windows MCP unused_mut errors fix: restrict MCP mutable bindings to Unix builds #907. Full local CI is not green. Current remote API reports no checks for this head; absence is not a pass. No whole-kernel/robustness result is inferred.

Actual Windows Vulkan/MSAA4: loaded a catalog in Appearance, clicked Apply library appearance and OK, undid/redid one Apply Local Library Entry, saved format20 and cold reopened in a fresh process after moving the source catalog. Copied colour survives; component properties match exactly: 18000 mm³ and 23.22 g, unchanged assigned density. Both library-review processes quit normally. Warm oak colour is an original scalar colour preset, not a wood texture, material grade or measured engineering data.

Current native evidence and editable bundle. The public 11-file ZIP was downloaded and verified: SHA-256 0640c8e7b6e83c16ef921d6de02bf11c55c237eb72472443bd7f72a8d0d29e59, CRC pass. It includes the native consumer, source catalog/scripts, proof JSON, README and original screenshots. A format20 reader is required.

Cold reopened design retains its copied colour without the catalog

The earlier async-picker responsiveness probe remains pinned to ecf8d10: resize/inspect/screenshot worked while a native export request remained pending. The separate OS picker is excluded from the app-window captures; no native save destination was chosen and that isolated probe process was stopped, not counted as a clean-shutdown/save test. Probe details.

Native evidence used isolated preferences/recovery/crashes through a temporary startup-only override, restored byte-for-byte and absent from the contribution. The original dirty checkout and independent contributor branches remain preserved. No Bevy, second renderer, HDRI lighting, refraction, EXR or certified engineering database is added here. Next consumers are #1046/#1060/#1086, then inspector #1094; #620/#922 remain open. This PR stays draft pending the dependency, remote review and integration. Feedback on the combined or independent merge path is welcome.

selun3 added 21 commits October 13, 2026 13:44
# Conflicts:
#	crates/doc/src/format.rs
#	docs/book/src/guide/files.md
# Conflicts:
#	crates/ui-egui/src/lib.rs
#	docs/features.md
@selun3

selun3 commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator Author

Refreshed with upstream/main dfbf7dd. Fixed the remote CI failure in the format-18 offset migration regression: the reopened format now checks FORMAT instead of the obsolete literal solidcraft/19; all fixed-distance and constraint assertions remain. The focused migration test passes. Full local xtask CI was attempted before this commit and remains blocked only by the independently tracked Windows MCP unused_mut warnings (#907). The same upstream integration plus this regression correction was also validated on the library stack (990 engine tests passed with the documented exclusions; 657 UI tests passed). Fresh remote CI is running; this PR remains draft pending its result. Existing native evidence is explicitly pinned to 1a5d611/3669d4b3, not this refreshed head.

@selun3

selun3 commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator Author

Current render head 9bdbdc0 incorporates upstream/main 2f91338 (#925), preserving shared STEP text, import progress/cancellation and GPU buffer chunking. Adapted the original generated STEP fixture to Arc; four product-scene tests now pass on this tree. Scoped engine/UI all-target Clippy passes; wasm compilation passes for all 11 crates (the existing MCP unused_mut warning remains visible). Full local xtask CI still stops at that independently tracked Windows MCP lint (#907); no suppression was added. This resolves the newly observed remote merge-test compilation incompatibility; fresh remote CI is running. Earlier native screenshots/counts remain explicitly pinned to their recorded heads, not relabeled as current-head evidence.

@selun3

selun3 commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator Author

Published integration ecf8d10e combines R4a f8157c54, upstream 86ea018d and the async-dialog candidate #1114 (c8c1b122) with its original ancestry. Thank you to @ingvarch for that foundation; the contributor branch was not modified. This does not claim #1114 merged.

Render export now captures the explicit image ID and overwrite choice before requesting the document-bound asynchronous picker. Delayed answers do not redirect export to another document or substitute a newer image. A closed document drops the answer; cancellation writes nothing; an evicted requested image fails explicitly. ui.inspect.file_dialog_open reports queued/pending state without exposing file paths.

Verified on this tree: 698 UI library tests, 109 scenarios passed / 1 ignored, 21 native app tests, strict all-target engine/UI Clippy and 11 wasm crate builds pass. The 12 Render tests include four new delayed-answer/cancel/tab-switch/closed-document/retention checks and the control-channel file-scope regression. Full cargo xtask ci passes format/assets/license/layers and still stops at existing Windows MCP warnings #907. The interrupted earlier refresh attempt had no terminal test summary and was not counted; its repeat completed. No global green or remote-pass claim.

Actual native evidence: Windows Vulkan/MSAA4, original 17-body render-studio fixture, compiled from this commit with a temporary startup-only settings-folder override (restored byte-for-byte; not contributed). The panel completed its image job. With Export PNG waiting for a native answer, three resize/screenshot/inspect cycles completed at 1280x900, 1500x1050 and 1400x1000; file_dialog_open remained true and renderer remained GPU throughout. Component properties were exactly unchanged.

The captures show the SolidCraft window, not the OS picker, which is separate. I did not choose a native output path or claim end-to-end native save. The isolated evidence process was stopped after the probe with the picker still pending; this is not a clean-shutdown test. Cancel/success/failure semantics are covered by the actual clicked harness and delayed-answer tests above. No normal user preferences or private designs were used.

Completed image before requesting export:
Native async Render ready to export

Window resized to 1280x900 while the export picker was pending:
Native Render window still drawing at 1280x900

Window returned to 1400x1000 with the same request still pending:
Native Render window still drawing at 1400x1000

Upstream has since advanced with Russian localization and Thin Extrude; that refresh is in progress and these counts/captures remain pinned to ecf8d10e. The physical/PBR/catalog roadmap remains open under #922/#1004/#1062. No Bevy, new renderer, refractive glass or certified material database is added by this phase.

@selun3 selun3 changed the title render: integrate settings workspace jobs and bounded HDR preparation render: consolidate foundations and bind asynchronous PNG export Oct 14, 2026
@selun3

selun3 commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator Author

Published refresh 2c191fb incorporates upstream d399eff, including the merged scalar library #863, Thin Extrude and Russian localization, while retaining the async-dialog candidate #1114 with its original authorship. The two new library pickers are adapted to that service. Late responses cannot overwrite a different Appearance editor; overwrite consent stays fixed while the picker waits. Library export remains bound to its requesting design and snapshots it when the command executes after choosing the destination.

Validation on this integrated production tree: 706 UI tests, 109 scenarios passed / 1 ignored, 21 native application tests, 12 Render tests (English/German/Korean/Russian), 14 localization tests, 4 library UI tests, 6 library engine tests and 4 catalog IO tests pass. Strict all-target engine/UI Clippy and 11 wasm crate builds pass. Clippy initially caught panicking test helpers; those now return Result, the four library tests were repeated successfully and strict Clippy passes without suppression. cargo xtask features: 359 implemented + 6 planned = 365 registered. Full CI passes format, 84 attributed assets, licence freshness and layers, then stops at the unchanged Windows MCP warnings #907. No full local/remote green claim.

Actual native Windows Vulkan/MSAA4 review on this head:

  1. Opened the original 40x30x15 mm grey box, loaded the local catalog in Appearance, selected Warm oak colour and clicked Apply library appearance, then OK.
  2. One Undo reported Apply Local Library Entry and restored grey; one Redo restored the colour.
  3. Geometry and assigned density stayed exactly unchanged: 18000 mm³, 23.22 g. This is a colour-only preset, not wood grain, a wood grade or measured engineering data.
  4. Saved format20, moved the source catalog away from its requested path, then reopened the saved design in a fresh native process. The colour survives and component properties match exactly. Both library-review processes quit normally.
  5. Visually checked the Russian Render panel with the copied look. The native file path was entered into the existing Load library control; no OS picker save/open choice is claimed. As with prior evidence, startup settings/recovery/crashes were isolated through a temporary override that was restored and is not committed.

Before application:
Original grey box

Loaded catalog in the actual Appearance panel:
Native local catalog loaded

After application and OK:
Copied colour in the native consumer

Russian Render panel:
Native Render with Russian controls

Fresh process, source catalog missing:
Cold reopened consumer keeps its colour

Editable native review bundle: 11 selected original files (native format20 consumer, moved source catalog, replay scripts, proof JSON, README and five screenshots), MIT OR Apache-2.0. Local archive CRC and entries checked. SHA-256: 0640c8e7b6e83c16ef921d6de02bf11c55c237eb72472443bd7f72a8d0d29e59. Requires a format20 reader; older format19 readers reject it.

The original dirty checkout and independent contributor branches remain untouched. #1114 is still an upstream dependency; this PR remains draft pending remote review/integration. Next: refresh the opaque PBR, engineering-card and richer catalog consumers #1046/#1060/#1086 on this foundation, then the inspector #1094. The full #620/#922 roadmap is not claimed complete.

@selun3 selun3 changed the title render: consolidate foundations and bind asynchronous PNG export render: integrate product jobs and scalar libraries with async dialogs Oct 14, 2026
@selun3

selun3 commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by the consolidated #1046, merged as a261aaa, and scalar libraries #863. The integrated path uses main file_picker with the explicit job/editor/overwrite guards; the earlier #1114 service carried by this historical branch is obsolete. Closing this duplicate integration vehicle to keep the review queue clear. Its original design, screenshots and evidence pins remain available here. This does not close the pending physical-card/rich-library/HDRI/texture work.

@selun3 selun3 closed this Oct 15, 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