diff --git a/.cursor/rules/studio/best-practices/RULE.md b/.cursor/rules/studio/best-practices/RULE.md
index 357265450a8..f5c1472353a 100644
--- a/.cursor/rules/studio/best-practices/RULE.md
+++ b/.cursor/rules/studio/best-practices/RULE.md
@@ -100,7 +100,7 @@ const UserDashboard = () => {
### Co-locate related components
-Place sub-components in the same directory as the parent component. Use an index file for cleaner imports.
+Place sub-components in the same directory as the parent component. Avoid using barrel files (files that do nothing but re-export things from other files) for imports.
```
components/interfaces/Auth/Users/
diff --git a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
index ccf1e1a59ba..31f9342a360 100644
--- a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
@@ -1,10 +1,40 @@
+import { IS_PLATFORM } from 'common'
+import { SIDEBAR_KEYS } from 'components/layouts/ProjectLayout/LayoutSidebar/LayoutSidebarProvider'
+import { useSelectedOrganizationQuery } from 'hooks/misc/useSelectedOrganization'
+import { useSelectedProjectQuery } from 'hooks/misc/useSelectedProject'
+import { Lightbulb, TriangleAlert } from 'lucide-react'
+import { useRouter } from 'next/router'
import { useState } from 'react'
+import { useAiAssistantStateSnapshot } from 'state/ai-assistant-state'
+import { useSidebarManagerSnapshot } from 'state/sidebar-manager-state'
+import {
+ Button,
+ Popover_Shadcn_,
+ PopoverContent_Shadcn_,
+ PopoverSeparator_Shadcn_,
+ PopoverTrigger_Shadcn_,
+} from 'ui'
-import { Button, PopoverContent_Shadcn_, PopoverTrigger_Shadcn_, Popover_Shadcn_ } from 'ui'
+import { ASSISTANT_SUGGESTIONS } from '../HelpDropdown/HelpDropdown.constants'
+import { getSupportLinkQueryParams } from '../HelpDropdown/HelpDropdown.utils'
+import { HelpSection } from '../HelpDropdown/HelpSection'
import { FeedbackWidget } from './FeedbackWidget'
export const FeedbackDropdown = ({ className }: { className?: string }) => {
+ const router = useRouter()
+ const { data: project } = useSelectedProjectQuery()
+ const { data: org } = useSelectedOrganizationQuery()
+ const snap = useAiAssistantStateSnapshot()
+ const { openSidebar } = useSidebarManagerSnapshot()
const [isOpen, setIsOpen] = useState(false)
+ const [stage, setStage] = useState<'select' | 'issue-options' | 'widget'>('select')
+
+ const projectRef = project?.parent_project_ref ?? (router.query.ref as string | undefined)
+ const supportLinkQueryParams = getSupportLinkQueryParams(
+ project,
+ org,
+ router.query.ref as string | undefined
+ )
return (
Your feedback has been sent. Thanks!
++ We don’t always respond to feedback. If you need help with your project, use the button + below. +
+Your feedback has been sent. Thanks!
-
- We don’t always respond to feedback. If you require assistance, please contact support
- via the
+ Our Discord community can help with code-related issues. Many questions are answered + in minutes. +
+{description}
+- Start with our {projectRef ? 'Assistant, docs,' : 'docs'} or community. -
-- Our Discord community can help with code-related issues. Many questions are answered - in minutes. -
-{placeholder}
+{placeholder}