Add script status to sidebar and title

This commit is contained in:
Sam Heinz
2025-01-09 21:33:11 +10:00
parent 19aa2a50a2
commit db714e86ea
4 changed files with 3 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 74 KiB

View File

@@ -117,7 +117,7 @@ export default function ScriptAccordion({
className="mr-1 w-4 h-4 rounded-full"
/>
<span className="flex items-center gap-2">
{script.name}
{script.status} {script.name}
</span>
</div>
{formattedBadge(script.type)}

View File

@@ -55,7 +55,7 @@ function ScriptItem({
<div className="flex h-full w-full flex-col justify-between">
<div>
<h1 className="text-lg font-semibold">
{item.name} {getDisplayValueFromType(item.type)}
{item.status} {item.name} {getDisplayValueFromType(item.type)}
</h1>
<p className="w-full text-sm text-muted-foreground">
Date added: {extractDate(item.date_created)}

View File

@@ -34,6 +34,7 @@ export type Script = {
type: keyof typeof AlertColors;
},
];
status: string;
};
export type Category = {