mirror of
https://github.com/stablyai/orca.git
synced 2026-10-20 00:03:45 +00:00
fix(settings): allow setup guide navigation
This commit is contained in:
@@ -38,6 +38,7 @@ const SETTINGS_NAV_TARGETS = [
|
||||
'agents',
|
||||
'orchestration',
|
||||
'linear',
|
||||
'setup-guide',
|
||||
'servers',
|
||||
'mobile',
|
||||
'mobile-emulator',
|
||||
|
||||
@@ -1920,6 +1920,17 @@ describe('createUISlice hydratePersistedUI', () => {
|
||||
})
|
||||
|
||||
describe('createUISlice settings navigation', () => {
|
||||
it('accepts the setup guide target emitted by Settings navigation metadata', () => {
|
||||
const store = createUIStore()
|
||||
|
||||
store.getState().openSettingsTarget({ pane: 'setup-guide', repoId: null })
|
||||
|
||||
expect(store.getState().settingsNavigationTarget).toEqual({
|
||||
pane: 'setup-guide',
|
||||
repoId: null
|
||||
})
|
||||
})
|
||||
|
||||
it('rejects malformed settings targets before storing them', () => {
|
||||
const store = createUIStore()
|
||||
const openSettingsTarget = store.getState().openSettingsTarget as unknown as (
|
||||
|
||||
Reference in New Issue
Block a user