Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add progress messages when creating sync sessions #139

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

Merged
merged 5 commits into from
May 1, 2025

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Apr 23, 2025

This loading might take a minute on a poor connection, and there's currently no feedback indicating what's going on, so we can display the prompt messages in the meantime.

i.e. setting up a workspace with a fair bit of latency:

createsyncprogress.mov

This PR also contains a small refactor for the Agent primaryHost, removing all the subsequent nil checks as we know it exists on creation.

Copy link
Member Author

ethanndickson commented Apr 23, 2025

@ethanndickson ethanndickson marked this pull request as ready for review April 23, 2025 03:57
@@ -69,6 +68,9 @@ struct VPNMenuState {
invalidAgents.append(agent)
return
}
// Remove trailing dot if present
let nonEmptyHosts = agent.fqdn.map { $0.hasSuffix(".") ? String($0.dropLast()) : $0 }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The array being non-empty is checked above.

@ethanndickson
Copy link
Member Author

I redid it using a callback instead of some global state, and added a progressview:
image

Copy link
Member Author

ethanndickson commented May 1, 2025

Merge activity

  • Apr 30, 10:18 PM EDT: A user started a stack merge that includes this pull request via Graphite.
  • Apr 30, 10:20 PM EDT: Graphite rebased this pull request as part of a merge.
  • Apr 30, 10:20 PM EDT: @ethanndickson merged this pull request with Graphite.

@ethanndickson ethanndickson changed the base branch from ethan/workspace-apps to graphite-base/139 May 1, 2025 02:18
@ethanndickson ethanndickson changed the base branch from graphite-base/139 to main May 1, 2025 02:19
@ethanndickson ethanndickson force-pushed the ethan/sync-progress branch from 101baae to ea2c8a0 Compare May 1, 2025 02:19
@ethanndickson ethanndickson merged commit 6210775 into main May 1, 2025
4 checks passed
@ethanndickson ethanndickson deleted the ethan/sync-progress branch May 1, 2025 02:20
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.

2 participants