Skip to content

fix: start coder connect progress indicator immediately #214

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 1 commit into from
Aug 6, 2025

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Aug 4, 2025

With the changes made in #203, it now takes a moment longer to receive the first progress update, when we either start the download (if not already downloaded), or validate the dylib. To address this, the progress indicator will immediately start making progress towards 25%. This prevents it from appearing stuck in what is an expected situation.

autoStartDemo.mov

@ethanndickson ethanndickson force-pushed the ethan/validate-slim-binary-version branch from ab9ca27 to 50e4a63 Compare August 4, 2025 09:42
@ethanndickson ethanndickson force-pushed the ethan/progress-auto-start branch from df10a17 to 60f8964 Compare August 4, 2025 09:42
@ethanndickson ethanndickson marked this pull request as ready for review August 4, 2025 09:46
@ethanndickson ethanndickson self-assigned this Aug 4, 2025
@ethanndickson ethanndickson force-pushed the ethan/progress-auto-start branch from 60f8964 to acf0aeb Compare August 4, 2025 12:53
@ethanndickson ethanndickson force-pushed the ethan/validate-slim-binary-version branch from 50e4a63 to 8fb9382 Compare August 4, 2025 12:53
@ethanndickson ethanndickson force-pushed the ethan/progress-auto-start branch from acf0aeb to f3468db Compare August 5, 2025 04:51
@ethanndickson ethanndickson force-pushed the ethan/validate-slim-binary-version branch from 8fb9382 to 431149f Compare August 5, 2025 04:51
@ethanndickson ethanndickson force-pushed the ethan/progress-auto-start branch from f3468db to d04e73f Compare August 6, 2025 02:24
@ethanndickson ethanndickson force-pushed the ethan/validate-slim-binary-version branch from 431149f to 8fceeab Compare August 6, 2025 02:24
@ethanndickson ethanndickson requested a review from Copilot August 6, 2025 03:28
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a UX issue where the coder connect progress indicator appears stuck at the beginning of the process by implementing an immediate auto-start animation that progresses to 25% over 2 seconds.

  • Adds an autoStart feature to CircularProgressView that begins animating immediately when the initial value is 0
  • Updates the VPN progress mapping to accommodate the new auto-start behavior and adjusts thresholds accordingly
  • Modifies the auto-complete threshold from 50% to 65% to account for the updated progress ranges

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
CircularProgressView.swift Adds auto-start functionality with state management and animation logic
VPNProgress.swift Updates progress mapping values and configures auto-start behavior

@ethanndickson ethanndickson force-pushed the ethan/validate-slim-binary-version branch from 8fceeab to 62c3d0a Compare August 6, 2025 03:37
@ethanndickson ethanndickson force-pushed the ethan/progress-auto-start branch from d04e73f to 0dc424c Compare August 6, 2025 03:38
Copy link
Member Author

ethanndickson commented Aug 6, 2025

Merge activity

  • Aug 6, 3:39 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Aug 6, 3:54 AM UTC: Graphite rebased this pull request as part of a merge.
  • Aug 6, 3:56 AM UTC: @ethanndickson merged this pull request with Graphite.

@ethanndickson ethanndickson changed the base branch from ethan/validate-slim-binary-version to graphite-base/214 August 6, 2025 03:51
@ethanndickson ethanndickson changed the base branch from graphite-base/214 to main August 6, 2025 03:53
@ethanndickson ethanndickson force-pushed the ethan/progress-auto-start branch from 0dc424c to 41ff4aa Compare August 6, 2025 03:54
@ethanndickson ethanndickson merged commit 8d9f844 into main Aug 6, 2025
4 checks passed
@ethanndickson ethanndickson deleted the ethan/progress-auto-start branch August 6, 2025 03:56
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