mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-13 08:15:21 +02:00
chore: UI enhancements for workflow runs view (#142)
* add local state in filters * feat: add sorting feature by duration * chore: refactor workfow run view
This commit is contained in:
parent
6827744327
commit
5fe1c8ce2f
23 changed files with 1014 additions and 479 deletions
|
|
@ -1,17 +0,0 @@
|
|||
// Color variants for disposition code
|
||||
export const getDispositionBadgeVariant = (code: string | undefined): "default" | "secondary" | "destructive" | "outline" | "success" => {
|
||||
if (!code) return "outline";
|
||||
|
||||
const upperCode = code.toUpperCase();
|
||||
switch (upperCode) {
|
||||
case "XFER":
|
||||
return "success"; // Green color for transfers
|
||||
case "HU":
|
||||
case "NIBP":
|
||||
return "destructive"; // Red color for hang up and NIBP
|
||||
case "VM":
|
||||
return "secondary";
|
||||
default:
|
||||
return "default"; // Default color for all other codes
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue