v0.6.11: Cairn confirm modal (#196) + folder picker for Move (#185) #198

Merged
Cordy merged 2 commits from ship-v0.6.11 into main 2026-08-11 23:09:38 +00:00
Owner

Two web-UI changes in web/static/index.html.

#196 — in-app confirm dialogs

Adds a confirmdlg <dialog> and an askConfirm(message) helper (Promise, modeled on the existing askName that already replaced prompt()), and swaps all six native confirm() calls — delete, trash purge, revoke share, revoke app password, peering revoke, peering remove — to await askConfirm(...). All six sites were already inside async handlers.

#185 — folder picker for Move

Adds a pickdlg <dialog> + pickFolder({title, start}) that navigates the caller's own tree (lists folders via /api/v1/files, .. to go up, "Select this folder" to choose). moveItem now opens the picker instead of askName-typing a destination path. Post-#177 the picker is naturally scoped to the caller's own home/spaces; legal holds on other users' data still take typed backend paths (the tracked #177 consequence).

New i18n key pickSelect (en/de/fr/it).

Validation

One-shot: node --check on the edited inline script (verified classic-JS syntax before and after), go vet ./..., go test ./..., dual-arch build (embeds the new index.html). No Go changed.

Closes #196. Closes #185.

Two web-UI changes in `web/static/index.html`. ## #196 — in-app confirm dialogs Adds a `confirmdlg` `<dialog>` and an `askConfirm(message)` helper (Promise<bool>, modeled on the existing `askName` that already replaced `prompt()`), and swaps all six native `confirm()` calls — delete, trash purge, revoke share, revoke app password, peering revoke, peering remove — to `await askConfirm(...)`. All six sites were already inside `async` handlers. ## #185 — folder picker for Move Adds a `pickdlg` `<dialog>` + `pickFolder({title, start})` that navigates the caller's own tree (lists folders via `/api/v1/files`, `..` to go up, "Select this folder" to choose). `moveItem` now opens the picker instead of `askName`-typing a destination path. Post-#177 the picker is naturally scoped to the caller's own home/spaces; legal holds on other users' data still take typed backend paths (the tracked #177 consequence). New i18n key `pickSelect` (en/de/fr/it). ## Validation One-shot: `node --check` on the edited inline script (verified classic-JS syntax before and after), `go vet ./...`, `go test ./...`, dual-arch build (embeds the new index.html). No Go changed. Closes #196. Closes #185.
add v0.6.11 one-shot: confirm modal (#196) + folder picker for Move (#185)
All checks were successful
ship-v0611 / ship (push) Successful in 35s
fe2899a948
v0.6.11: Cairn confirm modal (#196) + folder picker for Move (#185)
All checks were successful
ci / test-and-build (pull_request) Successful in 33s
efbc96b236
Cordy merged commit c225e4e26f into main 2026-08-11 23:09:38 +00:00
Cordy deleted branch ship-v0.6.11 2026-08-11 23:09:40 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#198
No description provided.