Repository navigation
feat(engine): group sync lists each person once, devices by kind; blocked phones fold away - #92
Merged
Merged
Conversation
…cked phones fold away One person often uses a phone, a tablet and a laptop, and each browser is its own device to sync, so The group filled with the same name and a planner blocked their own devices to tidy it. - A device says what kind it is (kit record: iPhone, iPad, Android, Huawei, Mac, Windows; home-screen app, Safari, Chrome, OPPO, Xiaomi, vivo, Huawei, Samsung, WeChat), sent with its name or a change only. - The group shows one entry per name, each device under it with its kind and last change. Roles, blocks and stops stay per device. - A planner's other device may take the planner's name once it has given the planner code; the refusal says so. - Blocked devices fold under Blocked phones (N) with Unblock inside, and the fold stays open across redraws. - A device telling its kind makes no toast; a planner who gave the code reads "is a planner now". ADR-20261002-sync-planners amended; guide, sync-setup skill and glossary updated.
Merged
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.
Why
One person often uses a phone, a tablet and a laptop, and every browser is its own device to sync (an iPhone's Safari and its home-screen copy are two). "The group" filled up with the same name, and a planner blocked their own devices to tidy it, which keeps those devices' changes to themselves. A planner's second device also couldn't take the planner's name, even once it was a planner.
What changes
kit:<device>, carries a kind from a fixed list (Sync.deviceKind): iPhone, iPad, Android, Huawei, Mac, Windows, Chromebook, Linux; home-screen app, Safari, Chrome, Firefox, Edge, Samsung Internet, Huawei, OPPO, Xiaomi or vivo Browser, WeChat. Never the browser's own description. Sent only with the device's name or a change, so a device that only reads stays off the list.Sync.byPerson). A person on several devices shows their name once, each device under it with its kind, its badges (This one, Planner), its added stops and its last change. Roles, blocks and stops stay per device: a name proves nothing.Docs
ADR-20261002-sync-planners gets a dated amendment (decision index regenerated);
guides/trip-page.md§ Group sync, thesync-setupskill and the glossary are updated. No database rule change: records stay opaque to it. Phones on an older build ignorekit:records.Tests
sync.specpasses on android-390, chromium-1280, webkit-390 and webkit-1280.pnpm verifyand tier 0 pass. Checked by eye at 390 px (WebKit) and desktop (Chromium), light and dark.