pf_app/ui/src/views
Paul Trowbridge db67f6eede DEBUG: instrument view rebuilds and depth re-apply on refocus
Temporary. Row grouping re-expands whenever the browser regains focus, for
both the toolbar EXPAND buttons and the per-row +/-. set_depth() and
per-node expansion both live on the view rather than in ViewConfig, so a
rebuilt view loses them -- but nothing so far distinguishes "the view was
rebuilt" from "the re-apply lost its race with the redraw".

Tags each view object with an id via a WeakMap and logs it at every point
that could rebuild one: focus/visibilitychange/pageshow, config-update,
applyDepth, the theme effect, and initViewer. A changed id across a refocus
means the view was discarded; an unchanged id means the depth re-apply
itself is at fault. Each bail-out in the refocus handler now says which
branch it took, which also shows whether expandDepthRef was ever set.

Prefix [pf-depth]. Revert this commit once the cause is known.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-16 22:19:25 -04:00
..
Baseline.jsx Offer dimensions in the segment filter, not just dates and filter columns 2026-09-16 17:47:40 -04:00
Forecast.jsx DEBUG: instrument view rebuilds and depth re-apply on refocus 2026-09-16 22:19:25 -04:00
Login.jsx Put the app behind a login 2026-09-14 22:20:25 -04:00
Setup.jsx Add static display-grain pre-aggregation (col_meta.in_grain) 2026-08-18 16:25:38 -04:00