Skip to content

Commit

Permalink
feat: Update Copilot panel title and clear conversation button
Browse files Browse the repository at this point in the history
The code changes update the Copilot panel title and clear conversation button text to use localized strings. This improves the user experience by providing clear and localized labels for these elements.

Note: This commit message follows the convention used in recent repository commits.
  • Loading branch information
amitjoshi committed Apr 25, 2024
1 parent f8bb0a0 commit 2a9df19
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@
{
"command": "powerpages.copilot.clearConversation",
"category": "Copilot In Power Pages",
"title": "Clear Conversation",
"title": "%powerpages.copilotPanel.clearConversation.title%",
"icon": "$(clear-all)"
},
{
Expand Down Expand Up @@ -937,7 +937,7 @@
{
"type": "webview",
"id": "powerpages.copilot",
"name": "Copilot In Power Pages",
"name": "%powerpages.copilotPanel.title%",
"initialSize": 6,
"visibility": "visible",
"when": "(!virtualWorkspace && powerpages.websiteYmlExists && config.powerPlatform.experimental.copilotEnabled) || (isWeb && config.powerPlatform.experimental.enableWebCopilot)"
Expand Down
3 changes: 3 additions & 0 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

"power-platform-activitybar.title": "Power Platform",

"powerpages.copilotPanel.title": "Copilot In Power Pages",
"powerpages.copilotPanel.clearConversation.title": "Clear Conversation",

"pacCLI.authPanel.title": "Auth Profiles",
"pacCLI.authPanel.welcome.whenInteractiveSupported": {
"message": "No auth profiles found on this computer.\n[Add Auth Profile](command:pacCLI.authPanel.newAuthProfile)",
Expand Down
4 changes: 2 additions & 2 deletions src/common/copilot/PowerPagesCopilot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export class PowerPagesCopilot implements vscode.WebviewViewProvider {
this._view = webviewView;

webviewView.title = "Copilot In Power Pages" + (IS_DESKTOP ? "" : " [PREVIEW]");
webviewView.description = "PREVIEW";
webviewView.description = vscode.l10n.t("PREVIEW");
webviewView.webview.options = {
// Allow scripts in the webview
enableScripts: true,
Expand Down Expand Up @@ -210,7 +210,7 @@ export class PowerPagesCopilot implements vscode.WebviewViewProvider {
type: 'copilotStrings',
value: copilotStrings
});

if (this.aibEndpoint === COPILOT_UNAVAILABLE) {
this.sendMessageToWebview({ type: 'Unavailable' });
return;
Expand Down

0 comments on commit 2a9df19

Please sign in to comment.