Skip to content

Update connect-to-vpn extension#17649

Merged
raycastbot merged 9 commits intoraycast:mainfrom
borzov:ext/connect-to-vpn
Mar 19, 2025
Merged

Update connect-to-vpn extension#17649
raycastbot merged 9 commits intoraycast:mainfrom
borzov:ext/connect-to-vpn

Conversation

@borzov
Copy link
Contributor

@borzov borzov commented Mar 7, 2025

Description

Screencast

Checklist

- fix: improve menubar icon update speed and fix linting issues
- Initial commit
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: connect-to-vpn Issues related to the connect-to-vpn extension labels Mar 7, 2025
@raycastbot
Copy link
Collaborator

raycastbot commented Mar 7, 2025

Thank you for your first contribution! 🎉

🔔 @rasmusbe @sato11 @stonerl @vpukhanov @Yshmeel you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

Due to our current reduced availability, the initial review may take up to 10-15 business days

@borzov
Copy link
Contributor Author

borzov commented Mar 7, 2025

This PR significantly improves the menubar icon update speed when connecting/disconnecting via the main Raycast interface. Previously, the icon would update with a delay of 15-20 seconds, now it updates almost instantly.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR significantly improves the Connect to VPN extension with faster menubar updates and better synchronization between the main extension and menubar interface.

  • The changelog entry for "Performance Improvements" needs to end with {PR_MERGE_DATE} template string
  • New store.ts implementation effectively manages VPN status updates and menubar refresh state
  • Reduced polling interval from 500ms to 300ms and added 50ms menubar refresh checks for more responsive UI
  • Consider using showFailureToast from @raycast/utils instead of manual showToast with Toast.Style.Failure
  • Added extensive logging for debugging which should be cleaned up/removed before merging

💡 (1/5) You can manually trigger the bot by mentioning @greptileai in a comment!

5 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings | Greptile

borzov and others added 4 commits March 7, 2025 20:32
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@borzov
Copy link
Contributor Author

borzov commented Mar 7, 2025

I'm having issues with the Prettier formatting check in CI. Locally, ⁠ray lint --fix reports no issues, but CI still fails. Could someone from the Raycast team help me understand what's wrong with the formatting?

@pernielsentikaer
Copy link
Collaborator

@rasmusbe can you check this?

@pernielsentikaer pernielsentikaer self-assigned this Mar 13, 2025
@rasmusbe
Copy link
Contributor

Yes, I'll test it later today or tomorrow 👍

@pernielsentikaer
Copy link
Collaborator

Awesome, thanks 🔥

@borzov
Copy link
Contributor Author

borzov commented Mar 13, 2025

Thank you, I am currently working on the next update and I really want to make it possible to assign hotkeys to specific connections. So that you can connect or disconnect using a pre-set key combination.

Initially, I wanted to try to make it so that the plugin settings would display available connections and you could assign hotkeys there. But I still haven't found a way to do this...

Now I have a slightly crooked method, I made a command that allows you to generate shell scripts for each connection and then through "Script Commands" you can assign an alliance or hotkey for the desired connection. But this is some kind of crooked method and I don't like it... Although it is a working method.

@borzov
Copy link
Contributor Author

borzov commented Mar 18, 2025

@rasmusbe @pernielsentikaer hi, I know you have a lot to do, but just in case I wanted to remind you about this pull request...

Copy link
Contributor

@rasmusbe rasmusbe left a comment

Choose a reason for hiding this comment

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

Sorry, I've tested it but forgot to hit send on my approval. Everything worked perfect!

@stonerl
Copy link
Contributor

stonerl commented Mar 18, 2025

@borzov @rasmusbe The 50ms refresh still has not been addressed.

@borzov
Copy link
Contributor Author

borzov commented Mar 19, 2025

@stonerl @rasmusbe I increased the intervals, tested locally and did not notice any difference. I suppose you can leave the increased intervals and not check as often as originally suggested.

Copy link
Collaborator

@pernielsentikaer pernielsentikaer left a comment

Choose a reason for hiding this comment

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

Hi 👋

Looks good to me, approved 🔥

@raycastbot raycastbot merged commit 993ce3b into raycast:main Mar 19, 2025
@github-actions
Copy link
Contributor

Published to the Raycast Store:
https://raycast.com/rasmusbe/connect-to-vpn

@raycastbot
Copy link
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

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

Labels

extension: connect-to-vpn Issues related to the connect-to-vpn extension extension fix / improvement Label for PRs with extension's fix improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants