feat(UI/notifications): add ActionVisibility for conditional action display

Add a `Visibility` field to the `Action` struct allowing actions to be
hidden in the compact notification view and only shown when the user
expands the full notification (value: "detailed").

- base/notifications: add `ActionVisibility` type and `ActionVisibilityDetailed`
  constant to `Action` struct
- notifications.types.ts: expose `Visibility` field on the frontend `BaseAction`
  interface
- notification-list.component.html: filter out `detailed` actions in the
  compact list view
- generic-setting.ts: set default `Visibility: ''` on the inline UI action
This commit is contained in:
Alexandr Stelnykovych 2026-03-09 18:12:42 +02:00
parent 73460f522d
commit e395dafa14
4 changed files with 23 additions and 3 deletions

View file

@ -355,6 +355,7 @@ export class GenericSettingComponent<S extends BaseSetting<any, any>> implements
ID: '',
Text: '',
Type: 'ui',
Visibility: '',
Run: async () => {
if (!this.helpTemplate) {
return;