Skip to content

Commit 2efc072

Browse files
committed
add color coding legend
1 parent ff1e917 commit 2efc072

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

ui/src/components/GraphScreenBottomBar.vue

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ defineProps({
1212
<span class="flex font-semibold h-full invisible items-center mr-40 px-6">
1313
Kubernetes Explorer
1414
</span>
15+
1516
<div
1617
class="broder-box flex h-full hover:bg-base-300 hover:tooltip-open tooltip tooltip-top z-50"
1718
data-tip="Open web terminal"
@@ -26,6 +27,7 @@ defineProps({
2627
</span>
2728
</button>
2829
</div>
30+
2931
<div
3032
class="broder-box flex h-full hover:bg-base-300 hover:tooltip-open tooltip tooltip-top z-50"
3133
data-tip="Watch cluster events - Coming soon!"
@@ -40,7 +42,48 @@ defineProps({
4042
</button>
4143
</div>
4244

43-
<div class="ml-auto mr-1">
45+
<div
46+
class="broder-box flex h-full hover:bg-base-300 z-50"
47+
>
48+
<div class="dropdown dropdown-hover dropdown-top">
49+
<label
50+
tabindex="0"
51+
class="btn btn-ghost btn-xs gap-1 hover:opacity-100 hover:shadow-none normal-case opacity-70 rounded-none"
52+
>
53+
<div class="bg-[rgb(21,128,61)] border border-black h-4 rounded-sm w-4" />
54+
<div class="bg-[rgb(36,158,235)] border border-black h-4 rounded-sm w-4" />
55+
<div class="bg-[rgb(245,158,11)] border border-black h-4 rounded-sm w-4" />
56+
<div class="bg-[rgb(239,68,68)] border border-black h-4 rounded-sm w-4" />
57+
</label>
58+
<ul
59+
tabindex="0"
60+
class="-ml-[50%] bg-base-200 border border-neutral-content dropdown-content flex flex-col gap-y-1 p-2 px-3 rounded-md shadow-lg w-80 z-[50]"
61+
>
62+
<h2 class="font-semibold mb-2 text-base">
63+
Color coding of graph objects
64+
</h2>
65+
66+
<li class="flex items-center text-sm">
67+
<div class="bg-[rgb(21,128,61)] border border-black h-4 rounded-sm w-4" />&nbsp;- Recently created
68+
</li>
69+
<li class="flex items-center text-sm">
70+
<div class="bg-[rgb(36,158,235)] border border-black h-4 rounded-sm w-4" />&nbsp;- No change for last ~5 sec
71+
</li>
72+
<li class="flex items-center text-sm">
73+
<div class="bg-[rgb(245,158,11)] border border-black h-4 rounded-sm w-4" />&nbsp;- Recently updated
74+
</li>
75+
<li class="flex items-center text-sm">
76+
<div class="bg-[rgb(239,68,68)] border border-black h-4 rounded-sm w-4" />&nbsp;- Deletion timestamp is set
77+
</li>
78+
79+
<p class="mt-2 text-sm">
80+
Objects are removed from the graph ~5 sec after they disappear from the API response.
81+
</p>
82+
</ul>
83+
</div>
84+
</div>
85+
86+
<div class="ml-auto mr-2">
4487
<a
4588
target="_blank"
4689
href="https://github.com/iximiuz/kexp"

0 commit comments

Comments
 (0)