Skip to content

Materials: engineering-card inspector and explicit validated local import #1094

Open

Description

@selun3

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

  1. 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.
  2. 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.
  3. 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

  1. selun3 commented on Oct 15, 2026

    @selun3
    CollaboratorAuthor

    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.

  2. selun3 commented on Oct 15, 2026

    @selun3
    CollaboratorAuthor

    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.

  3. selun3 commented on Oct 15, 2026

    @selun3
    CollaboratorAuthor

    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:

    • Keep identity/provenance, engineering properties and optical appearance clearly separated. A visually convincing wood preset must not imply measured engineering data.
    • Group available properties into density, elasticity, strength and thermal behaviour. Show the property value, unit, source and measurement conditions together. Missing data stays unknown; derived values are explicitly marked.
    • Offer unit-aware display and, in the later editor, explicit unit-aware entry using the existing SI card contract. Switching display units must not rewrite stored values or silently change assigned mass density.
    • Present isotropic and orthotropic records appropriately. For wood, explain longitudinal/radial/tangential axes; mechanical orientation and texture orientation remain separate contracts. Reuse the validated engine report for elastic consistency and derived moduli.
    • Make source review and specimen state visible. Grade, processing, temperature and wood moisture should be readable before applying a card. A source or license string is a claim, not verified certification or permission.
    • Authoring should provide a reviewable change preview, inline validation, explicit apply/cancel/clear, one-step undo and lossless offline reopening. Preserve the existing card on refusal. Keep the assigned density and optical look unchanged unless the corresponding action explicitly edits them.

    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.

  4. added
    area:ui
    enhancement
    priority:P3
    on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uienhancementpriority:P3

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions