Skip to content

feat(desktop): Drives tab in the IRIS panel, built for 360px (#193705) - #602

Merged
mayoalexander merged 4 commits into
iris/1.18.23from
wt/193705-drives-tab
Nov 18, 2026
Merged

mayoalexander merged 4 commits into
iris/1.18.23from
wt/193705-drives-tab

Conversation

@mayoalexander

Copy link
Copy Markdown

Issue for this PR

Atlas ticket #193705 (not a GitHub issue). Design study: heyiris.io/p/iris-drives-panel

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds a Drives tab to the IRIS panel, shown in the product bar after Browser. It lists the drives iris drives scan catalogued into Atlas, with each drive's project folders and the sensitive files a scan found.

The panel is 360px at minimum (iris-shell.tsx), and the existing full page (/p/iris-drives-files) needs ~824px across three columns. So this is a single-column drill-in, not that page shrunk down:

  • Level 1: every drive (used/size, encrypted, scan date, findings count; red only on unencrypted drives)
  • Level 2: one drive, with Folders / Findings / Info and chips to switch drive
  • Level 3: one folder's findings. A finding opens in a dismissible bottom sheet (path, size, Copy path, open the full page)

Engine (packages/opencode): GET /iris/drives returns drives + folders, and GET /iris/drives/findings?drive=&page= returns one drive's findings, 100 per page, filtered upstream with filter[drive_id]. Findings never block first paint. All three datasets are read under the Drives board (the drives schema's board), as the CLI does. The drive-findings schema row names a different board than the one its records are filed under. Atlas only: nothing reads the disk or opens a path.

States, each with one action: signed out, engine not answering, nothing catalogued, and a never-scanned or empty drive.

Keyboard: arrows, Enter, Escape (sheet/search), Backspace (back a level). Focus returns to the panel after a drill, never out of the chat box. Host theme tokens only; there is no prefers-color-scheme.

How did you verify your code works?

  • Ran this branch's UI (vite) against the compiled engine and drove the real panel in Chromium at exactly 360px and 460px, in dark and light themes. No horizontal overflow.
  • Drilled three levels and back by clicking, and again keyboard-only. The keyboard run caught a lost-focus bug, which is fixed here.
  • Rendered all four empty/error states by intercepting the route.
  • packages/app session tests: 993 pass, 1 fail. The failure (iris-heartbeats-model.test.ts, the enforced-schedule case) fails the same way on iris/1.18.23.
  • test/server/httpapi-iris-drives.test.ts: 4 pass. Dropping a field from the route Schema makes it fail.
  • The macOS test build (desktop-test-build run 44111069287) built successfully. It hasn't been opened in the packaged app on a Mac yet; the Mac was offline.

Screenshots / recordings

Captured at 360/460, dark/light, on iris-hive-001. They aren't attached because they show a real drive catalogue.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

🤖 Generated with Claude Code

mayoalexander and others added 4 commits November 17, 2026 02:51
…3705)

Reads the drives, drive-folders and drive-findings datasets from Atlas under
the Drives board, as the CLI does. Findings are paged per drive and filtered
upstream so the panel's first paint does not wait on hundreds of rows.
States: ok / signed_out / no_datasets / unreachable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One column, drill-in: every drive -> one drive (Folders / Findings / Info,
chips to switch drive) -> one folder's findings, with a dismissible sheet for
a finding. Findings load per drive on first need. Four states with one action
each: signed out, IRIS not answering, nothing catalogued, never-scanned or
empty drive. Keyboard: arrows, Enter, Escape, Backspace to go back. Host theme
tokens only. Shown in the bar after Browser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y where exposed (#193705)

Verified in the real panel at 360 and 460, dark and light: click and
keyboard-only drill to three levels and back, sheet open/dismiss, and all
four empty/error states.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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