Internet as a dependency: a node that can be needed, never judged down
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fca2dc0338
commit
7e625e7f42
11 files changed
+173
-22
No files matched your search
@@ -13,7 +13,7 @@ const COL_GAP = 120;
|
||||
const STATUS_SYMBOL: Record<DependencyGraphNode["status"], string> = { ok: "✓", bad: "✕", warn: "▲", unknown: "·" };
|
||||
const STATUS_WORD: Record<DependencyGraphNode["status"], string> = { ok: "working", bad: "problem", warn: "check", unknown: "no status" };
|
||||
|
||||
const KIND_LABEL: Record<DependencyGraphNode["type"], string> = { server: "Server", integration: "Integration", device: "Network device" };
|
||||
const KIND_LABEL: Record<DependencyGraphNode["type"], string> = { server: "Server", integration: "Integration", device: "Network device", internet: "Internet" };
|
||||
|
||||
interface Placed extends DependencyGraphNode {
|
||||
x: number;
|
||||
@@ -151,7 +151,7 @@ export default function DependencyMap() {
|
||||
<button
|
||||
key={n.key}
|
||||
type="button"
|
||||
className={`map-node map-node-${n.type === "server" ? "server" : n.type === "device" ? "device" : "monitor"} ${state(n.key)}`}
|
||||
className={`map-node map-node-${n.type === "server" ? "server" : n.type === "device" ? "device" : n.type === "internet" ? "internet" : "monitor"} ${state(n.key)}`}
|
||||
style={{ left: n.x, top: n.y, width: NODE_W, height: NODE_H, textAlign: "left" }}
|
||||
aria-pressed={selected === n.key}
|
||||
aria-label={`${KIND_LABEL[n.type]}: ${n.name}, ${STATUS_WORD[n.status]}. Show what depends on it.`}
|
||||
|
||||
Reference in new issue
Block a user