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 01bfc6b
Browse filesBrowse the repository at this point in the historyBrowse files
fix(confirm): a sheet whose action is not a move to the Trash names that action on its OK button - Re-encode, Empty the Trash, Purge snapshots, Forget this copy, Run git gc, Move it, Approve (review F3.2 of QA third pass)
The shared confirm sheet's OK reads "Move to Trash", with the trash icon,
until a dialog relabels it, and every close puts that back. Seven sheets
never relabelled it, so each offered a recoverable "Move to Trash" for
something else: "Re-encode and replace?" (a lossy HEVC re-encode),
"Empty the Trash?" (beside "This empties the system Trash and cannot be
undone"), "Purge local snapshots?", "Forget this copy?", "Run git gc?",
"Move it somewhere safer?" (a move that deletes nothing) and the Autopilot
approval ("Let this policy delete on its own?").
setConfirmButton takes the icon as well as the label (the trash icon
stays the default), and each of those openers now sets its own: Re-encode
(video), Empty the Trash (trash), Purge snapshots (clock), Forget this
copy (trash), Run git gc (gitBranch), Move it (shield), Approve (check).
Tests: confirmFooter runs each of the seven openers out of the built page,
from the button as a close leaves it, and holds its OK to its own label
and icon; and an inventory of all 15 places that open the sheet, with the
label each shows, must account for every opening in the page, so a new
opener is a decision about its button rather than an inherited "Move to
Trash". Lifts that now meet setConfirmButton get a stub
(cleanUpModalHonesty, autopilotApprove; the encode lifts are awaited so a
missing dependency fails inside its own test), and the two open-file-guard
tests end their slice at "function setConfirmButton(", the landmark they
name, rather than at its old parameter list. Twelve hand mutants (each
opener's label removed, the icon ignored, the default icon changed, an
unlisted opening, a listed label changed, an opening dropped), all RED,
each file restored by SHA-256.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
? `Empty the system Trash?<br><span style="color:var(--text-3)">${escapeHtml(t.incompleteReason || 'TreeMap could not read the Trash, so it cannot say how much this frees.')} This cannot be undone.</span>`
const n = state.snapshots && state.snapshots.snapshots ? state.snapshots.snapshots.length : 0;
8406
8407
$('confirmTitle').innerHTML = icon('clock', 18) + 'Purge local snapshots?';
8407
8408
$('confirmText').innerHTML = `Delete <b>${formatCount(n)} local snapshot${n === 1 ? '' : 's'}</b>?<br><span style="color:var(--text-3)">This frees the space they hold. Time Machine will create fresh ones on the next backup.</span>`;
: `<b>${escapeHtml(policy.name)}</b>'s next run will remove what it matches ${scope}, up to <b>${formatBytes(run.bytesMatched)}</b>, once. ` +
27966
27969
`A later run that matches more than ${formatBytes(policy.requireConfirmationAbove || 0)} asks again.`) +
27967
27970
`<br><span style="color:var(--text-3)">Everything it removes is copied to the Time Capsule first, and a run can be undone from here until the Time Capsule removes its copies.</span>`;
$('confirmText').innerHTML = `Run <b>git gc --aggressive</b> on <b>${escapeHtml(name)}</b>?<br><span style="color:var(--text-3)">Safe — it compacts the repo without changing any commits. Large repos can take a while.</span>`;
? `Empty the system Trash?<br><span style="color:var(--text-3)">${escapeHtml(t.incompleteReason || 'TreeMap could not read the Trash, so it cannot say how much this frees.')} This cannot be undone.</span>`
const n = state.snapshots && state.snapshots.snapshots ? state.snapshots.snapshots.length : 0;
194
195
$('confirmTitle').innerHTML = icon('clock', 18) + 'Purge local snapshots?';
195
196
$('confirmText').innerHTML = `Delete <b>${formatCount(n)} local snapshot${n === 1 ? '' : 's'}</b>?<br><span style="color:var(--text-3)">This frees the space they hold. Time Machine will create fresh ones on the next backup.</span>`;
Copy file name to clipboardExpand all lines: src/ui/app/150-autopilot-tab.js
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -282,6 +282,7 @@ function approveAutopilotRun(runId) {
282
282
: `<b>${escapeHtml(policy.name)}</b>'s next run will remove what it matches ${scope}, up to <b>${formatBytes(run.bytesMatched)}</b>, once. ` +
283
283
`A later run that matches more than ${formatBytes(policy.requireConfirmationAbove || 0)} asks again.`) +
284
284
`<br><span style="color:var(--text-3)">Everything it removes is copied to the Time Capsule first, and a run can be undone from here until the Time Capsule removes its copies.</span>`;
$('confirmText').innerHTML = `Run <b>git gc --aggressive</b> on <b>${escapeHtml(name)}</b>?<br><span style="color:var(--text-3)">Safe — it compacts the repo without changing any commits. Large repos can take a while.</span>`;
0 commit comments