Policies Library color tagging for AppControl Manager#1118
Merged
Conversation
You can now tag policies in the library with colors to help with easy recognition or categorization of them. You can choose from a pre-defined set of colors or use the color picker to select any color you like.
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds color tagging to the Policies Library so users can visually categorize policies and have those tags persist across sessions.
Changes:
- Adds a JSON-backed cache (
PolicyColors.json) to persist policy color tags by policy GUID. - Adds UI affordances to set predefined/custom colors and shows a tag indicator in the sidebar list.
- Cleans up color cache entries when policies are removed/cleared.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| AppControl Manager/ViewModels/MainWindowVM.cs | Loads/saves color tags to a JSON cache and applies tag brushes during library load. |
| AppControl Manager/Strings/en-US/Resources.resw | Adds localized strings for the “Set Color” submenu. |
| AppControl Manager/SiPolicy/PolicyFileRepresent.cs | Adds tag brush/visibility properties and a JSON source-gen context. |
| AppControl Manager/MainWindow.xaml.cs | Adds handlers for setting custom/predefined colors and removes cache entries on delete. |
| AppControl Manager/MainWindow.xaml | Adds “Set Color” context menu and renders the color tag indicator in the list item UI. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
You can now tag policies in the library with colors to help with easy recognition or categorization of them. You can choose from a pre-defined set of colors or use the color picker to select any color you like.