Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Merge branch 'feat/nav-layout-change' into feat/branch-management

Joshen Lim8bea363251d2
diff --cc studio/components/layouts/AppLayout/AppHeader.tsx
index 7a5607f4804,5ea83c6e56a..8879ac701d5
--- a/studio/components/layouts/AppLayout/AppHeader.tsx
+++ b/studio/components/layouts/AppLayout/AppHeader.tsx
@@@ -31,15 -30,18 +31,19 @@@ const AppHeader = () =>
</Link>
<OrganizationDropdown />
{ref !== undefined && <ProjectDropdown />}
+ {ref !== undefined && <BranchDropdown />}
</div>
- <div className="flex items-center space-x-4">
- <FeedbackDropdown alt />
- <NotificationsPopover alt />
- <HelpPopover alt />
- <SettingsButton slug={organization?.slug ?? ''} />
- <UserSettingsDropdown />
+ <div className="flex items-center gap-4">
+ <div className="flex items-center gap-3">
+ <FeedbackDropdown alt />
+ <NotificationsPopover alt />
+ <HelpPopover alt />
+ <SettingsButton />
+ </div>
+ <div className="flex items-center gap-3">
+ <UserSettingsDropdown />
+ </div>
</div>
</div>
)
diff --cc studio/components/layouts/AppLayout/ProjectDropdown.tsx
index 3053db7a22c,9a882441d23..411531e687e
--- a/studio/components/layouts/AppLayout/ProjectDropdown.tsx
+++ b/studio/components/layouts/AppLayout/ProjectDropdown.tsx
@@@ -105,11 -106,9 +106,11 @@@ const ProjectDropdown = () =>
const projectNameRef = useRef<HTMLAnchorElement>(null)
const { data: allProjects, isLoading: isLoadingProjects } = useProjectsQuery()
+ console.log({ selectedProject })
+
const isOrgBilling = !!selectedOrganization?.subscription_id
const { data: subscription, isSuccess } = useProjectSubscriptionV2Query(
- { projectRef: selectedProject?.ref },
+ { projectRef: ref },
{ enabled: !isOrgBilling }
)
const projects = allProjects