Repository navigation
Conversation
…n tooltip Signed-off-by: Ym <173550318+MaxonT@users.noreply.github.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi, this adds a link to the networking troubleshooting docs in the slow-connection tooltip, so someone seeing that warning can click straight through to the help page.
Fixes #1217
Thanks for scoping this so precisely in the issue, including which docs section fits a relay and what to do for direct connections; the change follows it directly.
While the slow-connection warning is active, the status bar tooltip now ends its action row with a Troubleshooting guide link, next to the latency test, network check and threshold actions:
network.p2pfalse):https://coder.com/docs/admin/networking/troubleshooting#common-problems-with-direct-connectionsThe link is inside the same
isWarningActivebranch as the other actions, so it does not appear without the warning. It is a plain https link, soTOOLTIP_COMMANDSis unchanged. I added an Unreleased entry toCHANGELOG.md.Tests in
test/unit/remote/networkStatus.test.ts: the existing slow-connection test now checks the direct link and the non-warning test checks it is absent; a new test checks the relay anchor. Onmain(v1.18.3),vitest run test/unit/remote/networkStatus.test.tsgives 20 passed with the change; with the originalnetworkStatus.tsrestored, the two tests that check the link fail.eslinton both files andtsc --noEmitreport nothing. I did not run the rest of the test suite, the integration tests orprettier, and I did not look at the tooltip in a running VS Code window, so the rendering of the link is not checked by eye.