From 4518723b32a4faafaeeb6c4132aaa6c2b6270006 Mon Sep 17 00:00:00 2001
From: Mark Phelps <209477+markphelps@users.noreply.github.com>
Date: Thu, 21 Nov 2024 17:17:57 -0500
Subject: [PATCH] chore: adjust colors to be a bit more unique
Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com>
---
ui/src/components/node-panel.tsx | 40 +++++++++++++++--
ui/src/components/node.tsx | 4 +-
ui/src/index.css | 73 ++++++++++++--------------------
ui/src/lib/utils.ts | 18 ++++----
4 files changed, 74 insertions(+), 61 deletions(-)
diff --git a/ui/src/components/node-panel.tsx b/ui/src/components/node-panel.tsx
index c117768..6cd958e 100644
--- a/ui/src/components/node-panel.tsx
+++ b/ui/src/components/node-panel.tsx
@@ -1,7 +1,14 @@
import { PhaseNode } from '@/types/flow';
-import { Badge } from './ui/badge';
-import { Package, GitBranch, ChevronDown, ChevronUp } from 'lucide-react';
-import { getLabelColor } from '@/lib/utils';
+import {
+ Package,
+ GitBranch,
+ ChevronDown,
+ ChevronUp,
+ CheckCircle,
+ CircleArrowUp,
+ CircleAlert
+} from 'lucide-react';
+import { TooltipProvider, TooltipTrigger, Tooltip, TooltipContent } from '@/components/ui/tooltip';
import { Button } from './ui/button';
import { cn } from '@/lib/utils';
import { Label } from './label';
@@ -30,6 +37,33 @@ export function NodePanel({ node, isExpanded, onToggle }: NodePanelProps) {
{getIcon()}
{node.data.name}
+ {node.data.depends_on && node.data.depends_on !== '' && (
+ <>
+ {node.data.synced ? (
+
+
+
+
+
+
+ Up to Date
+
+
+
+ ) : (
+
+
+
+
+
+
+ Out of Sync
+
+
+
+ )}
+ >
+ )}