diff --git a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx index d5da414a29afb..69552a572c53b 100644 --- a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx +++ b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx @@ -211,13 +211,13 @@ export const FeedbackWidget = ({ onClose }: FeedbackWidgetProps) => {

Contact{' '} - + support {' '} or{' '} - + see docs diff --git a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsx b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsx index adcad39d5af65..02b69a0b7a18f 100644 --- a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsx +++ b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsx @@ -1,8 +1,9 @@ -import { Activity, BookOpen, HelpCircle, Mail, MessageCircle, Wrench } from 'lucide-react' +import { Activity, BookOpen, HelpCircle, Mail, Wrench } from 'lucide-react' import Image from 'next/legacy/image' import { useRouter } from 'next/router' import SVG from 'react-inlinesvg' +import { IS_PLATFORM } from 'common' import { SupportLink } from 'components/interfaces/Support/SupportLink' import { ButtonTooltip } from 'components/ui/ButtonTooltip' import { useSendEventMutation } from 'data/telemetry/send-event-mutation' @@ -57,81 +58,91 @@ export const HelpPopover = () => { }} /> - -

-
Need help with your project?
-

- For issues with your project hosted on supabase.com or other hosted service inquiries. - Response times are based on your billing plan, with paid plans prioritized. -

-
-
- - {projectRef && ( - } - onClick={() => { - openSidebar(SIDEBAR_KEYS.AI_ASSISTANT) - snap.newChat({ - name: 'Support', - 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', - }, - ], - }, - }) - }} - > - Supabase Assistant + +
+
+
Need help with your project?
+

+ Start with our {projectRef ? 'Assistant, docs,' : 'docs'} or community. +

+
+ +
+ + {projectRef && ( + } + onClick={() => { + openSidebar(SIDEBAR_KEYS.AI_ASSISTANT) + snap.newChat({ + name: 'Support', + 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', + }, + ], + }, + }) + }} + > + Supabase Assistant + + )} + } asChild> + + Docs + - )} - } asChild> - - Troubleshooting - - - } asChild> - - Docs - - - } asChild> - - Supabase Status - - - }> - Contact Support - - + } asChild> + + Troubleshooting + + + {IS_PLATFORM && ( + <> + } + asChild + > + + Supabase status + + + + }> + Contact support + + + )} + +
-
-
-
Reach out to the community
- -

- For other support, including questions on our client libraries, advice, or best - practices. +

+
+
Community support
+

+ Our Discord community can help with code-related issues. Many questions are answered + in minutes.

@@ -143,41 +154,21 @@ export const HelpPopover = () => { href="https://discord.supabase.com" target="_blank" rel="noreferrer" - className="dark block cursor-pointer" + className="group dark block cursor-pointer" > discord illustration header - -
-
-
- diff --git a/apps/studio/public/img/support/github-bg.jpg b/apps/studio/public/img/support/github-bg.jpg deleted file mode 100644 index ed62f645d45dd..0000000000000 Binary files a/apps/studio/public/img/support/github-bg.jpg and /dev/null differ