Files
supabase/apps/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPanel/HelpPanel.constants.ts
Francesco Sansalvadore 9145470ff6 feat(studio): mobile sheet nav (#43184)
- 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
2026-02-27 12:06:27 +00:00

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' },
],
},
}