Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(tauri): new tunnel state api #1967

Merged
merged 17 commits into from
Jan 30, 2025
Merged

refactor(tauri): new tunnel state api #1967

merged 17 commits into from
Jan 30, 2025

Conversation

doums
Copy link
Contributor

@doums doums commented Jan 21, 2025

in short switch to the new tunnel state API

This introduces two new global statuses (user facing and relayed right into the UI):

  • Offline (aka "no host internet connection")
  • Error for tunnel state error

App is subscribing to rpc ListenToEvents and manages live tunnel state updates and mixnet events.
App queries the initial tunnel state from rpc GetTunnelState.
Any error sent from tunnel state, so Error(reason) will take precedence over any other errors in the UI.

NOTE this is a first iteration, the new tunnel state allow for new possible actions which are not part of this PR

This change is Reviewable

@doums doums force-pushed the pierre/tunnel_state branch 3 times, most recently from 88f4a3e to a8eb198 Compare January 22, 2025 22:48
@doums doums force-pushed the pierre/tunnel_state branch from be9ee77 to 38a0985 Compare January 22, 2025 23:35
@doums doums marked this pull request as ready for review January 24, 2025 15:58
@doums doums force-pushed the pierre/tunnel_state branch from 2ae3413 to 64bebc0 Compare January 29, 2025 14:54
refactor and cleanup errors
@doums doums force-pushed the pierre/tunnel_state branch from c595b1b to a8fba08 Compare January 29, 2025 18:16
@doums doums merged commit b3fed4e into develop Jan 30, 2025
8 of 9 checks passed
@doums doums deleted the pierre/tunnel_state branch January 30, 2025 12:07
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.

3 participants