From 152fff7667d1d61bfbca23e8371c9556fb4e6bcf Mon Sep 17 00:00:00 2001 From: amitjoshi Date: Wed, 19 Feb 2025 13:24:56 +0530 Subject: [PATCH 1/2] [Power Pages][Actions Hub] Update command references for authentication profile --- loc/translations-export/vscode-powerplatform.xlf | 4 ++-- package.nls.json | 4 ++-- .../power-pages/actions-hub/ActionsHubTreeDataProvider.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/loc/translations-export/vscode-powerplatform.xlf b/loc/translations-export/vscode-powerplatform.xlf index 28cb4aa1..f83af089 100644 --- a/loc/translations-export/vscode-powerplatform.xlf +++ b/loc/translations-export/vscode-powerplatform.xlf @@ -701,9 +701,9 @@ The eighth line should be '[TRANSLATION HERE](command:powerplatform-walkthrough. Login and connect to a Power Pages environment to use Power Pages actions. [Learn more](https://example.com/learn-more). -[Login](command:powerpages.actionsHub.newAuthProfile) +[Login](command:microsoft.powerplatform.pages.actionsHub.newAuthProfile) This is a Markdown formatted string, and the formatting must persist across translations. -The second line should be '[TRANSLATION HERE](command:powerpages.actionsHub.newAuthProfile).', keeping brackets and the text in the parentheses unmodified +The second line should be '[TRANSLATION HERE](command:microsoft.powerplatform.pages.actionsHub.newAuthProfile).', keeping brackets and the text in the parentheses unmodified Name/Rename Auth Profile diff --git a/package.nls.json b/package.nls.json index 60d913fc..47fc7dae 100644 --- a/package.nls.json +++ b/package.nls.json @@ -99,10 +99,10 @@ "microsoft.powerplatform.pages.actionsHub.openSitesInStudio.title": "Open in Power Pages Studio", "microsoft.powerplatform.pages.actionsHub.activeSite.previewSite.title": "Preview", "microsoft.powerplatform.pages.actionsHub.login":{ - "message": "Login and connect to a Power Pages environment to use Power Pages actions. [Learn more](https://example.com/learn-more).\n[Login](command:powerpages.actionsHub.newAuthProfile)", + "message": "Login and connect to a Power Pages environment to use Power Pages actions. [Learn more](https://example.com/learn-more).\n[Login](command:microsoft.powerplatform.pages.actionsHub.newAuthProfile)", "comment": [ "This is a Markdown formatted string, and the formatting must persist across translations.", - "The second line should be '[TRANSLATION HERE](command:powerpages.actionsHub.newAuthProfile).', keeping brackets and the text in the parentheses unmodified" + "The second line should be '[TRANSLATION HERE](command:microsoft.powerplatform.pages.actionsHub.newAuthProfile).', keeping brackets and the text in the parentheses unmodified" ] }, "microsoft.powerplatform.pages.actionsHub.login.title": "Add New Auth Profile" diff --git a/src/client/power-pages/actions-hub/ActionsHubTreeDataProvider.ts b/src/client/power-pages/actions-hub/ActionsHubTreeDataProvider.ts index 168a9275..326f6ad5 100644 --- a/src/client/power-pages/actions-hub/ActionsHubTreeDataProvider.ts +++ b/src/client/power-pages/actions-hub/ActionsHubTreeDataProvider.ts @@ -112,7 +112,7 @@ export class ActionsHubTreeDataProvider implements vscode.TreeDataProvider { + vscode.commands.registerCommand("microsoft.powerplatform.pages.actionsHub.newAuthProfile", async () => { await createNewAuthProfile(pacTerminal.getWrapper()); }), ]; From 8f60b50dd46e775095b0ea35c89e2663e76bb26c Mon Sep 17 00:00:00 2001 From: amitjoshi Date: Wed, 19 Feb 2025 14:42:53 +0530 Subject: [PATCH 2/2] Update command reference for new authentication profile in ActionsHubTreeDataProvider test --- .../power-pages/actions-hub/ActionsHubTreeDataProvider.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/test/Integration/power-pages/actions-hub/ActionsHubTreeDataProvider.test.ts b/src/client/test/Integration/power-pages/actions-hub/ActionsHubTreeDataProvider.test.ts index e3e132d3..85f07476 100644 --- a/src/client/test/Integration/power-pages/actions-hub/ActionsHubTreeDataProvider.test.ts +++ b/src/client/test/Integration/power-pages/actions-hub/ActionsHubTreeDataProvider.test.ts @@ -101,7 +101,7 @@ describe("ActionsHubTreeDataProvider", () => { const actionsHubTreeDataProvider = ActionsHubTreeDataProvider.initialize(context, pacTerminal); actionsHubTreeDataProvider["registerPanel"](pacTerminal); - expect(registerCommandStub.calledWith("powerpages.actionsHub.newAuthProfile")).to.be.true; + expect(registerCommandStub.calledWith("microsoft.powerplatform.pages.actionsHub.newAuthProfile")).to.be.true; }); });