Repository navigation
Update cloudflare-warp extension - #22765
Conversation
- Merge branch \'contributions/merge-1762663273306\' - Pull contributions - update readme - feat: add ability to switch between MDM profiles - Merge branch \'contributions/merge-1730224381793868000\' - Pull contributions - chore: update to support new warp-cli 2024 - add metadata image - Merge branch \'contributions/merge-1702302851409558000\' - Pull contributions - add metadata image - remove closewindow - empty commit to retrigger CI - fix: logic for getting vnet data - fix switching error message - fix missing function call - use HUD instead of toast - fix package-lock - update changelog - fix lint error - fix incorrect call - first commit
|
Thank you for your contribution! 🎉 🔔 @anandubajith 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. You can expect an initial review within five business days. |
left a comment
•
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This PR adds MDM (Mobile Device Management) profile switching capability to the Cloudflare WARP extension. The changes introduce a new command switch-mdm-profile that allows users to view and switch between available MDM profiles, which is useful for enterprise environments where different organizational configurations need to be managed.
The implementation follows the existing pattern established by the virtual network switching feature. It includes two new functions in lib.ts (getMDMProfiles() and setMDMProfile()), a new React component switch-mdm-profile.tsx that provides a list interface showing available profiles, and updates to the package.json manifest to register the new command. The solution integrates well with the existing codebase architecture and maintains consistency with Raycast extension patterns.
Important Files Changed
| Filename | Score | Overview |
|---|---|---|
| extensions/cloudflare-warp/package.json | 5/5 | Added new 'switch-mdm-profile' command registration with proper configuration |
| extensions/cloudflare-warp/README.md | 5/5 | Updated documentation to include new MDM profile switching feature |
| extensions/cloudflare-warp/src/lib.ts | 4/5 | Added getMDMProfiles() and setMDMProfile() functions but contains pre-existing error message bug |
| extensions/cloudflare-warp/src/switch-mdm-profile.tsx | 4/5 | New React component implementing MDM profile switching with proper patterns and error handling |
| extensions/cloudflare-warp/CHANGELOG.md | 3/5 | Added changelog entry but uses actual date instead of required {PR_MERGE_DATE} template |
Confidence score: 4/5
- This PR is safe to merge with low risk as it adds a new feature without modifying existing functionality
- Score reflects well-structured implementation following established patterns, but points deducted for changelog date format issue and pre-existing error message bug in lib.ts
- Pay close attention to extensions/cloudflare-warp/CHANGELOG.md which needs the date format corrected
Additional Comments (1)
-
extensions/cloudflare-warp/src/lib.ts, line 34 (link)logic: Error message says 'Failed to connect' but should be 'Failed to disconnect' since this is the disconnect function
5 files reviewed, 2 comments
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
commented
Nov 9, 2025
|
Published to the Raycast Store: |
commented
Nov 9, 2025
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
Description
Add a new command to support switching MDM Profiles
Screencast
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder