Repository navigation
Start over at every place: WebDAV, S3, Git and a folder too - #378
Merged
Merged
Conversation
Joining a vault found at a place offered Start over here only where a person could not delete it by hand (Google Drive, OneDrive, Dropbox, iCloud, a server); WebDAV, S3, Git and a folder said how to do it by hand instead: stop syncing on every device, delete the shellwing folder, connect again. Now every place offers it, on the desktop, Android and iOS. The app does it better than a person can: it writes this vault's format.json first, so the devices still syncing the old vault stop and say so, rather than start one of their own in a folder emptied by hand while one of them still synced. It removes only shellwing's own files: every place keeps them in its `shellwing/` folder. UI tests: the folder's start over now goes through the join step, as a person does (the test-only entry is gone); WebDAV, S3 and Git offer it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a device connects to a place that already holds another vault, the join step offered Start over here only for Google Drive, OneDrive, Dropbox, iCloud and a shellwing server. For WebDAV, S3, Git and a folder it explained the manual steps instead: stop syncing on every device, delete the
shellwingfolder, then connect again. Now every place offers it, on the desktop, Android and iOS.Why the app should do it, even where a person can
Vault::start_over_atwrites this vault'sformat.jsonfirst, then removes the old vault's records, images and pairing. The devices still syncing the old vault find another vault there, stop, and say so. By hand, a device someone forgot to stop starts a vault of its own in the emptied folder.shellwing/: a folder's<folder>/shellwing, WebDAV's<address>/shellwing/, S3's<prefix>/shellwing/, Git'sshellwing/in the repository, and Android's folder through the Storage Access Framework.start_over_at, the mobile crate'sstart_over) already worked with any place. Only the three UIs held it back.Changes
ask_join_howalways offers Start over here. The test-onlyWorkspace::start_over_atis gone.SyncScreens.kt.SyncView.swift;hidden()is gone.Testing
cargo test --profile ui-tests -p shellwing --features ui-tests ui_tests::sync: 36 passed (Linux).every_place_offers_to_start_over(WebDAV, S3, Git).starting_over_removes_the_other_vault_therenow goes through the join step after choosing the folder, as a person does, and checks that the old vault is gone and this one is there.make lint,cargo clippy -p shellwing --features ui-tests --all-targets -- -D warnings,make androidhidden()helper.🤖 Generated with Claude Code