Skip to content

feat(ui): compact device header; collapsible, consistent Device section - #238

Merged
sergey-zededa merged 5 commits into
mainfrom
feat/device-section-redesign
Oct 27, 2026
Merged

sergey-zededa merged 5 commits into
mainfrom
feat/device-section-redesign

Conversation

@sergey-zededa

Copy link
Copy Markdown
Owner

Follow-up to #236 after looking at it in the app.

Header

The device details bar is now 36px, down from about 61px. Like the list view's 34px title bar, it sits level with the macOS traffic lights.

  • The back button is 28px and the header icons are smaller.
  • Long device names are cut off with "…".

Device section

It now has the same structure as EdgeView Session: a title row, a bordered card and a status grid.

  • Collapsed by default: the title row shows a one-line summary, e.g. EVE 14.5.2-lts · up 7h 29m · CPU 3.0% · Mem 2.6/7.6 GB. Expanded or collapsed is remembered per viewer.
  • Expanded: EVE, Uptime (Last boot when offline), Last reboot, CPU, Memory and Storage.
    • Each item is a label, a value and at most one muted sub-line. Values never wrap, and the details are in tooltips.
  • EVE value: the version without the platform suffix, e.g. 14.5.2-lts.
    • The sub-line is the partition, e.g. IMGA.
    • The tooltip shows the active and other partition with their versions.
    • An "update pending" hint appears only when relevant.

No duplicate workloads

The separate Workloads list is removed. Each Running Applications row shows its own CPU x% · used / allocated after the compose badges, matched by app id. A new useDeviceInfo hook fetches device info once per device for both places.

Testing

  • npm test -- --run: 184 passed. One full run first showed a timing flake in an unrelated existing test, "removes an unparseable line by its raw text"; it passed on rerun and when run alone.
  • npm run build passes.
  • Frontend only.
  • Not yet checked visually in the app.

🤖 Generated with Claude Code

- Device details bar is 36px (was ~61px), aligned with the traffic
  lights like the list view's 34px title bar: 28px back button, smaller
  header icons, long device names ellipsize.
- The Device section now uses the EdgeView Session structure (section
  title row, bordered card, status grid) and is collapsible, collapsed
  by default with a one-line summary (EVE, uptime, CPU, memory); the
  choice is remembered per viewer. Items keep a label + value + one
  sub-line rhythm and never wrap; detail moves into tooltips.
- EVE version drops the platform suffix (kvm-amd64 etc.) from the value;
  partition and the other partition's version move to the tooltip, with
  a small "update pending" hint only when relevant.
- The separate Workloads list is gone: each Running Applications row
  shows its own CPU and memory, matched by app id. Device info is
  fetched once per device by a useDeviceInfo hook shared by both.

Signed-off-by: sergey-zededa <sergey@zededa.com>
Wrapping tooltips were positioned inside their trigger without a width,
so they shrank to the trigger (often a short label like ENCRYPTION),
stacking one or two words per line and scrolling. They now size to
their text up to 320px (within the window).

The Encryption and Sessions tooltips are rewritten short: a heading
line, then one or two sentences.

Signed-off-by: sergey-zededa <sergey@zededa.com>
…ner scroll for normal text

Signed-off-by: sergey-zededa <sergey@zededa.com>
- Placement checked overflow against the window only, but inline
  tooltips are clipped by scrolling ancestors such as the device details
  pane, which starts below the title bar: a tooltip near the top of the
  pane fit the window and was cut off. Flip and horizontal shift now use
  the window narrowed by every clipping ancestor (visibleBounds), and
  when neither side fits the roomier one is used.
- The help-link variant reset white-space to normal, collapsing the
  text's line breaks ("Slot 1: free Slot 2: free"); it now keeps them.

Signed-off-by: sergey-zededa <sergey@zededa.com>
Device info and device configuration now share one "Device" section,
placed below EdgeView Session where users already expect the device
settings:

- EdgeView Session keeps its status grid and management IPs plus an
  EDGEVIEW actions row with the two EdgeView-specific controls, Enable
  Ext. Policy (EdgeView policy; the denial toast still flags it) and
  Collect Info (live session).
- Device: the title row with the summary toggles only the facts grid
  (collapsed by default); the CONFIGURATION chips (SSH key, VGA, USB,
  Console) and Authorized SSH Keys are always visible, still usable
  offline, and don't wait on the facts loading.
- The External Policy denial message now points to the EdgeView Session
  section instead of the former "Device Configuration below".

Signed-off-by: sergey-zededa <sergey@zededa.com>
@sergey-zededa
sergey-zededa merged commit 6c06126 into main Oct 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant