feat: sort workspaces (#8770)

## Summary

Sort workspaces so that the personal workspace appears first, followed
by the rest in ascending order (oldest first) by created_at / joined_at.

## Changes

- **What**: teamWorkspaceStore.ts, teamWorkspaceStore.test.ts
- **Breaking**: <!-- Any breaking changes (if none, remove this line)
-->
- **Dependencies**: <!-- New dependencies (if none, remove this line)
-->
This commit is contained in:
Simula_r
2026-02-10 10:11:35 -08:00
committed by GitHub
parent 0288ea5b39
commit 9dde4e7bc7
4 changed files with 92 additions and 12 deletions

View File

@@ -11,6 +11,8 @@ interface Workspace {
id: string
name: string
type: WorkspaceType
created_at: string
joined_at: string
}
export interface WorkspaceWithRole extends Workspace {