Leave a team, delete a vault; keep tests out of the real settings

- A hub test unset LUNE_HOME for the whole test run, so later tests saved
  into the real user's config. Tests now always keep their own settings
  folder.
- Leaving a team: `lunesync leave` and the app's Leave hand over and remove
  this device there; a hub that's gone can be forgotten (folders stay).
- Deleting a vault (owner): everyone is removed the usual way, the history
  is archived on the hub and the name is freed. Canvas asks first.
- Connect this Mac says what to do when Lune isn't installed.
- Update checks skip http hubs instead of failing for all of them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 14:36:46 +07:00
parent 7d1437e3ec
commit 4f6414b256
16 changed files with 278 additions and 10 deletions

View File

@@ -125,7 +125,7 @@ Lists each vault with its status, and anything that needs you:
- **A big change is waiting:** **Undo** brings back everything it removed or rewrote; **Share anyway** sends it.
- **A note may contain a secret:** type where the secret really lives and click **Replace**, or click **Not a secret**.
- **A note was changed in two places:** **Compare** shows both versions with the differences highlighted. Keep one, or keep both as separate notes.
- **Join another team:** add a second hub, such as your workplace's.
- **Join another team:** add a second hub, such as your workplace's. **Leave** next to a team removes this Mac from it (anything unshared is handed over first).
### The team canvas
@@ -133,7 +133,7 @@ Open it from the menu (**Open team canvas**), or with `lunesync open`. Managers
- **Grant:** drag a vault onto a person.
- **Revoke:** pull the ribbon between them until it snaps. You get an **Undo** for about 8 seconds; nothing reaches their devices before that.
- **Invite person**, change roles, rename devices, **Nudge** a device that's behind, tidy notes changed in two places, review **handovers**, and (team owner only) **Remove from team** or **Restore**.
- **Invite person**, **New vault**, **Delete vault…** (team owner; asks first, and the history stays archived on the hub), change roles, rename devices, **Nudge** a device that's behind, tidy notes changed in two places, review **handovers**, and (team owner only) **Remove from team** or **Restore**.
Every gesture also has a button in the side panel. Every access change is recorded in the hub's access log.
@@ -161,6 +161,8 @@ lunesync remove Alice --vault DevOps # her unshared work comes back as
lunesync handovers # then: lunesync handover show|keep|discard|skip <id>
lunesync device remove "Old laptop" # a lost device: hands over and leaves, then its key stops working
lunesync team remove Alice # owner only: ends everything, account can be restored
lunesync vault delete Sandbox --yes # owner only: everyone's copy goes, the history stays archived on the hub
lunesync leave --team work.example.com # this device leaves a team (add --forget if that hub is gone)
lunesync hub log # owner only: the access log
```