Skip to content

#165 fix filtering#166

Merged
cricketthomas merged 4 commits intomasterfrom
feature/165-search
Mar 28, 2026
Merged

#165 fix filtering#166
cricketthomas merged 4 commits intomasterfrom
feature/165-search

Conversation

@cricketthomas
Copy link
Copy Markdown
Owner

Would close #165

  • adds function to go through and reset visibility of items
  • adds IsVisible property to tree view items

Note

search works best when there is actually loaded RGs

Screen.Recording.2026-03-28.113341.mp4
  • fix issue with Edit buttons showing on managed secrets.
image

add function to go through and mark everything as visible again when users clear the list or refresh
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses issue #165 by improving the TreeView search/filtering behavior (including hiding non-matching resource groups/items) and fixes UI actions showing up for managed secrets where editing shouldn’t be allowed.

Changes:

  • Adds an IsVisible flag to tree nodes and binds it to TreeViewItem Visibility to support true hide/show filtering.
  • Updates FilterService and search execution to reset visibility and filter against a stable read-only datasource.
  • Prevents “Edit version” actions from showing for managed secrets.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/uno/AzureKeyVaultStudio/AzureKeyVaultStudio/UserControls/ViewModels/KeyVaultTreeViewModel.cs Adjusts search execution and ARM token handling while rebuilding the tree datasource.
src/uno/AzureKeyVaultStudio/AzureKeyVaultStudio/UserControls/ViewModels/ItemPropertiesViewModel.cs Hides the edit-version button for managed secrets.
src/uno/AzureKeyVaultStudio/AzureKeyVaultStudio/UserControls/KeyVaultTree.xaml.cs Adjusts search debounce interval.
src/uno/AzureKeyVaultStudio/AzureKeyVaultStudio/UserControls/KeyVaultTree.xaml Binds TreeViewItem visibility to the new IsVisible property.
src/uno/AzureKeyVaultStudio/AzureKeyVaultStudio/UserControls/ItemDetails.xaml Simplifies Bool-to-Visibility bindings for edit/new buttons.
src/uno/AzureKeyVaultStudio/AzureKeyVaultStudio/Models/KeyVaultModel.cs Introduces IsVisible on KvTreeNodeModel for filtering.
src/uno/AzureKeyVaultStudio/AzureKeyVaultStudio/Models/FilterService.cs Adds visibility reset and expands filtering logic to hide/show nodes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cricketthomas cricketthomas merged commit 34d1376 into master Mar 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Search is not filtering and excluding resource groups

2 participants