Skip to content

Commit c8994d1

Browse files
amitjoshi438Amit Joshi
andauthored
[PowerPages] Implement URI handling and download functionality for Power Pages (#1271)
* feat: implement URI handling for Power Pages site download on desktop * feat: add desktop integration for Power Pages navigation and telemetry events in vscodeweb * feat: enhance URI handling with schema parameter validation and model version determination * feat: enhance URI handling and telemetry for Power Pages site download functionality * feat: add download functionality for Power Pages site in pacWrapper and improve progress notifications * feat: add site URL handling and utility functions for improved URI processing in Power Pages * refactor: remove deprecated URI handler implementation from uriHandler.ts * refactor: replace vscode.Uri with URL for URI parsing in tests * refactor: simplify localization calls in URI handler by using pre-defined string constants * refactor: enhance localization for VS Code Desktop integration and site download messages --------- Co-authored-by: Amit Joshi <amitjoshi@microsoft.com>
1 parent 975c265 commit c8994d1

File tree

16 files changed

+1464
-64
lines changed

16 files changed

+1464
-64
lines changed

l10n/bundle.l10n.json

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,18 @@
77
"You are editing a live, public site ": "You are editing a live, public site ",
88
"Preview site": "Preview site",
99
"Open in Power Pages studio": "Open in Power Pages studio",
10+
"Open in VS Code Desktop": "Open in VS Code Desktop",
1011
"Preview site URL is not valid": "Preview site URL is not valid",
1112
"Opening preview site...": "Opening preview site...",
1213
"Power Pages studio URL is not available": "Power Pages studio URL is not available",
14+
"Website ID is not available": "Website ID is not available",
15+
"Environment ID is not available": "Environment ID is not available",
16+
"Unable to generate VS Code Desktop URL": "Unable to generate VS Code Desktop URL",
17+
"Opening in VS Code Desktop. If VS Code doesn't open, you may need to install it first.": "Opening in VS Code Desktop. If VS Code doesn't open, you may need to install it first.",
18+
"Download VS Code": "Download VS Code",
19+
"Get Extension": "Get Extension",
20+
"Failed to generate VS Code Desktop URL: {0}": "Failed to generate VS Code Desktop URL: {0}",
21+
"Failed to open in VS Code Desktop: {0}": "Failed to open in VS Code Desktop: {0}",
1322
"Microsoft wants your feedback": "Microsoft wants your feedback",
1423
"Check the URL and verify the parameters are correct": "Check the URL and verify the parameters are correct",
1524
"Unable to complete the request": "Unable to complete the request",
@@ -91,13 +100,38 @@
91100
"Generating webpages...": "Generating webpages...",
92101
"Generating a new Power Pages site...": "Generating a new Power Pages site...",
93102
"Failed to create a new Power Pages site. Please try again.": "Failed to create a new Power Pages site. Please try again.",
103+
"Unable to locate website root folder.": "Unable to locate website root folder.",
104+
"Website ID is required but not provided": "Website ID is required but not provided",
105+
"Environment ID is required but not provided": "Environment ID is required but not provided",
106+
"Organization URL is required but not provided": "Organization URL is required but not provided",
107+
"Authentication failed. Cannot proceed with site download.": "Authentication failed. Cannot proceed with site download.",
108+
"Failed to switch to the required environment.": "Failed to switch to the required environment.",
109+
"Failed to download site: {0}": "Failed to download site: {0}",
110+
"Failed to handle Power Pages URI: {0}": "Failed to handle Power Pages URI: {0}",
111+
"Error switching environment: {0}": "Error switching environment: {0}",
112+
"Site download cancelled. Authentication is required to proceed.": "Site download cancelled. Authentication is required to proceed.",
113+
"Site download cancelled. Correct environment connection is required.": "Site download cancelled. Correct environment connection is required.",
114+
"Site download cancelled. No folder selected.": "Site download cancelled. No folder selected.",
115+
"Downloading Power Pages site using model version {0}...": "Downloading Power Pages site using model version {0}...",
116+
"Downloading Power Pages site, please wait...": "Downloading Power Pages site, please wait...",
117+
"Preparing to download Power Pages site...": "Preparing to download Power Pages site...",
118+
"Processing download request...": "Processing download request...",
119+
"You need to authenticate with Power Platform to download the site. Would you like to authenticate now?": "You need to authenticate with Power Platform to download the site. Would you like to authenticate now?",
120+
"You are currently connected to a different environment. Would you like to switch to the required environment?": "You are currently connected to a different environment. Would you like to switch to the required environment?",
121+
"Power Pages site download completed successfully. Would you like to open the downloaded site folder?": "Power Pages site download completed successfully. Would you like to open the downloaded site folder?",
122+
"Select Folder to Download Power Pages Site": "Select Folder to Download Power Pages Site",
123+
"Yes": "Yes",
124+
"No": "No",
125+
"Open Folder": "Open Folder",
126+
"Open in New Workspace": "Open in New Workspace",
127+
"Not Now": "Not Now",
128+
"Download Power Pages Site": "Download Power Pages Site",
94129
"Select Folder for new PCF Control/Do not translate 'PCF' as it is a product name.": {
95130
"message": "Select Folder for new PCF Control",
96131
"comment": [
97132
"Do not translate 'PCF' as it is a product name."
98133
]
99134
},
100-
"Unable to locate website root folder.": "Unable to locate website root folder.",
101135
"File might be referenced by name {0} here./{0} represents the name of the file": {
102136
"message": "File might be referenced by name {0} here.",
103137
"comment": [
@@ -202,7 +236,6 @@
202236
"Current": "Current",
203237
"Site management URL not found for the selected site. Please try again after refreshing the environment.": "Site management URL not found for the selected site. Please try again after refreshing the environment.",
204238
"Be careful when you're updating public sites. The changes you make are visible to anyone immediately. Do you want to continue?": "Be careful when you're updating public sites. The changes you make are visible to anyone immediately. Do you want to continue?",
205-
"Yes": "Yes",
206239
"Current site path not found.": "Current site path not found.",
207240
"Site Details": "Site Details",
208241
"Browse...": "Browse...",

0 commit comments

Comments
 (0)