Skip to content

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

Hide GettingStarted if mature (#39582)

Saxon Fletcherd6f076bda7a5
diff --git a/apps/studio/components/interfaces/HomeNew/Home.tsx b/apps/studio/components/interfaces/HomeNew/Home.tsx
index 820fb1728ae..ffb9b1de5c8 100644
--- a/apps/studio/components/interfaces/HomeNew/Home.tsx
+++ b/apps/studio/components/interfaces/HomeNew/Home.tsx
@@ -1,3 +1,4 @@
+import dayjs from 'dayjs'
import { DndContext, DragEndEvent, PointerSensor, useSensor, useSensors } from '@dnd-kit/core'
import { arrayMove, SortableContext, verticalListSortingStrategy } from '@dnd-kit/sortable'
import { useEffect, useRef } from 'react'
@@ -26,6 +27,8 @@ export const HomeV2 = () => {
const { data: organization } = useSelectedOrganizationQuery()
const { mutate: sendEvent } = useSendEventMutation()
+ const isMatureProject = dayjs(project?.inserted_at).isBefore(dayjs().subtract(10, 'day'))
+
const hasShownEnableBranchingModalRef = useRef(false)
const isPaused = project?.status === PROJECT_STATUS.INACTIVE
@@ -103,8 +106,13 @@ export const HomeV2 = () => {
</SortableSection>
)
}
- if (id === 'getting-started') {
- return gettingStartedState === 'hidden' ? null : (
+ if (
+ id === 'getting-started' &&
+ !isMatureProject &&
+ project &&
+ gettingStartedState !== 'hidden'
+ ) {
+ return (
<SortableSection key={id} id={id}>
<GettingStartedSection
value={gettingStartedState}