Repository navigation
Store a Base default view independent of tab order - #121
Conversation
A Base still opens on its leftmost tab when settings.defaultViewSlug is unset. Setting that slug on the node opens that view instead, the node settings dialog can choose it, and archiving the named view clears it. Co-authored-by: Kelly Peilin Chan <[email protected]>
|
Verification level: 🟡 Partial verification — I independently re-ran the package tests and typecheck, and reviewed the diff, but I could not click through a real dashboard. The PR's "Deploy preview" job deploys ProblemA bare Root cause
FixThe PR adds optional Validation
No screenshots: verification did not go through a browser. |
The default-view field asks bases.listViews as soon as the dialog renders. A client that only implements the node writes used to throw before the name field could focus. Co-authored-by: Kelly Peilin Chan <[email protected]>
The 250-row timeline loads three pages of 100. The coverage run reached the length check at 200, inside the default one-second wait. Co-authored-by: Kelly Peilin Chan <[email protected]>
Problem and fix
A Base can now choose its opening view independently of tab order. The existing node settings store the optional default; an absent, invalid, or archived view falls back to the leftmost active view. Archiving the selected default clears the key.
Acceptance also found and fixed a redirect race: after saving a new default, returning to the Base could use an invalidated cached setting before its refetch finished. The route now waits for that fetch, preserving its existing error fallback. A real QueryClient/QueryObserver regression failed before the fix and passed afterward.
Validation
The changed feature paths were exercised in Chromium with genuine Inter/Fraunces fonts, backed by real local databases and HTTP/RPC calls. Busabase Cloud checks used real Better Auth sessions and an isolated migrated PGLite database. Screenshot/video links were fetched successfully after upload.
Verified Save → re-enter → selected default in both local Busabase and Cloud; archived the default through the real API and verified its database setting clears and the browser opens the leftmost view. A Cloud read-only grant returns 403 on a settings write and leaves the setting unchanged. Focused settings/view tests, database integration tests, and scoped typechecks pass.
The CI coverage run also exposed an existing Gantt test stopping at 200 of 250 rows while its third page was loading. Its bounded wait now allows 5 seconds and retains the complete 250-row assertion; focused pagination tests pass.
Known risk: none identified within these feature paths. Merge this before #122.
Story: choose where a Base opens
Choose Review grid without moving its tab.
Re-enter the Base and arrive at the saved default.
Archive that default; the Base opens its remaining leftmost view.
Local browser recording · Cloud browser recording
Fixes #92