Skip to content

fix(base): remove the separate default-view setting - #128

Merged
mr-kelly merged 1 commit into
mainfrom
fix/remove-base-default-view-setting
Nov 22, 2026
Merged

mr-kelly merged 1 commit into
mainfrom
fix/remove-base-default-view-setting

Conversation

@mr-kelly

@mr-kelly mr-kelly commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Verification: 🟡 Partially verified. Typecheck and unit/integration tests ran on this branch. The real browser run used the same patch on a separate checkout, not this exact branch.

Summary

Removes the separate Base default-view setting added in #121. A Base opens on its leftmost view in tab order, the same as before #121. To change where a Base opens, drag that view's tab to the left.

#92 asked for this setting because a Base kept reopening on an unsaved all-records grid. Opening the leftmost saved view already fixes that. A second, hidden setting that can override tab order adds a concept without fixing anything that is still broken.

Folder breadcrumbs (#124), record source-view navigation (#122) and the audit export (#120) are unchanged.

What changed

  • nodes.updateSettings accepts only airappEngine again. defaultViewSlug is rejected as an unknown key (400).
  • Node settings no longer show a "Default view" picker for Bases.
  • A bare /base/<slug> resolves from the loaded views alone; it no longer waits for a node-settings fetch.
  • Archiving a view no longer touches node settings.
  • Removed the setting's labels in every locale, its component test, and its integration test.

Compatibility

defaultViewSlug landed on main on 2026-11-20 and is not in any release (latest is v1.5.0, 2026-11-16). A value already stored in a node's settings JSON is ignored. No migration.

Verification

  • busabase-core, busabase-contract and busabase typecheck on this branch.
  • 38 tests: view order, source-view URL, record-preview URL, topbar breadcrumb, node-settings dialogs, and the Base default-view-and-order integration test on PGLite.
  • 21 OpenAPI route, component and parameter-coverage tests.
  • Real browser on an isolated PGLite instance running the same patch:
    • PATCH /nodes/{id}/settings with defaultViewSlug returns 400 and nothing is stored.
    • A bare Base link opens the leftmost Grid view.
    • Node settings shows no Default view field.
    • After moving Grid to the end of the tabs, the Base opens on Board.
    • A record opened from Board still returns to Board.

Node settings: no Default view field

settings

After reordering, the Base opens on the new leftmost tab (Board)

reordered

Recording

Refs #92, reverts the setting from #121.

🤖 Generated with Claude Code

A Base opens on its leftmost view in tab order, as before #121.
Removes defaultViewSlug from node settings, its picker, the
settings-aware redirect, and the archive-time clear.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mr-kelly
mr-kelly merged commit a00ae1f into main Nov 22, 2026
10 checks passed
@mr-kelly
mr-kelly deleted the fix/remove-base-default-view-setting branch November 22, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant