Skip to content

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

Use green for notebook status indicator if new (#50167)

Joshen Lim86f7d245f871
diff --git a/apps/studio/components/interfaces/Explorer/ExplorerNotebookTabCoordinator.tsx b/apps/studio/components/interfaces/Explorer/ExplorerNotebookTabCoordinator.tsx
index 482a48f6c20..12a300d25ff 100644
--- a/apps/studio/components/interfaces/Explorer/ExplorerNotebookTabCoordinator.tsx
+++ b/apps/studio/components/interfaces/Explorer/ExplorerNotebookTabCoordinator.tsx
@@ -1,6 +1,7 @@
import { useQueryClient } from '@tanstack/react-query'
import { useParams } from 'common'
import { useContext, useEffect } from 'react'
+import { cn } from 'ui'
import type { Snapshot } from 'valtio'
import {
@@ -35,11 +36,18 @@ const NotebookTabStatusIndicator = ({ tab }: { tab: Tab }) => {
if (!isNotebookTabDirty({ stateNotebook, ref, notebookId })) return null
+ const isNewNotebook = ['new', 'new_saving', 'new_save_failed'].includes(
+ stateNotebook?.status ?? ''
+ )
+
return (
<span
role="img"
aria-label="Unsaved changes"
- className="block size-2 shrink-0 rounded-full bg-warning"
+ className={cn(
+ 'block size-2 shrink-0 rounded-full',
+ isNewNotebook ? 'bg-brand-600' : 'bg-warning'
+ )}
/>
)
}