[PR #245] feat: misc improvements — HelpMenu update button, command palette permissions, localization cache #328

Closed
opened 2026-03-07 19:57:35 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/Corsinvest/cv4pve-admin/pull/245

State: closed
Merged: Yes


Summary

  • HelpMenu: move release update logic from MainLayout; add upgrade button with PermissionView (shown only when auto-update is supported)
  • Command Palette: filter commands by permission using IPermissionService before displaying results; SearchCommand gets optional PermissionKey; PveSearchProvider assigns ClusterPermissions keys to VM commands (power, console, snapshot)
  • IReleaseService / ReleaseService: expose GetLatestReleaseAsync as public API
  • JsonLocalizationService: add ClearCacheAsync with FusionCache tag support
  • Maintenance: call ClearCacheAsync on memory cache clear to also purge localization cache
  • Minor whitespace/formatting fixes

Test plan

  • HelpMenu shows upgrade button when update is available and user has Upgrade permission
  • Command palette hides Start/Stop/Restart for users without PowerManagement permission
  • Command palette hides Console for users without Console permission
  • Command palette hides Create Snapshot for users without Snapshot permission
  • Maintenance clear cache also clears localization cache
**Original Pull Request:** https://github.com/Corsinvest/cv4pve-admin/pull/245 **State:** closed **Merged:** Yes --- ## Summary - **HelpMenu**: move release update logic from MainLayout; add upgrade button with `PermissionView` (shown only when auto-update is supported) - **Command Palette**: filter commands by permission using `IPermissionService` before displaying results; `SearchCommand` gets optional `PermissionKey`; `PveSearchProvider` assigns `ClusterPermissions` keys to VM commands (power, console, snapshot) - **IReleaseService / ReleaseService**: expose `GetLatestReleaseAsync` as public API - **JsonLocalizationService**: add `ClearCacheAsync` with FusionCache tag support - **Maintenance**: call `ClearCacheAsync` on memory cache clear to also purge localization cache - Minor whitespace/formatting fixes ## Test plan - [ ] HelpMenu shows upgrade button when update is available and user has Upgrade permission - [ ] Command palette hides Start/Stop/Restart for users without PowerManagement permission - [ ] Command palette hides Console for users without Console permission - [ ] Command palette hides Create Snapshot for users without Snapshot permission - [ ] Maintenance clear cache also clears localization cache
kerem 2026-03-07 19:57:35 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cv4pve-admin#328
No description provided.