App.jsx fell back to versions[0] when localStorage held no selection, and the version list is ordered created_at DESC -- so a fresh browser landed on whatever version was created last. That is a scratch scenario as readily as the plan, and sales accounts, which never pick a version themselves, had no way back to the one they were meant to read. pf.version.is_default names the landing version, at most one per source by partial unique index, the way pf.layout.is_default already works. Setting it is admin-only and enforced in the route: it decides where everyone else lands, so it follows the pf.log rule rather than being the version's own setting like its name. A stored selection still wins -- the default is the fallback, not an override, so nobody building scenarios is thrown back to the plan on every load. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| auth.js | ||
| layouts.js | ||
| log.js | ||
| operations.js | ||
| plans.js | ||
| sources.js | ||
| tables.js | ||
| versions.js | ||