Fix login button not working in Power Pages Actions Hub #1274
+22
−14
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.
The login button in the Power Pages Actions view was not working because it was calling a disabled command. When users clicked the "Login" button in the welcome content, nothing would happen.
Root Cause
The welcome content was calling
microsoft.powerplatform.pages.actionsHub.newAuthProfilecommand, but this command was explicitly disabled with"when": "never"in the package.json commandPalette section. Additionally, the more appropriateloginToMatchcommand was implemented in the code but not declared in package.json.Solution
loginToMatchcommand declaration to package.json with proper title and enablementloginToMatchinstead of the disablednewAuthProfilecommandWhy
loginToMatchvsnewAuthProfile?loginToMatchis specifically designed for authentication in the Power Pages Actions Hub contextnewAuthProfilecreates PAC CLI auth profiles, which is more complex than needed for the welcome contentauthenticateUserInVSCode()butloginToMatchis the appropriate choice for this scenarioTesting
The fix has been validated with:
Users should now be able to click the login button in the Power Pages Actions view and see the VS Code authentication dialog appear as expected.
Fixes #1258.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
googlechromelabs.github.ionode install.mjs(dns block)https://storage.googleapis.com/chrome-for-testing-public/139.0.7258.138/linux64/chrome-headless-shell-linux64.zipnode install.mjs(http block)update.code.visualstudio.comgulp testDesktopInt(dns block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.