Skip to content

feat(drives): hide file names for screen sharing (#193817) - #610

Merged
mayoalexander merged 1 commit into
iris/1.18.23from
wt/193817-drives-hide-paths
Nov 18, 2026
Merged

mayoalexander merged 1 commit into
iris/1.18.23from
wt/193817-drives-hide-paths

Conversation

@mayoalexander

Copy link
Copy Markdown

Issue for this PR

Atlas ticket #193817 (not a GitHub issue). Threat follow-up from the Drives tab readiness review (#193705, PRs #602 and #608).

Type of change

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

What does this PR do?

The Drives tab lists sensitive files by path (.env files, credentials, database dumps), so a screen share, a screenshot or a film capture can show them. This adds Hide file names, an eye button in the tab's header:

  • Folders and files show only their kind ("Hidden db-dump file", "Hidden folder · mostly project"), plus size and found date. Drive names stay, because they're what people navigate by.
  • The detail sheet masks the path behind Reveal, for one finding at a time. Leaving the view or pressing Escape closes the sheet, so a revealed path never carries over to the next view.
  • Copy path still copies the real path. If the clipboard refuses, the fallback message doesn't print a hidden path.
  • Tooltips (title) are dropped while hidden, since they carried the path too.
  • The setting is remembered on this device (localStorage, wrapped for blocked storage) and starts off.

How did you verify your code works?

Drove the real panel in Chromium (this branch's UI via vite, against the compiled engine) with live data at 360px, checking the panel's whole HTML for path fragments at every step:

  • Hidden: no _IRIS_WORK, _LEGACY, _ARCHIVE or .sql anywhere in the panel, tooltips included.
  • Reveal shows that one path. Escape closes the sheet and the path is gone again.
  • Reveal, then switch to Folders: the sheet closes and nothing leaks. This failed on the first run and is fixed here.
  • After a reload the panel stays hidden. No overflow and no console errors.

Tests: packages/app session tests 995 pass, 1 fail. The failure is the enforced-schedule case in iris-heartbeats-model.test.ts, which fails the same way on iris/1.18.23. A new unit test checks a hidden row never shows a name or folder.

Screenshots / recordings

Captured on iris-hive-001. Not 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

An eye button in the Drives tab hides folder names, file names and paths;
rows show only the kind, size and date. The sheet reveals one path on
request, and leaving the view or pressing Escape hides it again. Copy path
still copies the real path; if the clipboard refuses, the fallback does not
print a hidden path. Drive names stay. Remembered on this device; off until
turned on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mayoalexander
mayoalexander merged commit 081a802 into iris/1.18.23 Nov 18, 2026
1 of 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