Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Power Pages][Actions Hub] Update command references for authentication profile #1132

Merged
merged 6 commits into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions loc/translations-export/vscode-powerplatform.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -701,9 +701,9 @@ The eighth line should be '[TRANSLATION HERE](command:powerplatform-walkthrough.
</trans-unit>
<trans-unit id="microsoft.powerplatform.pages.actionsHub.login">
<source xml:lang="en">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)</source>
[Login](command:microsoft.powerplatform.pages.actionsHub.newAuthProfile)</source>
<note>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</note>
The second line should be '[TRANSLATION HERE](command:microsoft.powerplatform.pages.actionsHub.newAuthProfile).', keeping brackets and the text in the parentheses unmodified</note>
</trans-unit>
<trans-unit id="pacCLI.authPanel.nameAuthProfile.title">
<source xml:lang="en">Name/Rename Auth Profile</source>
Expand Down
4 changes: 2 additions & 2 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class ActionsHubTreeDataProvider implements vscode.TreeDataProvider<Actio

vscode.commands.registerCommand("microsoft.powerplatform.pages.actionsHub.activeSite.preview", previewSite),

vscode.commands.registerCommand("powerpages.actionsHub.newAuthProfile", async () => {
vscode.commands.registerCommand("microsoft.powerplatform.pages.actionsHub.newAuthProfile", async () => {
await createNewAuthProfile(pacTerminal.getWrapper());
}),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,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;

await registerCommandStub.getCall(6).args[1]();
expect(mockCommandHandler.calledOnce).to.be.true;
Expand Down
Loading