chore: phase 2 and 3 refactors

This commit is contained in:
2026-02-21 18:02:20 +01:00
parent 40892b9302
commit 87200a8ad9
24 changed files with 411 additions and 74 deletions

View File

@@ -0,0 +1,18 @@
export const SIDEBAR_VIEW_REGISTRY = [
'posts',
'pages',
'media',
'settings',
'tags',
'chat',
'import',
'git',
] as const;
export type SidebarView = (typeof SIDEBAR_VIEW_REGISTRY)[number];
export const DEFAULT_SIDEBAR_VIEW: SidebarView = 'posts';
export function isSidebarView(value: string): value is SidebarView {
return (SIDEBAR_VIEW_REGISTRY as readonly string[]).includes(value);
}