pf_app
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> |
||
|---|---|---|
| lib | ||
| public | ||
| routes | ||
| setup_sql | ||
| ui | ||
| .env.example | ||
| .gitignore | ||
| CLAUDE.md | ||
| install.sh | ||
| package-lock.json | ||
| package.json | ||
| PERSPECTIVE.md | ||
| pf_perspective_options.md | ||
| pf_spec.md | ||
| pf.sh | ||
| server.js | ||