The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore(studio): remove project usage settings callout (#45393)
Danny White5dee242aa3bd
diff --git a/apps/docs/content/troubleshooting/check-usage-for-monthly-active-users-mau-MwZaBs.mdx b/apps/docs/content/troubleshooting/check-usage-for-monthly-active-users-mau-MwZaBs.mdxindex 3f1f45e1d70..cfec63c4d4f 100644--- a/apps/docs/content/troubleshooting/check-usage-for-monthly-active-users-mau-MwZaBs.mdx+++ b/apps/docs/content/troubleshooting/check-usage-for-monthly-active-users-mau-MwZaBs.mdx@@ -7,7 +7,7 @@ keywords = [ "MAU", "Monthly active users" ]database_id = "1759134d-a98d-4bfa-9501-71e06180700e"----You can see the usage in your [projects usage page](https://app.supabase.com/project/_/settings/billing/usage).+You can view Monthly Active Users usage on the [organisation's usage page](/dashboard/org/_/usage). To view usage for a specific project, select it from the project dropdown.For MAU, we rely on the [Auth Server](https://github.com/supabase/auth) logs. MAU count is relative to your billing cycle and resets whenever your billing cycle resets. You can check your Auth logs in your [projects logs & analytics section](/dashboard/project/_/logs/auth-logs).diff --git a/apps/studio/components/interfaces/Settings/General/Project.test.tsx b/apps/studio/components/interfaces/Settings/General/Project.test.tsxindex 4f2c909fbda..eeb3ead7ee7 100644--- a/apps/studio/components/interfaces/Settings/General/Project.test.tsx+++ b/apps/studio/components/interfaces/Settings/General/Project.test.tsx@@ -4,17 +4,12 @@ import { beforeEach, describe, expect, it, vi } from 'vitest'import { Project } from './Project'-const {- mockUseIsFeatureEnabled,- mockUseProjectPauseStatusQuery,- mockUseSelectedOrganizationQuery,- mockUseSelectedProjectQuery,-} = vi.hoisted(() => ({- mockUseIsFeatureEnabled: vi.fn(),- mockUseProjectPauseStatusQuery: vi.fn(),- mockUseSelectedOrganizationQuery: vi.fn(),- mockUseSelectedProjectQuery: vi.fn(),-}))+const { mockUseIsFeatureEnabled, mockUseProjectPauseStatusQuery, mockUseSelectedProjectQuery } =+ vi.hoisted(() => ({+ mockUseIsFeatureEnabled: vi.fn(),+ mockUseProjectPauseStatusQuery: vi.fn(),+ mockUseSelectedProjectQuery: vi.fn(),+ }))vi.mock('next/link', () => ({default: ({ href, children }: { href: string; children: ReactNode }) => (@@ -68,10 +63,6 @@ vi.mock('@/hooks/misc/useIsFeatureEnabled', () => ({useIsFeatureEnabled: mockUseIsFeatureEnabled,}))-vi.mock('@/hooks/misc/useSelectedOrganization', () => ({- useSelectedOrganizationQuery: mockUseSelectedOrganizationQuery,-}))-vi.mock('@/hooks/misc/useSelectedProject', () => ({useSelectedProjectQuery: mockUseSelectedProjectQuery,}))@@ -84,10 +75,6 @@ describe('Project settings availability', () => {projectSettingsRestartProject: true,})- mockUseSelectedOrganizationQuery.mockReturnValue({- data: { slug: 'supabase' },- })-mockUseProjectPauseStatusQuery.mockReturnValue({data: undefined,isError: false,diff --git a/apps/studio/components/interfaces/Settings/General/Project.tsx b/apps/studio/components/interfaces/Settings/General/Project.tsxindex 80d94d6352f..28ed752273f 100644--- a/apps/studio/components/interfaces/Settings/General/Project.tsx+++ b/apps/studio/components/interfaces/Settings/General/Project.tsx@@ -1,4 +1,3 @@-import { BarChart2 } from 'lucide-react'import Link from 'next/link'import { Button, Card, CardContent } from 'ui'import {@@ -15,14 +14,11 @@ import RestartServerButton from './Infrastructure/RestartServerButton'import { ResumeProjectButton } from '@/components/interfaces/Project/ResumeProjectButton'import { useProjectPauseStatusQuery } from '@/data/projects/project-pause-status-query'import { useIsFeatureEnabled } from '@/hooks/misc/useIsFeatureEnabled'-import { useSelectedOrganizationQuery } from '@/hooks/misc/useSelectedOrganization'import { useSelectedProjectQuery } from '@/hooks/misc/useSelectedProject'import { PROJECT_STATUS } from '@/lib/constants'export const Project = () => {const { data: project } = useSelectedProjectQuery()- const { data: organization } = useSelectedOrganizationQuery()- const isBranch = Boolean(project?.parent_project_ref)const isPaused = project?.status === PROJECT_STATUS.INACTIVEconst { projectSettingsRestartProject } = useIsFeatureEnabled(['project_settings:restart_project',@@ -109,41 +105,6 @@ export const Project = () => {</Card></PageSectionContent></PageSection>-- {!isBranch && (- <PageSection>- <PageSectionMeta>- <PageSectionSummary>- <PageSectionTitle>Project usage</PageSectionTitle>- </PageSectionSummary>- </PageSectionMeta>- <PageSectionContent>- <Card>- <CardContent>- <div className="flex flex-col @lg:flex-row @lg:justify-between @lg:items-center gap-4">- <div className="flex space-x-4">- <BarChart2 strokeWidth={2} />- <div>- <p className="text-sm">Project usage statistics have moved</p>- <p className="text-foreground-light text-sm">- Project usage is now viewable within organization settings.- </p>- </div>- </div>-- {!!organization && !!project && (- <Button asChild type="default">- <Link href={`/org/${organization.slug}/usage?projectRef=${project.ref}`}>- View project usage- </Link>- </Button>- )}- </div>- </CardContent>- </Card>- </PageSectionContent>- </PageSection>- )}</>)}