Skip to content

feat: drive-type icons and live refresh when drives change - #133

Merged
nextestudios merged 1 commit into
mainfrom
feature/25-drive-icons
Sep 27, 2026
Merged

nextestudios merged 1 commit into
mainfrom
feature/25-drive-icons

Conversation

@nextestudios

Copy link
Copy Markdown
Owner

Summary

  • Drive entries now carry a DriveKind (fixed, removable/USB, optical, network). Home rows show a distinct fallback glyph (hard drive, USB, optical disc, mapped drive) until the shell icon from feat: integrate native Windows file and folder icons #24 loads, a type name ("Unidade removível (USB)", …) and Narrator reads the type.
  • Label, letter and free/total space stay in the detail; the folder picker's "Ir para outro local" shows the same type text.
  • DriveWatcher (Infrastructure.Windows) polls drive letters and types every 2 s (readiness only for removable/optical; network drives are never probed so they can't hang). MainWindow marshals changes to AppController.RefreshDrives(), which rebuilds the places keeping the focus on the same place by id. Favorites on a returning drive become available again.

Tests

  • CI (unit): journey test — a drive "plugged" before the focused one appears and the focus stays; removing the focused one leaves a valid focus.
  • CI (Windows integration): maps a subst drive while the watcher runs, waits for Changed and checks it is listed as a drive with its kind.
  • Manual (docs/TESTING.md): real USB stick plug/unplug, card reader, optical disc, mapped network drive, Narrator.

Closes #25

🤖 Generated with Claude Code

- DriveKind on drive entries (fixed, removable/USB, optical, network) with a
  distinct fallback glyph, type text and Narrator name; the shell icon still
  replaces the glyph when it loads.
- DriveWatcher polls drive letters/types (and readiness of removable and
  optical drives only) and the home list refreshes without restarting,
  keeping the focus on the same place.
- Journey test for the refresh and a Windows integration test that maps a
  subst drive while the watcher runs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nextestudios
nextestudios merged commit ee3ead5 into main Sep 27, 2026
1 check passed
@nextestudios
nextestudios deleted the feature/25-drive-icons branch September 27, 2026 04:36
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.

feat: show drive-type icons for fixed, USB, optical and network drives

1 participant