Skip to content

Commit 8c54cb6

Browse files
authored
Chore/use default badge for paused state in project row (supabase#38191)
* Use default badge for pause state in project row * Tweak * Remove branching icon from project card and project table row
1 parent 7f0fee6 commit 8c54cb6

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

apps/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GitBranch, Github } from 'lucide-react'
1+
import { Github } from 'lucide-react'
22

33
import CardButton from 'components/ui/CardButton'
44
import { ComputeBadgeWrapper } from 'components/ui/ComputeBadgeWrapper'
@@ -62,11 +62,6 @@ export const ProjectCard = ({
6262
/>
6363
</div>
6464
)}
65-
{isBranchingEnabled && (
66-
<div className="w-fit p-1 border rounded-md flex items-center">
67-
<GitBranch size={12} strokeWidth={1.5} />
68-
</div>
69-
)}
7065
{isGithubIntegrated && (
7166
<>
7267
<div className="w-fit p-1 border rounded-md flex items-center">

apps/studio/components/interfaces/Home/ProjectList/ProjectCardStatus.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,13 @@ export const ProjectCardStatus = ({
142142
if (renderMode === 'badge') {
143143
const badgeVariant = isCritical
144144
? 'destructive'
145-
: projectStatus !== 'isHealthy'
145+
: activeWarnings.length > 0 ||
146+
projectStatus === 'isPauseFailed' ||
147+
projectStatus === 'isRestoreFailed'
146148
? 'warning'
147-
: activeWarnings.length > 0
148-
? 'warning'
149-
: 'success'
149+
: projectStatus === 'isHealthy'
150+
? 'success'
151+
: 'default'
150152

151153
return alertDescription ? (
152154
<Tooltip>

apps/studio/components/interfaces/Home/ProjectList/ProjectTableRow.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GitBranch, Github } from 'lucide-react'
1+
import { Github } from 'lucide-react'
22
import { useRouter } from 'next/router'
33
import InlineSVG from 'react-inlinesvg'
44

@@ -65,11 +65,6 @@ export const ProjectTableRow = ({
6565
/>
6666
</div>
6767
)}
68-
{isBranchingEnabled && (
69-
<div className="w-fit p-1 border rounded-md flex items-center">
70-
<GitBranch size={12} strokeWidth={1.5} />
71-
</div>
72-
)}
7368
{isGithubIntegrated && (
7469
<>
7570
<div className="w-fit p-1 border rounded-md flex items-center">

0 commit comments

Comments
 (0)