mirror of
https://github.com/supabase/supabase.git
synced 2026-09-09 11:30:17 +08:00
- use `MobileSheetNav` for all `LayoutSidebar` panels on mobile viewport - move `Help` to LayoutSidepanel for a more cohesive experience - enables opening the help panel using params `?sidebar=help-panel` https://github.com/user-attachments/assets/a84e56f0-f2e2-4217-89a2-ba895bb7d352
30 lines
809 B
TypeScript
30 lines
809 B
TypeScript
export type HelpOptionId =
|
|
| 'assistant'
|
|
| 'docs'
|
|
| 'troubleshooting'
|
|
| 'discord'
|
|
| 'status'
|
|
| 'support'
|
|
|
|
export const HELP_OPTION_IDS = [
|
|
'assistant',
|
|
'docs',
|
|
'troubleshooting',
|
|
'discord',
|
|
'status',
|
|
'support',
|
|
] as const satisfies readonly HelpOptionId[]
|
|
|
|
export const ASSISTANT_SUGGESTIONS = {
|
|
name: 'Support' as const,
|
|
initialInput: 'I need help with my project',
|
|
suggestions: {
|
|
title: 'I can help you with your project, here are some example prompts to get you started:',
|
|
prompts: [
|
|
{ label: 'Database Health', description: 'Summarise my database health and performance' },
|
|
{ label: 'Debug Logs', description: 'View and debug my edge function logs' },
|
|
{ label: 'RLS Setup', description: 'Implement row level security for my tables' },
|
|
],
|
|
},
|
|
}
|