You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3ee1bf3
Browse filesBrowse the repository at this point in the historyBrowse files
Diskmap: fix the #59 QA pass; pie sectors brighten in place on hover
Correctness and safety
- StorageScan results keep their types in Lua: flags are booleans (a failed
command was truthy, and every scanned root was "partial"), counts are
integers, strings keep embedded NULs. Git state, Last opened and the
rebuildable totals work again.
- The collector and the Review sheet refuse Keychains, Preferences, Mail,
Messages, cloud roots, media libraries, other users' homes, /tmp and
/private/var, compared without case and through the root's links.
- A root that is a volume's mount point is capped at the space the volume
uses, so Preboot measures what Disk Utility shows.
Numbers and lists
- Unreadable counts agree; unreadable locations read "No access"; the Map
and Largest Items name their base; the Developer badge is its page's total.
- Simulators never show zeros while loading and keep their inventory between
visits; DerivedData's shared caches are not projects; projects show their
folder and skip tool folders; apps are named as Finder names them.
- Large Files opens on the files a person can act on and has empty states;
search narrows the Map's list; excluded media libraries are named on the
Overview and the setting is remembered.
Framework
- A raised SectorChart's hovered sector no longer lifts or slides: it takes
its color at full strength and steps away from the backdrop. Sectors.highlight
highlights a sector from code; selecting a list row points at its sector.
- A wrapped label is as tall as the lines its cell draws, so the last line
is no longer clipped.
- Table cells keep their symbol when a file has no known type.
Layout
- One legend column on the Overview, equal-height stat tiles, fixed icon
columns in Guide and Help, a Map that fits the narrowest window.
Closes#59
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: apps/diskmap/Diskmap.xcodeproj/project.pbxproj
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -268,7 +268,7 @@
268
268
);
269
269
runOnlyForDeploymentPostprocessing = 0;
270
270
shellPath = /bin/sh;
271
-
shellScript = "# Lua sources and app data are copied as trees, so new files need no project edit.\nset -e\nroot=\"$SRCROOT/../..\"\nresources=\"$TARGET_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH\"\ncopy() {\n\tmkdir -p \"$resources/$2\"\n\trsync -a --delete --prune-empty-dirs --exclude=Build/ --include='*/' --include='*.lua' --include='*.etlua' --include='*.bin' --exclude='*' \"$root/$1/\" \"$resources/$2/\"\n}\ncopy lua lua\ncopy apps/diskmap apps/diskmap\n";
271
+
shellScript = "# Lua sources and app data are copied as trees, so new files need no project edit.\nset -e\nroot=\"$SRCROOT/../..\"\nresources=\"$TARGET_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH\"\ncopy() {\n\tmkdir -p \"$resources/$2\"\n\trsync -a --delete --delete-excluded --prune-empty-dirs --exclude=Build/ --include='*/' --include='*.lua' --include='*.etlua' --include='*.bin' --exclude='*' \"$root/$1/\" \"$resources/$2/\"\n}\ncopy lua lua\ncopy apps/diskmap apps/diskmap\n";
Copy file name to clipboardExpand all lines: apps/diskmap/README.md
+22-15Lines changed: 22 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,8 +31,8 @@ the Developer category.
31
31
-**Largest Items** — the hundred largest measured locations across every
32
32
category, each with its semantic owner, cleanup status and share bar.
33
33
-**Large Files** — the individual files over 50 MB found by the same scan,
34
-
with when each was last used, filtered by All, Unused for a year, Installers &
35
-
archives and Media. Your own documents (not files inside ~/Library, hidden
34
+
with when each was last used, filtered by Yours (the files you can act on,
35
+
shown first), All, Unused for a year, Installers & archives and Media. Your own documents (not files inside ~/Library, hidden
36
36
tool folders or packages such as a Photos library) can be moved to the Trash
37
37
after confirmation.
38
38
-**File Types** — every measured byte grouped by kind (videos, disk images
@@ -54,7 +54,8 @@ the Developer category.
54
54
-**Map** — the same semantic tree as a raised (3D) sunburst or a squarified
55
55
treemap (segmented Rings / Rectangles), beside a list of the focused node's
56
56
children. Click a group to look inside, click the center or the breadcrumb
57
-
to go back, hover for the path, size and share. Colors are muted category
57
+
to go back, hover for the path, size and share; the hovered sector brightens in place, and
58
+
selecting a row in the list highlights its sector. Colors are muted category
58
59
colors that lighten with depth; hatching marks rebuildable data. "Worth a
59
60
look" lists the largest rebuildable resources under the focus.
60
61
-**Xcode** — Device Support per OS version (the newest per platform is
@@ -144,8 +145,13 @@ Applications, Xcode, Projects, Duplicates, Disks and Updates pages, or a drop on
144
145
the collector bar under every page, adds items to one basket;
145
146
marking never touches the disk. The Marked toolbar sheet lists them with their
146
147
consequences and moves them to the Trash one at a time, checking each again
147
-
first. It refuses the disk root, system folders, mount points and your home's
148
-
standard folders, and never follows symlinks. Sizes are measured again before
148
+
first. Marking and moving both refuse the disk root, system folders, mount
149
+
points, your home's standard folders, `/tmp` and `/private/var`, the shared
150
+
folder and other users' homes, the iCloud Drive and cloud storage roots, Photos,
151
+
Music and TV libraries, and anything in Keychains, Preferences, Mail, Messages,
152
+
Accounts, Cookies or `~/.ssh`. Paths are compared without regard to case and
153
+
through the root's links (`/tmp` is `/private/tmp`), and symlinks are never
154
+
followed. Sizes are measured again before
149
155
the move, and each item is checked just before it moves: one whose app is
150
156
running (Xcode for DerivedData, a browser for its cache, the parent app of a
151
157
helper), whose project file has gone, that was replaced since it was marked
@@ -166,13 +172,12 @@ watched folder that disappears stays listed as Missing, and a bookmark follows
166
172
it when it is moved or renamed.
167
173
168
174
Categories open their resources in a sheet with Safe/rebuildable, Needs review
169
-
and Essential to keep filters. Refresh, Stop, Clean Up, Settings and Search live
170
-
in the toolbar; search applies to the current page. The window subtitle shows
171
-
free space. `--page=<id>` (for example `--page=files`) opens a destination at
172
-
launch for screenshots and walkthroughs.
173
175
and Essential to keep filters. Back, Forward, Refresh, Stop, Clean Up,
174
176
Marked, Settings and Search live in the toolbar; search applies to the current
175
-
page. The window subtitle shows free and available space (available includes
177
+
page (on the Map it narrows the list beside the chart, which keeps the whole
178
+
level so its proportions stay true), and a search without matches says so.
179
+
`--page=<id>` (for example `--page=files`) opens a destination at launch for
180
+
screenshots and walkthroughs. The window subtitle shows free and available space (available includes
176
181
purgeable storage) and how many items are marked. Sidebar rows show sizes as
177
182
badges. The overview explains space no scan can attribute: purgeable storage,
178
183
local snapshots and unreadable locations. With **Keep storage history** on in
@@ -246,8 +251,7 @@ actions change only the provider's in-memory copy; restarting restores the
246
251
fixture. Finder, owner apps, System Settings and real device commands are not
247
252
launched. The real provider remains the default when the mock switch is absent.
248
253
249
-
Every launch starts a fresh inventory. The category list follows macOS Storage: Applications, Trash, Books, Developer, Documents, iCloud Drive, iOS Files, Mail, Messages, Music, Music Creation, Photos, Podcasts, TV, Other Users & Shared, macOS and System Data, plus AI agents and snapshot backups. Photos, Music, TV and known media support locations are excluded by default; opt in for the current session in Settings. Excluded sizes are unknown, never zero. Diskmap has no directory
250
-
argument or live scan-result cache. The explicit mock fixture is a synthetic
254
+
Every launch starts a fresh inventory. The category list follows macOS Storage: Applications, Trash, Books, Developer, Documents, iCloud Drive, iOS Files, Mail, Messages, Music, Music Creation, Photos, Podcasts, TV, Other Users & Shared, macOS and System Data, plus AI agents and snapshot backups. Photos, Music, TV and known media support locations are excluded by default, which the Overview says; Include media libraries in Settings measures them and is remembered between launches. Excluded sizes are unknown, never zero. The inventory always covers the whole startup disk (`--folder=<path>` only opens the Folder Map on a folder), and no live scan results are cached. The explicit mock fixture is a synthetic
251
255
filesystem for repeatable testing; use `--export-mock` to create a local snapshot
252
256
of this Mac.
253
257
@@ -265,9 +269,12 @@ resolved from installed application bundles, with a symbol fallback.
265
269
266
270
Every startup and refresh recalculates the inventory. Each pending category
267
271
shows a native spinner and “Calculating…” in place of its size, then displays
268
-
its fresh result once all of its locations finish. No scan results or diagnostics
269
-
are retained between launches. Only Keep choices, watched locations with their
270
-
last size and the background-check setting persist, in Diskmap's Application
272
+
its fresh result once all of its locations finish. No live scan results or
273
+
diagnostics are retained between launches. What persists is what you chose:
274
+
Keep choices, watched locations with their last size, the settings (background
275
+
checks, media libraries, storage history and notifications), folders added to
276
+
Projects, and, once you export a snapshot, that snapshot with its cached
277
+
per-location totals (`snapshot-summary`), in Diskmap's Application
271
278
Support folder (resolved by `NSFileManager`, so a sandboxed build uses its container).
272
279
273
280
Headless tests inject scanner results through the service interface, without
.. (filter=="Unused for a year" and" not opened or changed in a year" or"")
52
+
.. (filter=="Yours" and" you can move to the Trash" or"")
53
+
.. (query~="" and" matching the search" or"")
45
54
ifnotsummarythen
46
55
refs.summary.text="Measuring files… Large files appear when the scan finishes."
47
56
return
48
57
end
49
-
refs.summary.text=string.format("%d files over %s use %s%s.", summary.count, Model.size(Inventory.summary.minimumFileBytes),
58
+
refs.summary.text=string.format("%s over %s use %s%s.", Model.plural(Model.count(summary.count), "file"), Model.size(Inventory.summary.minimumFileBytes),
50
59
Model.size(summary.bytes), summary.partialand" · some locations could not be read" or"")
0 commit comments