Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds support for loading Mockoon environments from the cloud using a new cloud:// URL scheme in the CLI, along with a new --token flag for authentication. The desktop app also receives a new modal dialog that provides self-hosting instructions to users with Team and Enterprise plans.
Key changes:
- CLI now supports
cloud://URLs for loading environments from Mockoon's cloud API with bearer token authentication - New
--tokenflag (orMOCKOON_CLOUD_TOKENenvironment variable) for cloud authentication - Desktop app includes a new "Self-host with CLI" menu option and modal with setup instructions
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/cli/src/config.ts | Adds cloud scheme and API URL configuration with production/development environment detection |
| packages/cli/src/libs/data.ts | Extends loadFile and parseDataFile to support cloud:// URLs with bearer token authentication |
| packages/cli/src/commands/start.ts | Adds --token flag and validation to ensure tokens are provided for cloud URLs |
| packages/app/src/shared/shared-config.ts | Adds URLs for cloud deployment documentation and account authentication settings |
| packages/app/src/renderer/app/services/ui.service.ts | Integrates new selfHostingInstructions modal into the modal management system |
| packages/app/src/renderer/app/components/svg/svg.component.ts | Clarifies comment about using Material Icons (not symbols) |
| packages/app/src/renderer/app/components/modals/self-hosting-instructions-modal/self-hosting-instructions-modal.component.ts | New component providing self-hosting instructions with CLI command generation |
| packages/app/src/renderer/app/components/modals/self-hosting-instructions-modal/self-hosting-instructions-modal.component.html | Template for self-hosting instructions modal with copy-to-clipboard functionality |
| packages/app/src/renderer/app/components/menus/environments-menu/environments-menu.component.ts | Adds "Self-host with CLI" menu item for cloud environments (Team/Enterprise only) |
| .vscode/launch.json | Updates debug configuration to test cloud:// URL loading |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
a0adbe4 to
8d35c32
Compare
- add new --token flag to the CLI and support for cloud:// URLs - add app dialog to display instructions Closes #1736
8d35c32 to
5fa96b8
Compare
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.
Closes #1736
Technical implementation details
Checklist
Closes #{issue_number}