powerplatform-vscode icon indicating copy to clipboard operation
powerplatform-vscode copied to clipboard

Fix login button in Power Pages Actions not providing user feedback

Open Copilot opened this issue 6 months ago • 0 comments

The login button in the Power Pages Actions panel was failing silently when clicked, providing no feedback to users about whether authentication succeeded or failed. This left users confused as clicking the button appeared to do nothing.

Root Cause

The createNewAuthProfile function in ActionsHubCommandHandlers.ts only logged authentication results to telemetry without showing any user-visible messages. When authentication failed or encountered issues, users received no indication of what happened.

Changes Made

Enhanced User Feedback

  • Success notifications: Users now see "Authentication completed successfully" when login works
  • Specific error messages for different failure scenarios:
    • "Authentication failed: Organization URL is missing"
    • "Authentication failed: No authentication results returned"
    • "Authentication failed: Unable to create authentication profile"
    • "Authentication failed: [specific error details]"

Improved Error Handling

  • Enhanced authenticateUserInVSCode function to provide better error messages
  • Maintained backward compatibility for silent authentication calls
  • Added proper error propagation for user-facing authentication flows

Comprehensive Testing

  • Updated existing test cases to verify user notification functionality
  • Added new focused test suite for login button feedback scenarios
  • All authentication paths now have proper test coverage for user feedback

User Experience Impact

Before: Clicking the login button appeared to do nothing, leaving users frustrated and confused

After: Users receive immediate, clear feedback for both successful and failed authentication attempts, providing a professional VS Code extension experience

The login button now works as users expect - providing immediate feedback and clear guidance when issues occur.

Fixes #1225.

[!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:

  • 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.

Copilot avatar Aug 29 '25 10:08 Copilot