diff --git a/apps/studio/components/interfaces/Organization/NewProject/NotOrganizationOwnerWarning.tsx b/apps/studio/components/interfaces/Organization/NewProject/NotOrganizationOwnerWarning.tsx
index 5a2cf43acc..a74dcafae7 100644
--- a/apps/studio/components/interfaces/Organization/NewProject/NotOrganizationOwnerWarning.tsx
+++ b/apps/studio/components/interfaces/Organization/NewProject/NotOrganizationOwnerWarning.tsx
@@ -1,19 +1,30 @@
import InformationBox from 'components/ui/InformationBox'
import { AlertCircle } from 'lucide-react'
+interface NotOrganizationOwnerWarningProps {
+ slug?: string
+}
+
// [Joshen] This can just use NoPermission component i think
-const NotOrganizationOwnerWarning = () => {
+const NotOrganizationOwnerWarning = ({ slug }: NotOrganizationOwnerWarningProps) => {
return (
}
+ icon={}
defaultVisibility={true}
hideCollapse
title="You do not have permission to create a project"
description={
- Contact your organization owner or administrator to create a new project.
+ {slug ? (
+ <>
+ Contact the owner or administrator to create a new project in the{' '}
+ {slug} organization.
+ >
+ ) : (
+ <>Contact the owner or administrator to create a new project.>
+ )}
}
diff --git a/apps/studio/components/interfaces/Organization/OrgNotFound.tsx b/apps/studio/components/interfaces/Organization/OrgNotFound.tsx
new file mode 100644
index 0000000000..7aa3241555
--- /dev/null
+++ b/apps/studio/components/interfaces/Organization/OrgNotFound.tsx
@@ -0,0 +1,48 @@
+import AlertError from 'components/ui/AlertError'
+import { useOrganizationsQuery } from 'data/organizations/organizations-query'
+import { Skeleton } from 'ui'
+import { Admonition } from 'ui-patterns/admonition'
+import { OrganizationCard } from './OrganizationCard'
+
+export const OrgNotFound = ({ slug }: { slug?: string }) => {
+ const {
+ data: organizations,
+ isSuccess: isOrganizationsSuccess,
+ isLoading: isOrganizationsLoading,
+ isError: isOrganizationsError,
+ error: organizationsError,
+ } = useOrganizationsQuery()
+
+ return (
+ <>
+
+ The selected organization does not exist or you don't have permission to access it.{' '}
+ {slug ? (
+ <>
+ Contact the owner or administrator to create a new project in the {slug}{' '}
+ organization.
+ >
+ ) : (
+ <>Contact the owner or administrator to create a new project.>
+ )}
+
+
+
Select an organization to create your new project from