referenceGroups.ts51 lines · main
1export const SHORTCUT_REFERENCE_GROUPS = {
2 NAVIGATION_GLOBAL: 'navigation.global',
3 NAVIGATION_DATABASE: 'navigation.database',
4 NAVIGATION_AUTH: 'navigation.auth',
5 NAVIGATION_STORAGE: 'navigation.storage',
6 NAVIGATION_FUNCTIONS: 'navigation.functions',
7 NAVIGATION_FUNCTION_DETAIL: 'navigation.function-detail',
8 NAVIGATION_REALTIME: 'navigation.realtime',
9} as const
10
11export const SHORTCUT_REFERENCE_GROUP_LABELS: Record<string, string> = {
12 [SHORTCUT_REFERENCE_GROUPS.NAVIGATION_GLOBAL]: 'Global Navigation',
13 [SHORTCUT_REFERENCE_GROUPS.NAVIGATION_DATABASE]: 'Database Navigation',
14 [SHORTCUT_REFERENCE_GROUPS.NAVIGATION_AUTH]: 'Auth Navigation',
15 [SHORTCUT_REFERENCE_GROUPS.NAVIGATION_STORAGE]: 'Storage Navigation',
16 [SHORTCUT_REFERENCE_GROUPS.NAVIGATION_FUNCTIONS]: 'Edge Functions Navigation',
17 [SHORTCUT_REFERENCE_GROUPS.NAVIGATION_FUNCTION_DETAIL]: 'Edge Function Tabs',
18 [SHORTCUT_REFERENCE_GROUPS.NAVIGATION_REALTIME]: 'Realtime Navigation',
19}
20
21export const SHORTCUT_REFERENCE_GROUP_ORDER = [
22 'command-menu',
23 'shortcuts',
24 SHORTCUT_REFERENCE_GROUPS.NAVIGATION_GLOBAL,
25 SHORTCUT_REFERENCE_GROUPS.NAVIGATION_DATABASE,
26 SHORTCUT_REFERENCE_GROUPS.NAVIGATION_AUTH,
27 'auth-users',
28 SHORTCUT_REFERENCE_GROUPS.NAVIGATION_STORAGE,
29 'storage-buckets',
30 'storage-explorer',
31 SHORTCUT_REFERENCE_GROUPS.NAVIGATION_FUNCTIONS,
32 'functions-list',
33 SHORTCUT_REFERENCE_GROUPS.NAVIGATION_FUNCTION_DETAIL,
34 'functions-detail',
35 'functions-overview',
36 SHORTCUT_REFERENCE_GROUPS.NAVIGATION_REALTIME,
37 'realtime-inspector',
38 'logs-preview',
39 'nav',
40 'ai-assistant',
41 'inline-editor',
42 'sql-editor',
43 'results',
44 'data-table',
45 'table-editor',
46 'schema-visualizer',
47 'list-page',
48 'action-bar',
49 'operation-queue',
50 'unified-logs',
51]