Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Default projects to collapsed when no expansion state exists#36

Merged
rexlManu merged 1 commit intomainfrom
t3code/default-no-project-selection
Mar 9, 2026
Merged

Default projects to collapsed when no expansion state exists#36
rexlManu merged 1 commit intomainfrom
t3code/default-no-project-selection

Conversation

@rexlManu
Copy link
Copy Markdown
Owner

@rexlManu rexlManu commented Mar 9, 2026

Summary

  • Change project normalization to default expanded to false when there is no persisted expansion state.
  • Preserve existing behavior when persisted expansion data exists by still honoring saved workspace-root entries.
  • Add a store read-model sync test to verify projects remain collapsed by default when no expansion state is present.

Testing

  • Added unit test in apps/web/src/store.test.ts:
    • Verifies syncServerReadModel sets next.projects[0]?.expanded to false when initial state has no projects and no persisted expansion state.
  • Not run: bun lint
  • Not run: bun typecheck

- Change project normalization to default `expanded` to `false` when no persisted state exists
- Add read-model sync test to verify collapsed-by-default behavior
@rexlManu rexlManu merged commit 15d01bb into main Mar 9, 2026
1 check failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant