Skip to content

Commit

Permalink
Present solutions deployed per app catalog. Closes pnp#215
Browse files Browse the repository at this point in the history
  • Loading branch information
Saurabh7019 authored and Adam-it committed Oct 14, 2024
1 parent e842630 commit 775060d
Show file tree
Hide file tree
Showing 6 changed files with 436 additions and 47 deletions.
71 changes: 71 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,42 @@
"title": "Refresh Account view",
"category": "SharePoint Framework Toolkit",
"icon": "$(refresh)"
},
{
"command": "spfx-toolkit.deployAppCatalogApp",
"title": "Deploy",
"category": "SharePoint Framework Toolkit",
"icon": "$(cloud-upload)"
},
{
"command": "spfx-toolkit.retractAppCatalogApp",
"title": "Retract",
"category": "SharePoint Framework Toolkit",
"icon": "$(cloud-download)"
},
{
"command": "spfx-toolkit.removeAppCatalogApp",
"title": "Remove",
"category": "SharePoint Framework Toolkit",
"icon": "$(trash)"
},
{
"command": "spfx-toolkit.enableAppCatalogApp",
"title": "Enable",
"category": "SharePoint Framework Toolkit",
"icon": "$(check)"
},
{
"command": "spfx-toolkit.disableAppCatalogApp",
"title": "Disable",
"category": "SharePoint Framework Toolkit",
"icon": "$(circle-slash)"
},
{
"command": "spfx-toolkit.showMoreActions",
"title": "...",
"category": "SharePoint Framework Toolkit",
"icon": "$(ellipsis)"
}
],
"menus": {
Expand Down Expand Up @@ -437,6 +473,34 @@
"command": "spfx-toolkit.logout",
"when": "view == pnp-view-account && viewItem == m365Account",
"group": "inline@1"
},
{
"command": "spfx-toolkit.deployAppCatalogApp",
"when": "view == pnp-view-environment && viewItem == pnp.etv.hasAppCatalogApp",
"group": "inline@1"
},
{
"submenu": "spfx-toolkit.showMoreActions",
"when": "view == pnp-view-environment && viewItem == pnp.etv.hasAppCatalogApp",
"group": "inline@2"
}
],
"spfx-toolkit.showMoreActions": [
{
"command": "spfx-toolkit.retractAppCatalogApp",
"group": "actions.more@1"
},
{
"command": "spfx-toolkit.removeAppCatalogApp",
"group": "actions.more@2"
},
{
"command": "spfx-toolkit.enableAppCatalogApp",
"group": "actions.more@3"
},
{
"command": "spfx-toolkit.disableAppCatalogApp",
"group": "actions.more@4"
}
],
"explorer/context": [
Expand All @@ -447,6 +511,13 @@
}
]
},
"submenus": [
{
"id": "spfx-toolkit.showMoreActions",
"label": "More Actions...",
"icon": "$(ellipsis)"
}
],
"languages": [
{
"id": "pnp.project.output",
Expand Down
8 changes: 8 additions & 0 deletions src/constants/Commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,12 @@ export const Commands = {

// Welcome
welcome: `${EXTENSION_NAME}.welcome`,

// App actions
deployAppCatalogApp: `${EXTENSION_NAME}.deployAppCatalogApp`,
retractAppCatalogApp: `${EXTENSION_NAME}.retractAppCatalogApp`,
removeAppCatalogApp: `${EXTENSION_NAME}.removeAppCatalogApp`,
enableAppCatalogApp: `${EXTENSION_NAME}.enableAppCatalogApp`,
disableAppCatalogApp: `${EXTENSION_NAME}.disableAppCatalogApp`,
showMoreActions: `${EXTENSION_NAME}.showMoreActions`
};
6 changes: 6 additions & 0 deletions src/constants/ContextKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@ export const ContextKeys = {
isSPFxProject: 'pnp.project.isSPFxProject',
isLoggedIn: 'pnp.project.isLoggedIn',
hasAppCatalog: 'pnp.project.hasAppCatalog',
hasAppCatalogApp: 'pnp.etv.hasAppCatalogApp',
deployApp: 'pnp.etv.app.deploy',
retractApp: 'pnp.etv.app.retract',
removeApp: 'pnp.etv.app.remove',
enableApp: 'pnp.etv.app.enable',
disableApp: 'pnp.etv.app.disable'
};
Loading

0 comments on commit 775060d

Please sign in to comment.