Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: include ping and network stats on status tooltip#181

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ethanndickson wants to merge4 commits intomain
base:main
Choose a base branch
Loading
fromethan/ping-tooltip

Conversation

ethanndickson
Copy link
Member

@ethanndicksonethanndickson commentedJun 6, 2025
edited
Loading

Closes#64.

Screenshot 2025-06-06 at 4 03 59 pm

Screenshot 2025-06-06 at 4 03 51 pm

@ethanndicksonGraphite App
Copy link
MemberAuthor

This stack of pull requests is managed byGraphite. Learn more aboutstacking.

@ethanndicksonethanndickson marked this pull request as ready for reviewJune 6, 2025 06:13
Copy link

@CopilotCopilotAI 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 adds ping and network statistics to the VPN status tooltip by extending the protocol, propagating new fields through the Swift models, and updating the UI and tests to surface ping-based status.

  • Extendvpn.proto and regenerate Swift Protobuf code to include a newLastPing message.
  • Wire uplastPing and handshake data inMenuState, updateAgentStatus logic to account for latency, and add UI tooltips.
  • Add and update unit tests to verify ping‐based status, and adjust tooltip timing in the app theme.

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
Coder-Desktop/VPNLib/vpn.protoAddLastPing message and importduration.proto.
Coder-Desktop/VPNLib/vpn.pb.swiftGenerated Swift support forLastPing and new fields.
Coder-Desktop/VPNLib/FileSync/FileSyncManagement.swiftRemove stale TODO comments.
Coder-Desktop/VPN/Manager.swiftTweaklogger.log interpolation for message formatting.
Coder-Desktop/Coder-DesktopTests/VPNMenuStateTests.swiftAdd tests forpoorConnection and adjust expected statuses.
Coder-Desktop/Coder-DesktopTests/AgentsTests.swiftIncludelastPing: nil in test agent fixtures.
Coder-Desktop/Coder-Desktop/Views/VPN/VPNMenuItem.swiftAddstatusString and.help tooltip on status dot.
Coder-Desktop/Coder-Desktop/VPN/MenuState.swiftIntegrateLastPing intoAgent model, add status logic, helpers.
Coder-Desktop/Coder-Desktop/Theme.swiftDefinetooltipDelay constant (250 ms).
Coder-Desktop/Coder-Desktop/Coder_DesktopApp.swiftSetNSInitialToolTipDelay viaUserDefaults.
Comments suppressed due to low confidence (3)

Coder-Desktop/Coder-Desktop/VPN/MenuState.swift:107

  • Insertingconnecting with raw value 1 shifts all subsequent enum raw values, which may break code or persisted data relying on those values. Consider maintaining backward compatibility by explicitly assigning the original values or migrating consumers.
case connecting = 1

Coder-Desktop/Coder-Desktop/VPN/MenuState.swift:290

  • There are no existing tests for theconnecting status path whenlastHandshake is missing. Adding a unit test to cover this branch will ensure correct behavior for newly-started agents.
var status: AgentStatus {

Coder-Desktop/VPN/Manager.swift:324

  • [nitpick] The single privacy label applies to the entire interpolated string. If some fields should remain private, consider splitting the log call or marking each interpolation segment explicitly.
logger.log(level: level, "\(log.message, privacy: .public)\(fields.isEmpty ? "" : ": \(fields)", privacy: .public)")

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@deansheatherdeansheatherdeansheather approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Show latency on workspace view
2 participants
@ethanndickson@deansheather

[8]ページ先頭

©2009-2025 Movatter.jp