Merge branch 'master' into agent/onboarding-modal-flow

This commit is contained in:
Ziya
2026-08-13 16:40:58 +08:00
committed by GitHub
6 changed files with 7 additions and 7 deletions
@@ -53,7 +53,7 @@ export function createWorkspaceViewStore(): EngineStoreHandle<WorkspaceViewState
return defineStore({
init: (): WorkspaceViewState => ({
groupBy: 'workspace',
orderBy: 'manual',
orderBy: 'updated',
groupExpansion: {},
sessionOrderByAccount: {},
sessionUpdatedAtByAccount: {},
@@ -395,7 +395,7 @@ describe('createWorkspaceViewStore', () => {
it('stores grouping, ordering, Workspace expansion, and recent-session view order', () => {
const store = createWorkspaceViewStore().create()
expect(store.getSnapshot().groupBy).toBe('workspace')
expect(store.getSnapshot().orderBy).toBe('manual')
expect(store.getSnapshot().orderBy).toBe('updated')
store.actions.setGroupBy('flat')
store.actions.setOrderBy('updated')
store.actions.setGroupExpanded('alpha', true)
@@ -14,7 +14,7 @@ import { WorkspaceBrowser } from '../src/client/WorkspaceBrowser.tsx'
import { zh } from '../src/client/locales.ts'
afterEach(cleanup)
beforeEach(() => { localStorage.clear() })
beforeEach(() => { localStorage.clear(); createWorkspaceViewStore().create().actions.setOrderBy('manual') })
// The seat's key domain is workspace common; the stub mirrors the real
// lookup chain (namespace, then common vocabulary, then the key).