Skip to content

Conversation

Copy link

Copilot AI commented Aug 29, 2025

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 AI changed the title [WIP] Login Button in Power Pages Actions Does Not Work Fix login button in Power Pages Actions not providing user feedback Aug 29, 2025
Copilot AI requested a review from amitjoshi438 August 29, 2025 11:04
Copilot finished work on behalf of amitjoshi438 August 29, 2025 11:04
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 in Power Pages Actions Does Not Work

2 participants