Skip to content
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Badge} from '@/components/ui/badge';
import Badge from '@/components/Badge/Badge';
import {Type} from '@/pages/automation/project-deployments/ProjectDeployments';
import {Project, Tag} from '@/shared/middleware/automation/configuration';
import {ReactNode} from 'react';
Expand Down Expand Up @@ -32,9 +32,7 @@ const ProjectDeploymentFilterTitle = ({
{searchParams.get('tagId') ? 'tag' : 'project'}:
</span>

<Badge variant="secondary">
<span className="text-sm">{pageTitle ?? 'All Projects'}</span>
</Badge>
<Badge label={`${pageTitle ?? 'All Projects'}`} styleType="secondary-filled" weight="semibold" />
</div>
);
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Badge from '@/components/Badge/Badge';
import LoadingIcon from '@/components/LoadingIcon';
import {Badge} from '@/components/ui/badge';
import {CollapsibleTrigger} from '@/components/ui/collapsible';
import {Switch} from '@/components/ui/switch';
import {Tooltip, TooltipContent, TooltipTrigger} from '@/components/ui/tooltip';
Expand Down Expand Up @@ -143,7 +143,11 @@ const ProjectDeploymentListItem = ({projectDeployment, remainingTags}: ProjectDe
<div className="flex items-center justify-end gap-x-6">
<Tooltip>
<TooltipTrigger asChild>
<Badge variant="secondary">V{projectDeployment.projectVersion}</Badge>
<Badge
label={`V${projectDeployment.projectVersion}`}
styleType="secondary-filled"
weight="semibold"
/>
</TooltipTrigger>

<TooltipContent>The project version</TooltipContent>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Badge from '@/components/Badge/Badge';
import {Accordion, AccordionContent, AccordionItem, AccordionTrigger} from '@/components/ui/accordion';
import {Badge} from '@/components/ui/badge';
import {Sheet, SheetCloseButton, SheetContent, SheetHeader, SheetTitle} from '@/components/ui/sheet';
import {ProjectStatus, ProjectVersion} from '@/shared/middleware/automation/configuration';

Expand Down Expand Up @@ -51,16 +51,18 @@ const ProjectVersionHistorySheet = ({
)}

<Badge
variant={
label={
projectVersion.status === ProjectStatus.Published
? 'success'
: 'secondary'
? 'Published'
: 'Draft'
}
>
{projectVersion.status === ProjectStatus.Published
? `Published`
: 'Draft'}
</Badge>
styleType={
projectVersion.status === ProjectStatus.Published
? 'success-outline'
: 'secondary-filled'
}
weight="semibold"
/>
</div>
</div>
</AccordionTrigger>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Badge} from '@/components/ui/badge';
import Badge from '@/components/Badge/Badge';
import {Tooltip, TooltipContent, TooltipTrigger} from '@/components/ui/tooltip';
import {Project, ProjectStatus} from '@/shared/middleware/automation/configuration';

Expand All @@ -13,8 +13,11 @@ const ProjectTitle = ({project}: {project: Project}) => {

{project && (
<Badge
className="flex space-x-1 bg-white"
variant={project.lastStatus === ProjectStatus.Published ? 'success' : 'outline'}
className="flex space-x-1 bg-surface-neutral-primary"
styleType={
project.lastStatus === ProjectStatus.Published ? 'success-outline' : 'outline-outline'
}
weight="semibold"
>
<span>V{project.lastProjectVersion}</span>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Badge} from '@/components/ui/badge';
import Badge from '@/components/Badge/Badge';
import {Separator} from '@/components/ui/separator';
import {Tooltip, TooltipContent, TooltipTrigger} from '@/components/ui/tooltip';
import WorkflowsListItem from '@/pages/automation/project/components/projects-sidebar/components/WorkflowsListItem';
Expand Down Expand Up @@ -53,15 +53,16 @@ const ProjectWorkflowsList = ({
</Tooltip>

{project.lastPublishedDate && project.lastProjectVersion ? (
<Badge className="flex space-x-1" variant="success">
<Badge className="flex space-x-1" styleType="success-outline" weight="semibold">
<span>V{project.lastProjectVersion - 1}</span>

<span>PUBLISHED</span>
</Badge>
) : (
<Badge
className="flex space-x-1 bg-surface-neutral-secondary text-content-neutral-primary"
variant="secondary"
styleType="secondary-filled"
weight="semibold"
>
<span>V{project.lastProjectVersion}</span>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Badge} from '@/components/ui/badge';
import Badge from '@/components/Badge/Badge';
import {Type} from '@/pages/automation/projects/Projects';
import {Category, Tag} from '@/shared/middleware/automation/configuration';
import {ReactNode} from 'react';
Expand Down Expand Up @@ -27,9 +27,7 @@ const ProjectsFilterTitle = ({
<div className="space-x-1">
<span className="text-sm uppercase text-muted-foreground">{`Filter by ${searchParams.get('tagId') ? 'tag' : 'category'}:`}</span>

<Badge variant="secondary">
<span className="text-sm">{pageTitle ?? 'All Categories'}</span>
</Badge>
<Badge label={`${pageTitle ?? 'All Categories'}`} styleType="secondary-filled" weight="semibold" />
</div>
);
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import '@/shared/styles/dropdownMenu.css';
import Badge from '@/components/Badge/Badge';
import Button from '@/components/Button/Button';
import {
AlertDialog,
Expand All @@ -10,7 +11,6 @@ import {
AlertDialogHeader,
AlertDialogTitle,
} from '@/components/ui/alert-dialog';
import {Badge} from '@/components/ui/badge';
import {ButtonGroup} from '@/components/ui/button-group';
import {CollapsibleTrigger} from '@/components/ui/collapsible';
import {
Expand Down Expand Up @@ -342,7 +342,7 @@ const ProjectListItem = ({project, projectGitConfiguration, remainingTags}: Proj
<div className="flex items-center space-x-2">
{project.lastPublishedDate && project.lastProjectVersion ? (
<>
<Badge className="flex space-x-1" variant="success">
<Badge className="flex space-x-1" styleType="success-outline" weight="semibold">
<span>V{project.lastProjectVersion - 1}</span>

<span>PUBLISHED</span>
Expand All @@ -365,7 +365,7 @@ const ProjectListItem = ({project, projectGitConfiguration, remainingTags}: Proj
{/*/>*/}
</>
) : (
<Badge className="flex space-x-1" variant="secondary">
<Badge className="flex space-x-1" styleType="secondary-filled" weight="semibold">
<span>V{project.lastProjectVersion}</span>

<span>{project.lastStatus}</span>
Expand Down
Loading