Commit 999f4ac
feat(network): single Node Identity filter + selectable edge-colour modes (#556)
Node Types filter (#499/#537 follow-up): the panel rendered two overlapping
taxonomies (nodeType + deviceType) side by side, so Router, Web Server, DNS
Server and Unknown each appeared twice. Collapse them into one taxonomy keyed
on the adjudicated identity via a new nodeIdentityKey() (identityLabel →
deviceType → L2_DEVICE → UNKNOWN), rename the section to "Node Identity", and
switch every filter site to a single id: key namespace. Mobile/IoT/Laptop now
stay distinct (finer than the rendered nodeType, which collapses them to
"client").
Edge colour: the old "Protocol"/"Volume" toggle becomes Transport /
Application / Volume in the same "Color edges by" dropdown.
- Transport: base protocol (TCP/UDP/ICMP…), the previous behaviour.
- Application: the nDPI application (WhatsApp, YouTube…) via getAppColor, with
a matching legend (buildAppLegend); flows with no identified app fall to the
grey "Other" bucket. This fixes edges reading as grey TCP when the identity
lived only in appName.
UI fixes:
- Dark mode: contested "confirm" buttons (outline-primary on a warning alert)
kept their unreadable purple; give outline-primary buttons inside alerts a
legible light foreground in dark mode.
- Monitor: the snapshot-detail network diagram gains a fullscreen button like
the analysis diagram, using an over-modal z-index variant so it stacks above
the dialog, with Escape-to-exit and tab-change cleanup.
Tests: nodeIdentityKey resolution/dedup and buildAppLegend.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 9dc3573 commit 999f4ac
13 files changed
Lines changed: 296 additions & 150 deletions
File tree
- frontend/src
- assets/styles
- components
- monitor/SnapshotDetailModal
- network
- NetworkControls
- NetworkGraph
- features/network
- __tests__
- services
- pages
- Compare
- NetworkDiagram
- NetworkIntelligence
- utils
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
403 | 419 | | |
404 | 420 | | |
405 | 421 | | |
| |||
Lines changed: 38 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
143 | | - | |
| 144 | + | |
| 145 | + | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
| |||
203 | 205 | | |
204 | 206 | | |
205 | 207 | | |
206 | | - | |
207 | | - | |
| 208 | + | |
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
| |||
278 | 279 | | |
279 | 280 | | |
280 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
281 | 291 | | |
282 | 292 | | |
283 | 293 | | |
| |||
288 | 298 | | |
289 | 299 | | |
290 | 300 | | |
291 | | - | |
| 301 | + | |
292 | 302 | | |
293 | | - | |
294 | | - | |
| 303 | + | |
| 304 | + | |
295 | 305 | | |
296 | | - | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
297 | 310 | | |
298 | 311 | | |
299 | 312 | | |
| |||
514 | 527 | | |
515 | 528 | | |
516 | 529 | | |
517 | | - | |
| 530 | + | |
518 | 531 | | |
519 | 532 | | |
520 | 533 | | |
| |||
548 | 561 | | |
549 | 562 | | |
550 | 563 | | |
551 | | - | |
| 564 | + | |
552 | 565 | | |
553 | 566 | | |
554 | 567 | | |
555 | | - | |
| 568 | + | |
| 569 | + | |
556 | 570 | | |
557 | 571 | | |
558 | 572 | | |
| |||
593 | 607 | | |
594 | 608 | | |
595 | 609 | | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
596 | 619 | | |
597 | | - | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
598 | 624 | | |
599 | 625 | | |
600 | 626 | | |
| |||
948 | 974 | | |
949 | 975 | | |
950 | 976 | | |
951 | | - | |
952 | | - | |
| 977 | + | |
953 | 978 | | |
954 | 979 | | |
955 | 980 | | |
| |||
Lines changed: 22 additions & 45 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
52 | | - | |
| 50 | + | |
| 51 | + | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| |||
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 106 | | |
114 | 107 | | |
115 | 108 | | |
| |||
126 | 119 | | |
127 | 120 | | |
128 | 121 | | |
129 | | - | |
130 | | - | |
| 122 | + | |
131 | 123 | | |
132 | 124 | | |
133 | 125 | | |
| |||
208 | 200 | | |
209 | 201 | | |
210 | 202 | | |
211 | | - | |
212 | | - | |
213 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
214 | 210 | | |
| 211 | + | |
215 | 212 | | |
216 | 213 | | |
217 | 214 | | |
| |||
385 | 382 | | |
386 | 383 | | |
387 | 384 | | |
388 | | - | |
389 | | - | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
390 | 388 | | |
391 | | - | |
| 389 | + | |
392 | 390 | | |
393 | 391 | | |
394 | | - | |
395 | | - | |
396 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
397 | 395 | | |
398 | 396 | | |
399 | 397 | | |
| |||
404 | 402 | | |
405 | 403 | | |
406 | 404 | | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
| 405 | + | |
| 406 | + | |
430 | 407 | | |
431 | | - | |
| 408 | + | |
432 | 409 | | |
433 | 410 | | |
434 | 411 | | |
| |||
442 | 419 | | |
443 | 420 | | |
444 | 421 | | |
445 | | - | |
| 422 | + | |
446 | 423 | | |
447 | 424 | | |
448 | 425 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
Lines changed: 24 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | | - | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
354 | 355 | | |
355 | 356 | | |
356 | 357 | | |
357 | | - | |
| 358 | + | |
358 | 359 | | |
359 | 360 | | |
360 | 361 | | |
| |||
402 | 403 | | |
403 | 404 | | |
404 | 405 | | |
| 406 | + | |
405 | 407 | | |
406 | 408 | | |
407 | 409 | | |
408 | 410 | | |
409 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
410 | 414 | | |
411 | 415 | | |
412 | 416 | | |
| |||
416 | 420 | | |
417 | 421 | | |
418 | 422 | | |
| 423 | + | |
419 | 424 | | |
420 | 425 | | |
421 | 426 | | |
| |||
480 | 485 | | |
481 | 486 | | |
482 | 487 | | |
483 | | - | |
| 488 | + | |
484 | 489 | | |
485 | 490 | | |
486 | 491 | | |
| |||
557 | 562 | | |
558 | 563 | | |
559 | 564 | | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
570 | 574 | | |
571 | 575 | | |
572 | 576 | | |
| |||
948 | 952 | | |
949 | 953 | | |
950 | 954 | | |
951 | | - | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
952 | 960 | | |
953 | 961 | | |
954 | 962 | | |
| |||
0 commit comments