Skip to content

feat(navigation): default project sidebar to Tabbed navigation#4

Merged
JOBYINC merged 1 commit into
feature/lark-oauth-providerfrom
feature/default-tabbed-navigation
May 18, 2026
Merged

feat(navigation): default project sidebar to Tabbed navigation#4
JOBYINC merged 1 commit into
feature/lark-oauth-providerfrom
feature/default-tabbed-navigation

Conversation

@JOBYINC
Copy link
Copy Markdown
Owner

@JOBYINC JOBYINC commented May 18, 2026

What

All projects/users default to Tabbed project-sidebar navigation instead of Accordion.

Why

Requested: every project should default to Tabbed navigation.

Changes

  • workspace.pyWorkspaceUserProperties.navigation_control_preference model default ACCORDIONTABBED (applies to newly-created rows).
  • migration 0125_default_tabbed_navigationAlterField (keeps the migration state in sync with the model) + a data migration that flips every existing row still on "ACCORDION" to "TABBED", so current users get it too (the model default alone never rewrites existing rows). Reverse is a deliberate no-op: we cannot distinguish rows that chose ACCORDION intentionally from those on the old silent default, so we do not blanket-revert.
  • navigation-preferences.ts — frontend DEFAULT_PROJECT_PREFERENCES fallback ACCORDIONTABBED (covers users with no preferences row yet; the FE uses the stored value when present, else this fallback).

Tradeoff (intentional, confirmed)

The data migration overwrites the stored preference of anyone currently on ACCORDION — including anyone who may have chosen it deliberately. This was explicitly requested ("all projects default to Tabbed") and accepted.

Deploy / migration

Backend change: takes effect in production only after deploy and running migration 0125 on the API/migrator host.

Test plan

  • Local: migration applies cleanly (0124 → 0125, single leaf, no conflict), no traceback.
  • Reviewer: fresh user → sidebar defaults to Tabbed.
  • Reviewer: existing ACCORDION user → flipped to Tabbed after migrate.
  • Reviewer: switching to Accordion in Customize Navigation still persists (not force-reset on every load).

🤖 Generated with Claude Code

All projects/users default to Tabbed navigation instead of Accordion.

- workspace.py: WorkspaceUserProperties.navigation_control_preference
  model default ACCORDION -> TABBED (new rows)
- migration 0125: AlterField (matches the model) + a data migration
  flipping every existing row still on 'ACCORDION' to 'TABBED' so
  current users get it too (the model default never touches existing
  rows). Reverse is a no-op — we cannot tell which rows chose ACCORDION
  deliberately vs. via the old silent default, so we don't blanket-revert.
- navigation-preferences.ts: frontend DEFAULT_PROJECT_PREFERENCES
  fallback ACCORDION -> TABBED (covers users with no prefs row yet)

Backend change: requires deploy + running migration 0125 on the host
to take effect in production. Verified locally — migration applies
clean (0124 -> 0125, no leaf conflict).
@JOBYINC JOBYINC merged commit 6d750a9 into feature/lark-oauth-provider May 18, 2026
@JOBYINC
Copy link
Copy Markdown
Owner Author

JOBYINC commented May 18, 2026

Landed on feature/lark-oauth-provider as part of a consolidated production deploy (commit 6d750a9112), not via the PR merge button. Per maintainer instruction the following four pieces were direct-merged together onto the prod line in one push (no separate PRs for the other three):

Piece Commit
Task 1 — public custom-field API (read/write/CRUD ×3) 981b940b33 78ed0516ff 9d29658a0b
Task 2 — Asana solid-fill pills across label-like fields c0c79bbbd5
This PR — default project sidebar → Tabbed cfd0d8edf2
Favorite toggle in project quick menu 3d9e3c590a

Migration applied to production: Applying db.0125_default_tabbed_navigation... OK (migrator exited 0). ⚠️ 0125 includes the destructive data migration flipping all existing ACCORDION projects to TABBED (reverse = noop, maintainer-confirmed tradeoff). Task 1/Task 2/favorite add no migrations. Post-deploy: web/admin/space healthy, api stable (RestartCount=0).

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