-
Notifications
You must be signed in to change notification settings - Fork 47
Add extension link to empty resource type groups #1314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Added `getGenericItemsForEmptyGroup()` method to `GroupingItem` class - Implemented override in `ResourceTypeGroupingItem` to show "Install extension" item - Added `supportsResourceType()` method to `AzExtWrapper` for checking resource type support - Added test for empty resource type groups showing install extension item - Modified `GroupingItem.getChildren()` to call generic items method when no resources Co-authored-by: alexweininger <[email protected]>
|
@copilot the tree item underneath the Foundry resource type should open the The view id is and the view container is |
… page - Changed behavior for AI Foundry resource type when extension is installed - Now opens microsoft-foundry-resources view using .focus command - Updated icon from 'extensions' to 'link-external' for clarity - Updated test to account for both install and open behaviors Co-authored-by: alexweininger <[email protected]>
Updated in commit 0053c53. The tree item now uses the |
|
Logic Apps - no logic apps on this subscription, and I don't have it installed So two new tree items, one for under Resource Types when there are no resources and the associated extension isn't installed. And one that is for ONLY under the Foundry resource type, when there are no foundry resource and the foundry extension is installed. @fiveisprime looking for feedback on wording and looks of these. I think there's plenty of room to expand on this too. Since I'd like to add tree items under Resource Type items for when you do have the extension installed but no resources. We can guide user to create a resource. I don't like expanding tree items and having nothing come up, sometimes that feels like things are broken. I'd rather have a nice empty state |

When viewing resources grouped by type, empty groups (e.g., Azure AI Foundry with no resources) now display a clickable item to open the corresponding extension or its view.
Implementation
GroupingItem: AddedgetGenericItemsForEmptyGroup()virtual method, called whenresources.length === 0ResourceTypeGroupingItem: Overrides to return "Open in {Extension} Extension" item with special handling for AI FoundryAzExtWrapper: AddedsupportsResourceType()to match resource types to extensionsBehavior
Empty resource type groups are now expandable and show:
For AI Foundry (when extension is installed):
Clicking opens the
microsoft-foundry-resourcesview in the AI Foundry extension.For other extensions (when not installed):
Clicking opens the extension's marketplace page. Applies to all resource types with uninstalled extensions automatically.
Original prompt
<issue_description>When there are no foundry resources, it would be nice to show a link over to the extension. Something like this:
That, a context menu, or both to give some kind of hint of what to do.</issue_description>
<agent_instructions>Add a standardized way of adding generic tree items underneath resource type tree items when there are no child resources for that resource type.</agent_instructions>
Comments on the Issue (you are @copilot in this section)
@nturinski @alexweininger is on the case.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.