Repository navigation
feat(viewer): resolve the element panel and schedule into named rows - #272
Conversation
Selecting an element used to dump the raw element record into the
panel: `property_set` arrived as one long
`{"name":"RvtElementRecordGeometry","properties":[...]}` string,
`location_feet` and `extrusion` as raw arrays and objects, index
fields as bare numbers, and every absent optional as a dash. The
schedule said "872 scheduled elements" and nothing else.
The panel now reads as words, and the structure is computed in
Rust so the frontend never re-derives a unit or a rounding rule:
- `element_info_panel` gains `property_group` (the property set as
a titled group of `PanelProperty { name, value, kind, numeric }`
rows), `placement_rows` and `extent_rows` (labelled feet rows
plus the profile shape), `storey` and `material` (index fields
resolved to the name they point at), `predefined_type`, and
`missing` (which optionals were absent).
- Property values carry their unit and booleans read as Yes / No.
Long sets collapse behind a native `<details>`.
- The storey row jumps to that storey in the scene tree and the
material row highlights every element sharing it, both following
the jump-to-selection pattern #269 set for host rows.
- `build_schedule` gains `Schedule::groups`, the per-IFC-type
breakdown (count, entity indices, storeys spanned) that drives
the schedule panel and its per-type scene highlight.
- Absent optionals are omitted rather than dashed. A one-line
"not recovered" note names a field only where the export
diagnostics confirm it as a known decode gap.
`build_gltf` now writes `extras: { entityIndex, ifcType }` on every
element node. The viewer has always read `userData.entityIndex` and
`userData.ifcType` for picking, selection highlight and category
visibility, and `docs/viewer-build-pipeline.md` documented them as
set — but nothing ever wrote them, so all three were inert. Writing
the extras is what makes the per-type and per-material highlights
act on the scene at all.
Presentation keeps the existing dark dense identity and adds one
motif: a 2 px left rule whose colour says what a band is — grey for
inert data, accent for somewhere you can navigate to, amber for a
decode gap, matching the status rows and the scaffold note. New
numeric rows use tabular figures in the panel's own face rather
than a second family. No new dependencies and no external
resources.
Also: loading a new file now clears the previous file's panel and
schedule instead of leaving stale numbers up, and clicking a
project or storey row describes that node instead of leaving the
last element's panel in place.
Tests: 16 new Rust unit tests across `scene_graph` and `gltf`; the
project-sample browser test asserts the property rows, the typed
value kinds, the labelled placement/extents rows, the absence of
dashes, and the storey jump; a new browser test asserts the
schedule breakdown sums to the total and that the per-type
highlight toggles; the Core Interior test asserts the collapsed
property group.
Known gap: neither corpus sample binds a material to an element
(`IfcRelAssociatesMaterial` count is 0 for both), so the material
band and its highlight are covered by Rust unit tests only and are
not exercised by the browser suite.
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_b0883e6a-3964-4f5c-8864-80a3f39c09bb) |
|
Screenshots (1600x1000, headless Chromium, Core Interior). Element info — Schedule — the per-type breakdown with Local paths on the machine that produced them:
|
## Summary Docs-only. PR #261 described the state at that moment; #266, #267/#268, #272, #273 and #274 landed after it and left several pages understating or contradicting what ships. Every number here is re-read from the linked report, the corpus gate, or the count manifest that backs it — nothing is carried over from the PR descriptions. ## Motivation Two pages disagreed with themselves. `docs/user-guide.md` gave both 853 of 872 and 801 of 872 storey containment in adjacent paragraphs, and quoted 336 of 360 walls, which #274 superseded. `docs/status.md` still said the wall-join decision "is in neither wall's box nor in 4 KiB past its record" — #274 found the carrier. Four pages still promised a ~28 second browser decode that #266 cut to about 3 seconds. The audit-honesty rule cuts both ways here: the same pass also had to avoid over-claiming #273, whose wall-type join is exact but emits nothing. ## Changes - **`docs/status.md`** — re-dated the RE-26 wall and column residuals as historical; added RE-29 (wall ends 689 → 711 of 720, bodies 336 → 351 of 360, 15 improved / 345 unchanged / 0 regressed, 9 residual ends at two true L corners; columns 176 → 256 of 256 at a worst residual of 9.4e-13 ft, `difference_box` fail-closed, `IFCPROPERTYSINGLEVALUE` 9231 → 9311) and RE-28 (the `0xffff8080` wall-type record, 360 of 360, distribution 129/127/100/4, #240 as an index artifact) with an explicit **library-side only, nothing emitted** paragraph; recorded #88's no-oracle finding and the 86-record `OST_Materials` bound; new `## Performance` section. - **`docs/user-guide.md`** — deleted the contradictory 801 of 872 paragraph; 336 → 351 of 360 plus the 256 of 256 column cut; added the #272 panel/schedule paragraph and a `### Performance` note; corrected the demo-gallery decode time. - **`README.md`** — the headline paragraph, the gaps table row and the demo-gallery line now carry the RE-27/RE-28/RE-29 state; new `### Performance on large projects`. - **`docs/contribution-map.md`** — the closed-issue list is now twelve issues, not six; the #33 / #219 row reads 853 of 872 and keeps the reference side marked `NOT MEASURED`; new rows for #238, #88, #227, #34 and #90; the closed #32 row is gone. - **`docs/support-matrix.json`** — `reviewed` to 2026-09-19; the walls and columns rows carry the RE-29 measurements and **stay `partial`**; a new `element-record-wall-type-join` row records RE-28 at `partial` with "None yet in the exported file" as its user impact; the instance-recovery and level-record rows no longer read 801 as current. - **`docs/supported-profile.md`** — IFC output and browser viewer rows; the compound-layer and family-profile bullets now name the no-oracle finding and the 9-end residual. - **`docs/ifc-compare.md`** — divergence table updated to the measured state, plus a plain statement that `catalogued_divergence_notes` in `src/ifc/compare.rs` still quotes the pre-#274 figures and still names #219 for slabs and windows. - **`docs/viewer-api.md` / `docs/viewer-build-pipeline.md`** — the #266 throughput and the `DECODE_BYTES_PER_SECOND` basis; the pre-#266 figures are kept but dated; the `build_gltf` `extras` fix and the panel / schedule contract from #272. ## Testing - N/A: docs-only PR — no Rust, viewer, workflow or test file is touched. - `docs/support-matrix.json` re-validated against `docs/schemas/support-matrix.schema.json` (required keys, `additionalProperties`, id pattern, status vocabulary, unique ids) and against the `honesty_invariants` that `tests/support_matrix.rs` enforces: `never_verified_capability_ids`, `max_status_by_capability_id`, and the COR-001 converter-grade rule. All pass; the new row is `partial`. - Every test and function name cited in the new prose was checked to exist: `the_surviving_side_of_a_true_l_corner_is_still_over_trimmed`, `core_interior_2024_column_join_cut_plan_extents`, `core_interior_2024_wall_joins_are_named_in_the_reference_list`, `core_interior_2024_wall_type_record_join`, `core_interior_2024_material_record_family`, `core_interior_2024_wall_join_trimmed_bodies`, `core_interior_2024_column_type_symbol_join`, plus `partition_type_records::{type_definition_ids, unique_type_reference}` and `element_record_column_cuts::{difference_box, column_cut_boxes}`. - `core_interior_2024_wall_join_trimmed_bodies` asserts `resolved == 360` and `trimmed == 322`, which is what the support-matrix evidence string now says. - Every relative link and repo path added resolves on disk. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR — no claims of features that are not actually shipped - [x] Resolved limitations updated: #239 (columns), #240 (the `18" Basement` slot), and the plate / window storey containment #219 tracked - [x] New limitations documented: the 9 true-L-corner ends, and #88 being unwitnessable on this corpus - [x] No emojis, no private paths, no personal email addresses - [x] N/A: no reverse-engineering finding is introduced here — the reports (RE-27, RE-28, RE-29) already shipped with their own PRs **Three claims deliberately not written:** 1. **Nothing about rooms.** `gh pr view 275` reported `OPEN` (checked twice, at the start and just before committing), so the existing space claims are untouched and `IFCSPACE` still reads "name-only, placeholder body" everywhere. 2. **The wall → `IfcWallType` join is never described as shipping in the export.** RE-28 §7 says "Library only. No emitted IFC entity, property or relation changes", and §8 says the join "is not yet a property on the emitted wall". Every mention says so explicitly. 3. **README's "419 MB of linear memory" is left alone.** That is a wasm32 figure from #256. #266 re-measured native peak RSS (490.1 MiB) and the browser decode time, but not wasm linear memory, so there is no measurement to replace it with. Also left as-is, and now flagged in `docs/ifc-compare.md` rather than silently papered over: the note constants in `src/ifc/compare.rs` still say "31 over-trimmed wall ends" and still name #219 for `IFCSLAB` and `IFCWINDOW`. Fixing those is a code change and out of scope for a docs-only PR. ## Legal and contribution hygiene - [x] I agree this work is licensable under Apache-2.0 - [x] No Autodesk proprietary source, decompiled internals, or NDA'd SDK content - [x] N/A: no new test fixtures ## Breaking changes None. ## Screenshots or output samples N/A: docs-only PR — no UI or IFC output changed. ## Related issues Refs #88, #219, #238, #239, #240, #266, #272, #273, #274. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Documentation and support-matrix metadata only; no Rust, viewer, or export logic changes. > > **Overview** > **Docs-only refresh** so README, status, user guide, contribution map, supported profile, IFC compare notes, viewer docs, and `docs/support-matrix.json` match what landed after #266–#274 — without changing runtime behavior. > > **Capability numbers and gaps** are brought up to date: wall runs trimmed using the record **reference list** (351/360 world-exact, 9 L-corner ends still wrong), **column bodies** as prism minus named cutting walls (256/256), **storey binding** via record Level ids (853/872), and **wall→wall-type** join exact in the library but **not written to IFC** (#88 compound layers marked **no oracle** on the ReferenceView corpus). > > **Performance narrative** is added/updated everywhere it was still ~28s: partition inflate **memoized on `RevitFile`** (#266), Core Interior **~1.7s / ~490 MiB** native and **~3s** browser decode, byte-identical IFC aside from timestamps. > > **Viewer docs** now describe **glTF `extras`** for picking (#272), the typed info panel / schedule / host navigation, and **`DECODE_BYTES_PER_SECOND`** for loading hints. > > **Contribution map & matrix** list twelve closed issues, new remainder rows (#238, #88, #227, …), RE-29 evidence on wall/column rows, and a new **`element-record-wall-type-join`** row at `partial`. **`docs/ifc-compare.md`** documents the measured divergence table and explicitly notes that **`catalogued_divergence_notes` in `src/ifc/compare.rs` still lags** (separate code fix). > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit d5c32eb. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
Summary
Selecting an element used to dump the raw element record into the info panel —
property_setarrived as one long{"name":"RvtElementRecordGeometry","properties":[...]}string,location_feetandextrusionas raw arrays and objects, index fields as bare numbers, and every absent optional as a dash — while the schedule said "872 scheduled elements" and nothing else. Both now read as words, with the structure computed in Rust (element_info_panel/build_schedule) and only the rendering inviewer/src/main.ts.Motivation
The panel and the schedule were the two places where the viewer still spoke in record fields rather than in the building. A person inspecting a door could see
storey_index: 2but not which level that is,extrusion: {…}but not how tall the door is, and a dash where a field was simply absent — indistinguishable from a field the decoder failed on. The schedule's single count said nothing about what the 872 elements actually are.Changes
src/ifc/scene_graph.rs—ElementInfoPanelgainsproperty_group,placement_rows,extent_rows,storey,material,predefined_typeandmissing; newPanelRow,PanelProperty,PanelPropertyGroup,PanelStorey,PanelMaterialtypes.Schedulegainsgroups(ScheduleTypeGroup { ifc_type, count, entity_indices, storeys }) built bySchedule::from_rows. Property values carry their unit; booleans format asYes/No; a value that rounds to zero prints0.000 ft, never-0.000 ft.src/ifc/gltf.rs—build_gltfnow writesextras: { entityIndex, ifcType }on every element node (newNodeExtras).viewer/src/main.ts— the panel renders entirely from the Rust payload; per-type and per-material scene highlight; schedule breakdown; storey jump; empty-optional omission and the diagnostics-backed gap note.viewer/index.html— panel band and schedule styles; the schedule's live region is now a persistent child so only the total line announces.viewer/tests/viewer-regression.spec.ts— extended project-sample and Core Interior coverage, plus a new schedule test.docs/viewer-api.md,docs/viewer-build-pipeline.md— document the new payload fields and whereuserData.entityIndex/userData.ifcTypeactually come from.What the panel shows now
Selecting
Door-80750in Core Interior:Sets longer than eight properties collapse behind a native
<details>. Absent optionals are omitted; a one-lineNot recovered: …note names a field only where the export diagnostics confirm it as a known decode gap (unsupported_geometry_missing_level,partial_element_geometry,revit_element_parameters_to_ifc_property_sets, and so on), so an omission is never mistaken for a failure and a failure is never silently omitted.What the schedule shows now
Each row toggles a tint over every mesh of that type. The affordance only appears when the scene actually has tintable meshes; a scaffold export with no geometry gets counts only.
The glTF extras fix
build_gltfwrote noextrasat all, souserData.entityIndexanduserData.ifcTypewere never populated — which meant raycast picking, the selection highlight, and the category visibility toggles were all inert against the 3-D scene, despitedocs/viewer-build-pipeline.mddocumentinguserData.entityIndexas "set when building the scene". Writing the extras is what makes the new per-type and per-material highlights act on the scene, and it repairs those three pre-existing behaviours at the same time.Presentation
Keeps the dark dense engineering identity and adds one motif: a 2 px left rule whose colour says what a band is — grey for inert data, accent for somewhere you can navigate to, amber for a decode gap — matching the rule the status rows and the scaffold note already use. New numeric rows use
font-variant-numeric: tabular-numsin the panel's own face rather than introducing a second family. Everything is CSS custom properties, no new dependencies, no external resources, and the existing reduced-motion and focus-ring rules cover the new controls.Testing
cargo test --allpasses locallycargo clippy --all-targets --all-features -- -D warningspassescargo fmt --checkpassesscene_graph(resolved storey/material, typed property rows, placement/extents labelling, profile naming,missing, negative-zero, serde round-trip, schedule grouping) andgltf(extras present on every element node, camelCase serialization)step_writerchange;tests/fixtures/synthetic-project.ifcoutput is unchangedBrowser suite:
RVT_VIEWER_PORT=4181 RVT_VIEWER_SAMPLE=<Revit_IFC5_Einhoven.rvt> npm run test:browser— 14/14 passed. The project-sample test asserts the titled property group, the typed value kinds,Yes/Nobooleans, unit-carrying lengths, the labelled placement and extents rows, that no row renders a bare dash, and that the storey link selects that storey in the tree by keyboard. A new test asserts the schedule's per-type counts sum to the reported total and that the per-type highlight toggles. The Core Interior test asserts the collapsed property group.Three existing assertions that pinned the panel to raw record keys (
#infocontainsifc_type) were updated to the new copy — that display was the defect this PR fixes.Audit-honesty checklist
docs/viewer-build-pipeline.mdno longer claimsuserData.entityIndexis set without saying what sets itKnown limitations
IfcRelAssociatesMaterialcount is 0 for both Einhoven and Core Interior, becauserevit_compound_assemblies_and_walltype_widthsis still unsupported. The material band and its highlight are therefore covered by Rust unit tests only and are not exercised by the browser suite; the project-sample test instead asserts the band is omitted outright and that the panel does not falsely claim material was "not recovered" (the diagnostics report 42 recovered materials, they are just unbound).elementInfoPanelstill round-trips the whole model throughserde-wasm-bindgenper selection. That is pre-existing and fast enough on the 33.7 MB sample, but it is the obvious next thing to cache if selection ever feels slow.Legal and contribution hygiene
Breaking changes
None for the viewer.
Schedulegains a publicgroupsfield, so any external code constructing it with a struct literal should switch toSchedule::from_rows; nothing in this repository did.Screenshots or output samples
Attached in the PR thread: the element info panel with
Door-80750selected in Core Interior, and the schedule breakdown withIFCWALLhighlighted. Both 1600x1000, headless Chromium.Related issues
Refs #264, #269.
Note
Medium Risk
Touches core viewer UX and glTF export identity on every mesh; behavior is well-tested but schedule/panel payloads grew and highlight logic now depends on extras being present.
Overview
The element info panel and schedule are now display-ready from Rust instead of dumping raw entity records in the browser.
element_info_paneladds resolved storey/material objects, typedproperty_grouprows,placement_rows/extent_rows,missing, and humanized formatting (units, Yes/No, negative-zero feet).Scheduleaddsgroups(ScheduleTypeGroup) for per-IFC-type counts, entity indices, and storeys, built viaSchedule::from_rows.build_gltfnow writesextras: { entityIndex, ifcType }on every element node so Three.jsuserDataenables picking, category toggles, and the new per-type and per-material scene highlights.The viewer renders banded panels (storey jump, collapsible properties, diagnostics-backed “not recovered” notes), a schedule breakdown with toggle highlights, and updated styles/tests/docs to match.
Reviewed by Cursor Bugbot for commit bc75856. Configure here.