Skip to content

fix(xr): one rebuild path for charts on the table (S8) - #89

Merged
aMonteSl merged 2 commits into
v1.2.1from
claude/project-thread-kvvyg6-chart-pipeline
Nov 25, 2026
Merged

aMonteSl merged 2 commits into
v1.2.1from
claude/project-thread-kvvyg6-chart-pipeline

Conversation

@aMonteSl

Copy link
Copy Markdown
Collaborator

Requested by Adrián · project thread

Part of #80 (epic #72). Evidence: docs/xr-audit/charts.md.

What changes

Every chart (re)build now reads the row-budgeted slice, stays hidden until its first fit, and only then appears.

Finding Fix
Chart switch drew the new chart at the old scale (up to 75 m wide) Containment beginRebuild() hides object3D until the first fit (finishReveal()), with a 6 s safety reveal
Bars/cyls grew from the floor into 26–32 m towers on first build animation: false in the presentation profile for bars, barsmap, cyls, cylsmap
CHARTS-7 ghost bars after a remap A remap that changes a key dimension rebuilds the chart
CHARTS-8 evolution bypassed the slice (160-row walls, ~3.8 s oversized) Evolution warms its slice with prepareChartDataSlice() and builds on it; a data transition that overflows the table hides the chart until fitted (frames that fit stay visible, so no blink)
CHARTS-9 comparison clones read all rows with a fixed 0.01 0.05 0.01 scale Each side reads its own revision's slice; clones start from the profile scale
CHARTS-12 live reload reverted a remap Re-applies the mapping on screen at restore time; leaves a pending remap alone
CHARTS-13 empty data blamed the mapping / stuck "rebuilding" Explicit no-data state: "No files to show for this mapping."
CHARTS-14 bubble axes sank 0.38–0.60 m into the table Anchor rests the lower of the primary and containment floors on the table
CHARTS-17 evolution re-sliced the main dataset; second mapping change dropped getChartFromSource keeps flat producers; evolution queues the second change
Pie/donut size (delegated decision) Stand up to 2 m tall (maxHeight: 2, was ~1.3 m)

Measured (headless, before → after)

  • Chart switch: frames over the table 75 m wide → 0.
  • First build: 32 m (bars) / 26 m (cyls) towers → 0 frames over the table.
  • Evolution 160-row frame: 138 bars, 129.9 m wide for 3.8 s → 20 bars, 0 samples over the table.
  • Bubbles n=40: axes 0.377 m below the table → 0.
  • Pie/donut: 1.27 m → 1.96 m, stabilized.

Not in this PR (honest scope)

  • The single CodeXRChartPipeline.request() facade from the design was not introduced; the six paths share the same rules through containment (beginRebuild/reveal) and the slice API instead.
  • Switching a comparison to boats still uses the main tree (comparison boats builds inline trees on entry only).
  • CHARTS-16 (pie hover legend removeChild during rebuild) and CHARTS-18 are left for later.

Verification

  • npm test: 1094/1094, lint 158 warnings (at budget).
  • Harnesses: chart-bounds, containment, mode-cycle and project-evolution pass. test:xr-immersive-harness fails intermittently on "left stick must walk the rig forward", the same on the base branch (1 of 3 runs there too), so it is pre-existing and unrelated.
  • New tests: anchor floor, overflow guard, rebuild-hide, empty source, flat-producer routing, profile animation/maxHeight, maxHeight band, comparison slice and scale, live-reload remap.
  • Needs Adrián's eyes in a headset: evolution movie pacing and the pie/donut size.

Generated by Claude Code

Every chart (re)build now reads the row-budgeted slice, stays hidden until
its first fit, and only then appears.

- Containment: beginRebuild/finishReveal with a 6 s safety timer; hidden
  on init, on a chart switch and while a data transition overflows the
  table. Explicit empty state ('no-data') from the producer's NotiBuffer.
  Trailing-edge renormalize. The anchor rests the lower of the primary and
  containment floors on the table (CHARTS-14).
- Presentation: animation off for bars/barsmap/cyls/cylsmap (the BabiaXR
  grow animation drew 26-32 m towers); maxHeight widens the uniform height
  band, pie and donut stand up to 2 m.
- Slices: prepareChartDataSlice() lets a producer warm its slice before
  building on it; project evolution and both comparison sides now read
  their own slice (CHARTS-8, CHARTS-9). getChartFromSource keeps flat
  producers (CHARTS-17). A rebuilt producer re-subscribes its slice.
- Remap rebuilds the chart when a key dimension changes (CHARTS-7).
- Comparison clones start from the profile scale, not '0.01 0.05 0.01'.
- Live reload re-applies the mapping on screen now and leaves a pending
  remap alone (CHARTS-12); evolution queues a second mapping change
  instead of dropping it (CHARTS-17).
- Tests for each, harness asserts the evolution slice, docs and CHANGELOG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014FkKtAtQus8TVjhG9bhytC
@aMonteSl aMonteSl added tfm Adds the issue to the TFM board automatically. Do not remove area: xr-scene Browser runtimes of the XR scenes and LivePanel (A-Frame/BabiaXR, templates/components) area: testing Test suites, harnesses, verification and inventories stream: xr-bugfix-1.2.1 Epic #72: review and fix the XR environment, shipped in 1.2.1 labels Nov 25, 2026 — with Claude
@aMonteSl aMonteSl self-assigned this Nov 25, 2026
@aMonteSl
aMonteSl merged commit 0f6f359 into v1.2.1 Nov 25, 2026
7 checks passed
aMonteSl pushed a commit that referenced this pull request Nov 25, 2026
CHANGELOG [1.2.1] Fixed keeps both entries; guardrail baseline regenerated
for the lowered ESLint warning budget (158 -> 155).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014FkKtAtQus8TVjhG9bhytC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: testing Test suites, harnesses, verification and inventories area: xr-scene Browser runtimes of the XR scenes and LivePanel (A-Frame/BabiaXR, templates/components) stream: xr-bugfix-1.2.1 Epic #72: review and fix the XR environment, shipped in 1.2.1 tfm Adds the issue to the TFM board automatically. Do not remove

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants