Skip to content

Commit

Permalink
Enhance account and app catalog tree view. Closes: #127 (#192)
Browse files Browse the repository at this point in the history
## 🎯 Aim

Is to add more info about tenant and tenant wide extensions

## ✅ What was done

- [X] refactored account view to have link to api management
- [X] added tenant health incident list
- [X] added tenant wide extension list

## 🔗 Related issue

Closes: #127
#127
  • Loading branch information
Adam-it authored Mar 15, 2024
1 parent 017ce60 commit 116c65d
Show file tree
Hide file tree
Showing 10 changed files with 198 additions and 83 deletions.
Binary file added assets/fonts/fabric-icons.woff
Binary file not shown.
3 changes: 0 additions & 3 deletions assets/icons/dark/M365.svg

This file was deleted.

4 changes: 0 additions & 4 deletions assets/icons/dark/sharepoint.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/icons/light/M365.svg

This file was deleted.

4 changes: 0 additions & 4 deletions assets/icons/light/sharepoint.svg

This file was deleted.

72 changes: 70 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,50 @@
"license": "MIT",
"main": "./dist/extension.js",
"contributes": {
"icons": {
"spo-m365": {
"description": "Microsoft 365 icon",
"default": {
"fontPath": "./assets/fonts/fabric-icons.woff",
"fontCharacter": "\\ED72"
}
},
"spo-logo": {
"description": "SharePoint Online icon",
"default": {
"fontPath": "./assets/fonts/fabric-icons.woff",
"fontCharacter": "\\ED18"
}
},
"spo-app-list": {
"description": "Tenant-Wide extension list icon",
"default": {
"fontPath": "./assets/fonts/fabric-icons.woff",
"fontCharacter": "\\E31E"
}
},
"spo-app": {
"description": "App icon",
"default": {
"fontPath": "./assets/fonts/fabric-icons.woff",
"fontCharacter": "\\ECDC"
}
},
"m365-warning": {
"description": "Warning icon",
"default": {
"fontPath": "./assets/fonts/fabric-icons.woff",
"fontCharacter": "\\E7BA"
}
},
"m365-health": {
"description": "Health icon",
"default": {
"fontPath": "./assets/fonts/fabric-icons.woff",
"fontCharacter": "\\E95E"
}
}
},
"viewsContainers": {
"activitybar": [
{
Expand All @@ -68,7 +112,7 @@
},
{
"id": "pnp-view-environment",
"name": "Environment details",
"name": "App Catalog details",
"when": "pnp.project.isSPFxProject && pnp.project.isLoggedIn"
},
{
Expand Down Expand Up @@ -166,6 +210,18 @@
"title": "Sign out from M365",
"category": "Viva Connections Toolkit",
"icon": "$(sign-out)"
},
{
"command": "viva-connections-toolkit.refreshAppCatalogTreeView",
"title": "Refresh App Catalog list",
"category": "Viva Connections Toolkit",
"icon": "$(refresh)"
},
{
"command": "viva-connections-toolkit.refreshAccountTreeView",
"title": "Refresh Account view",
"category": "Viva Connections Toolkit",
"icon": "$(refresh)"
}
],
"menus": {
Expand All @@ -187,6 +243,18 @@
"when": "pnp.project.isSPFxProject"
}
],
"view/title": [
{
"command": "viva-connections-toolkit.refreshAppCatalogTreeView",
"when": "view == pnp-view-environment",
"group": "navigation"
},
{
"command": "viva-connections-toolkit.refreshAccountTreeView",
"when": "view == pnp-view-account",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "viva-connections-toolkit.logout",
Expand Down Expand Up @@ -276,4 +344,4 @@
"react-markdown": "^9.0.1",
"remark-gfm": "^4.0.0"
}
}
}
4 changes: 4 additions & 0 deletions src/constants/Commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,8 @@ export const Commands = {

// Serving
serveProject: `${EXTENSION_NAME}.serveProject`,

// TreeViews
refreshAppCatalogTreeView: `${EXTENSION_NAME}.refreshAppCatalogTreeView`,
refreshAccountTreeView: `${EXTENSION_NAME}.refreshAccountTreeView`,
};
Loading

0 comments on commit 116c65d

Please sign in to comment.