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

Improve messaging of "took too long" message #75

Merged
merged 2 commits into from
Aug 28, 2024
Merged

Conversation

gadenbuie
Copy link
Collaborator

@gadenbuie gadenbuie commented Aug 28, 2024

Updates the text of the message when we fail to connect to the Shiny app to say

Shiny app took longer than 10s to start so we have not opened the preview.

where we previously said

Shiny app took longer than 10s to start, not opening the browser.

which makes it sounds like Shiny didn't open the browser rather than "we're not going to open the preview".

Also while here I realized we could use progress bar incrementing to give a sense of how long we'll wait before giving up.

Kapture.2024-08-28.at.08.13.04.mp4

cc @karangattu

btw, @jcheng5 the example above shows why I changed the default wait back to 10s in #74. Notice that the Shiny app never starts in the clip. We can't detect this automatically, we have to wait for the app launch to timeout. So we now wait 10s the first time and 30s thereafter if the user says it's okay to keep waiting.

@gadenbuie gadenbuie requested a review from jcheng5 August 28, 2024 15:18
@gadenbuie gadenbuie merged commit 7cc3d79 into main Aug 28, 2024
3 checks passed
@gadenbuie gadenbuie deleted the chore/too-long-message branch August 28, 2024 15:27
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