Skip to content

Gate Add/Close-All on open logs and Security/State on admin elevation#508

Merged
jschick04 merged 2 commits intomainfrom
jschick/update_filemenu
May 1, 2026
Merged

Gate Add/Close-All on open logs and Security/State on admin elevation#508
jschick04 merged 2 commits intomainfrom
jschick/update_filemenu

Conversation

@jschick04
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 1, 2026 03:06
Copy link
Copy Markdown
Contributor

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

Updates the MAUI/Blazor menu behavior to better reflect application state (open logs) and security context (admin elevation), while avoiding duplicate live log entries in dynamic enumeration.

Changes:

  • Disable “Combine” and “Close All” when no logs are currently open.
  • Gate admin-only live logs (e.g., Security/State) in the Live log menu based on elevation.
  • Filter dynamically-enumerated live logs to exclude those already hard-coded in the menu, and add tests for the new log name sets.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/EventLogExpert/Shared/Components/Menu/MenuBar.razor.cs Adds state-driven enable/disable for menu items and admin gating for certain live logs.
src/EventLogExpert/Services/MauiMenuActionService.cs Filters dynamically enumerated log names to avoid duplicates with the hard-coded Live menu items.
src/EventLogExpert.UI/LogNameMethods.cs Introduces centralized sets for admin-only and hard-coded live log names.
src/EventLogExpert.UI.Tests/LogNameMethodsTests.cs Adds unit tests covering the new log name sets (contents and case-insensitivity).

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

Comment thread src/EventLogExpert/Shared/Components/Menu/MenuBar.razor.cs
Comment thread src/EventLogExpert/Shared/Components/Menu/MenuBar.razor.cs Outdated
@jschick04 jschick04 force-pushed the jschick/update_filemenu branch from dc34f2c to 74f5a90 Compare May 1, 2026 03:37
Copy link
Copy Markdown
Contributor

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

Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.


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

@jschick04 jschick04 marked this pull request as ready for review May 1, 2026 03:40
@jschick04 jschick04 requested a review from a team as a code owner May 1, 2026 03:40
@jschick04 jschick04 merged commit b46e2d8 into main May 1, 2026
6 checks passed
@jschick04 jschick04 deleted the jschick/update_filemenu branch May 1, 2026 12:59
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.

3 participants