Actions Hub: Implement base classes to show tree structure #1090
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new feature called "Actions Hub" and includes localization updates. The most important changes are the addition of new tree items and models, updates to localization files, and modifications to the extension activation process.
New Feature: Actions Hub
src/client/actions-hub/ActionsHubTreeDataProvider.ts
: Added theActionsHubTreeDataProvider
class to manage the tree view for the Actions Hub.src/client/actions-hub/Constants.ts
: Defined constants for context values, icons, strings, and event names used in the Actions Hub.src/client/actions-hub/models/IEnvironmentInfo.ts
: Introduced theIEnvironmentInfo
interface to represent environment information.src/client/actions-hub/models/IWebsiteInfo.ts
: Introduced theIWebsiteInfo
interface to represent website information.src/client/actions-hub/models/WebsiteStatus.ts
: Defined theWebsiteStatus
enum to represent the status of a website.src/client/actions-hub/tree-items/ActionsHubTreeItem.ts
: Created an abstract classActionsHubTreeItem
for tree items in the Actions Hub.src/client/actions-hub/tree-items/ActiveGroupTreeItem.ts
: Added theActiveGroupTreeItem
class for active sites group tree items.src/client/actions-hub/tree-items/EnvironmentGroupTreeItem.ts
: Added theEnvironmentGroupTreeItem
class for environment group tree items.src/client/actions-hub/tree-items/InactiveGroupTreeItem.ts
: Added theInactiveGroupTreeItem
class for inactive sites group tree items.src/client/actions-hub/tree-items/NoDataTreeItem.ts
: Added theNoDataTreeItem
class for tree items representing no data.src/client/actions-hub/tree-items/OtherSitesGroupTreeItem.ts
: Added theOtherSitesGroupTreeItem
class for other sites group tree items.src/client/actions-hub/tree-items/SiteTreeItem.ts
: Added theSiteTreeItem
class for individual site tree items.Localization Updates
l10n/bundle.l10n.json
: Added new localization strings for "Other Sites", "Active Sites", "Inactive Sites", and "No sites found".loc/translations-export/vscode-powerplatform.xlf
: Added corresponding localization entries for the new strings. [1] [2] [3] [4] [5]Extension Activation Modifications
src/client/extension.ts
: Modified the activation function to initialize the Actions Hub based on a feature flag and added theActionsHubTreeDataProvider
initialization. [1] [2] [3]Package Configuration Updates
package.json
: Updated to include the new Actions Hub command and its properties.package.nls.json
: Added the localization entry for the Actions Hub title.Tests
Added tests for the behavior
Screenshots
Code Usage
Preview