8000 feat(sync-ui): add the relay card to the sync devices page by ahmet-cetinkaya · Pull Request #351 · ahmet-cetinkaya/whph · GitHub
[go: up one dir, main page]

Skip to content

feat(sync-ui): add the relay card to the sync devices page - #351

Open
ahmet-cetinkaya wants to merge 4 commits into
feat/sync-relay-clientfrom
feat/sync-relay-ui
Open

ahmet-cetinkaya wants to merge 4 commits into
feat/sync-relay-clientfrom
feat/sync-relay-ui

Conversation

@ahmet-cetinkaya
@ahmet-cetinkaya ahmet-cetinkaya commented Dec 3, 2026 •
Copy link
Copy Markdown
Owner

Summary

Add the relay card to the sync devices page: a group member can add the group relay from an invitation, see how its last sessions went, and remove it.

Base

Built on feat/sync-relay-client (#350). This PR shows only its 4 commits. Retarget to main once #350 merges.

Changes

  • Relay card, shown only for a device that is in a group. Rows: address, last sync, relay behind (lost ranges), new keys pending, refused by the relay.
  • Invitation dialog. It checks the whph-relay://host:port/<token>#<fingerprint> format and hides what is typed, since it holds the token.
  • Removing the relay asks first. A failing add or remove shows an error message.
  • sync.relay.* texts in all 22 locales. The texts are not reviewed by native speakers.

Testing

  • Headless widget tests for the card and the dialog, including failing add and remove.
  • Sync UI tests and translation_analysis_test pass; flutter analyze is clean on the touched folders.
  • Not run: a check on a real device or screenshots.

The card adds a relay from its invitation text (host, port, token and the pinned
key fingerprint), shows its address, last sync and last result, and removes it
after a confirmation. It says when the relay lacks older changes of some
sources and when data waits for epoch keys that only a LAN session brings. A
relay that refuses the device is not shown as a device to pair again. All sync
locales carry the new texts.
The relay card sent both commands without the shared async error
handler, so a failing command escaped the button as an unhandled error
and the user saw nothing. Both now go through it with their own message
in all locales.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0