Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Aug 29, 2025

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.newAuthProfile command, but this command was explicitly disabled with "when": "never" in the package.json commandPalette section. Additionally, the more appropriate loginToMatch command was implemented in the code but not declared in package.json.

Solution

  1. Added loginToMatch command declaration to package.json with proper title and enablement
  2. Updated welcome content to use loginToMatch instead of the disabled newAuthProfile command
  3. Updated all localized files to reference the correct command while preserving PAC CLI functionality

Why loginToMatch vs newAuthProfile?

  • loginToMatch is specifically designed for authentication in the Power Pages Actions Hub context
  • newAuthProfile creates PAC CLI auth profiles, which is more complex than needed for the welcome content
  • Both eventually call authenticateUserInVSCode() but loginToMatch is the appropriate choice for this scenario

Testing

The fix has been validated with:

  • Package.json command registration verification
  • Welcome content command reference validation
  • Localization file consistency checks
  • Unit test suite (62 tests passing)
  • Build verification

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.io
    • Triggering command: node install.mjs (dns block)
  • https://storage.googleapis.com/chrome-for-testing-public/139.0.7258.138/linux64/chrome-headless-shell-linux64.zip
    • Triggering command: node install.mjs (http block)
  • update.code.visualstudio.com
    • Triggering command: gulp 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.

Co-authored-by: amitjoshi438 <54068463+amitjoshi438@users.noreply.github.com>
Copilot AI changed the title [WIP] Login button not working Fix login button not working in Power Pages Actions Hub Aug 29, 2025
Copilot AI requested a review from amitjoshi438 August 29, 2025 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Login button not working

2 participants