From e2895396d36034755b5cf51dbe4094d2ae9b4e22 Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Thu, 21 May 2026 14:28:47 +0700 Subject: [PATCH] Revert "Revert "Support form Assistant" (#46194)" This reverts commit d11bd4997e6bcec91f66c0111de60d7de13ae83e. --- .../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 | 182 +++++++++++++++ .../Support/SupportAssistantSuccessCard.tsx | 220 ++++++++++++++++++ .../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/Message.Parts.tsx | 6 + .../ui/AIAssistantPanel/Message.tsx | 1 + .../SupportRequestMessage.test.tsx | 48 ++++ .../SupportRequestMessage.tsx | 44 ++++ .../components/ui/HelpPanel/HelpPanel.tsx | 7 +- packages/common/telemetry-constants.ts | 16 ++ 19 files changed, 828 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/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 ( - +