Repository navigation
Description
Parent #922; follows #934/#998 and the persistence proposal #1060, with portable copies in #1086. This is the next small human-facing engineering-data slice, separate from the optical renderer roadmap #1004/#813.
Problem and scope
The candidate material schema can represent SI properties, sources and measurement conditions, while material.list can expose the stored card and validation report. A person using the desktop should be able to inspect those records without interpreting raw JSON or mistaking a named visual swatch for engineering data.
Deliver a read-only engineering-card inspector first. Then add an explicit bounded local-card import/apply action using the existing validation and material.edit commands. No solver, certified dataset, new renderer or automatic density replacement.
Phases
- Inspector: select a design-owned physical material and show designation/family, assigned mass density, separately recorded card density, each available property with units, source identity/kind and stated conditions. Missing data is displayed as unknown, not zero. Show derived G/K and directional-modulus context only where the validated report supports it. Report material-local L/R/T or 1/2/3 conventions without implying body-axis assignment.
- Admission/apply: bounded local JSON import, preview the validation report and source claims, then explicitly apply to the selected design-owned material through material.edit. Retain the existing card until a valid replacement succeeds. Clearing requires an explicit action. One undo transaction; cancel and invalid input leave the design unchanged. Reuse existing scoped file access and size limits; do not invent unrestricted filesystem commands.
- Evidence: synthetic original fixtures for wood/polymer/glass/metal, actual native inspector/import captures, undo/redo and cold reopening after the source file is removed. Verify density/mass and visual appearance are unchanged by a card-only edit. Localisation includes en/ja/zh and the new de/ko labels.
Acceptance and limits
- Reuse MaterialCard/ValidatedCard and existing engine reports; no second parser, elasticity formula or UI-side mutation of document internals.
- Explicitly distinguish illustrative, user-supplied, measured and referenced source claims. A license string is a claim requiring source review, not redistribution permission. Numerical consistency is not certification or structural analysis.
- Preserve temperature, dry-mass moisture ratio, process/state and strain-rate conditions. Do not extrapolate values or infer engineering axes from texture grain.
- Existing built-in density-only materials remain usable. Do not imply that their labels supply a validated card. Unknown properties remain absent.
- Tests cover bounded hostile input, atomic refusal, one-step undo, reopening, and actual clicked UI interaction. Run cargo xtask ci and relevant native/wasm gates; document actual failures separately.
- No commercial reference assets or external engineering database is bundled. Optical wood mapping, metal anisotropy and refractive glass stay in their separately validated renderer phases.
Feedback on the inspector layout, source presentation and property units is welcome. If another contributor already has this UI underway, please link the branch so we can reuse the existing work. I will keep the implementation as an independently reviewable slice after the current persistence/library branches are refreshed.
Activity
selun3 commentedon Oct 15, 2026
I am taking a small main-based prerequisite only: extend the existing read-only material-card validation report with the exact missing condition field names per property, preserving unspecified_conditions and its existing policy. This lets the later inspector explain missing temperature/state/wood moisture/polymer strain rate without duplicating validation rules in UI code. No inspector UI, persistence, format change, renderer or updates to the active #1060/#1086 branches are included.
selun3 commentedon Oct 15, 2026
I am implementing the next isolated UI review unit directly on main: open the existing material.properties.validate action as a bounded candidate-card inspector, display validated properties/units, sources/conditions and unknown values, and keep the design untouched. Candidate review only: no assignment, local file import, persistence or updates to #1060/#1086. This avoids adding a dependency on either open PR or #1334; the later design-owned inspector can reuse the presentation once persistence lands.
selun3 commentedon Oct 15, 2026
Material editor quality target
Judit has asked us to aim for a professional engineering-material workflow. This fits the existing inspector-first scope; it does not expand the current persistence or renderer PRs.
Proposed acceptance criteria for the inspector and subsequent authoring phase:
The current card contract already covers much of the underlying mechanical/thermal structure. Damping, hardness, temperature-dependent curves and other additional properties need separately defined models, units, conditions and validation before becoming editable fields. We should not introduce an ambiguous generic coefficient or treatment checkbox simply to increase the field count.
Implementation remains original, using independently sourced/licensed data and original fixtures. No commercial screenshots, catalogs or material values are included. Priority remains closing #1060/#1086 integration, the bounded inspector here, then a separately reviewable authoring slice. This quality target requires neither a new document-format reservation nor a solver capability claim.