From 033daf223ce8983ffa96ce191ccd8983d0537935 Mon Sep 17 00:00:00 2001 From: Saxon Fletcher Date: Tue, 26 May 2026 19:56:52 +1000 Subject: [PATCH] Support form Assistant Streamdown (#46248) Re-adds support form Assistant response using a lighter weight Streamdown component vs the more heavy `Message` component. ## Summary by CodeRabbit * **New Features** * AI Assistant follow-up card after ticket submission for project-scoped requests. * In-chat support request preview panels showing submitted subject and message. * **Improvements** * Smarter project selection when opening the support form via route/context. * Success screen: cleaner layout, project-name messaging, optional finish action, and a "Join Discord" button. * Category prompt text updated to "What issue are you having?" * New success/feedback section for consistent layouts. * **Tests** * Added tests covering support prompt serialization/parsing and UI previews. [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/supabase/supabase/pull/46248?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) --- .../Support/CategoryAndSeverityInfo.tsx | 2 +- .../interfaces/Support/ProjectAndPlanInfo.tsx | 9 +- .../components/interfaces/Support/Success.tsx | 94 ++++---- .../Support/SupportAssistant.utils.test.ts | 68 ++++++ .../Support/SupportAssistant.utils.ts | 77 +++++++ .../SupportAssistantSuccessCard.test.tsx | 204 +++++++++++++++++ .../Support/SupportAssistantSuccessCard.tsx | 85 +++++++ .../interfaces/Support/SupportForm.state.ts | 14 ++ .../interfaces/Support/SupportFormV2.tsx | 12 + .../interfaces/Support/SupportFormV3.tsx | 12 + .../interfaces/Support/SupportSidebarForm.tsx | 33 ++- .../Support/SupportSuccessSection.tsx | 51 +++++ .../LayoutSidebar/LayoutSidebarProvider.tsx | 12 +- .../ui/AIAssistantPanel/AIAssistant.tsx | 2 + .../ui/AIAssistantPanel/Message.Parts.tsx | 6 + .../ui/AIAssistantPanel/Message.tsx | 1 + .../SupportAssistantSuccessCardContent.tsx | 207 ++++++++++++++++++ .../SupportRequestMessage.test.tsx | 48 ++++ .../SupportRequestMessage.tsx | 44 ++++ .../components/ui/HelpPanel/HelpPanel.tsx | 7 +- packages/common/telemetry-constants.ts | 16 ++ 21 files changed, 924 insertions(+), 80 deletions(-) create mode 100644 apps/studio/components/interfaces/Support/SupportAssistant.utils.test.ts create mode 100644 apps/studio/components/interfaces/Support/SupportAssistant.utils.ts create mode 100644 apps/studio/components/interfaces/Support/SupportAssistantSuccessCard.test.tsx create mode 100644 apps/studio/components/interfaces/Support/SupportAssistantSuccessCard.tsx create mode 100644 apps/studio/components/interfaces/Support/SupportSuccessSection.tsx create mode 100644 apps/studio/components/ui/AIAssistantPanel/SupportAssistantSuccessCardContent.tsx create mode 100644 apps/studio/components/ui/AIAssistantPanel/SupportRequestMessage.test.tsx create mode 100644 apps/studio/components/ui/AIAssistantPanel/SupportRequestMessage.tsx diff --git a/apps/studio/components/interfaces/Support/CategoryAndSeverityInfo.tsx b/apps/studio/components/interfaces/Support/CategoryAndSeverityInfo.tsx index c0c3aa926c1..34e243e3226 100644 --- a/apps/studio/components/interfaces/Support/CategoryAndSeverityInfo.tsx +++ b/apps/studio/components/interfaces/Support/CategoryAndSeverityInfo.tsx @@ -88,7 +88,7 @@ function CategorySelector({ form }: CategorySelectorProps) { field.onChange(v) } return ( - +