style: ui improvement to the notification cards.

This commit is contained in:
Nathnael
2026-07-06 10:54:43 +00:00
parent ca3a6072d8
commit 298ad6227b
11 changed files with 211 additions and 109 deletions

View File

@@ -1,5 +1,9 @@
import { CurrentUser } from "@edr/api-common";
import { NotificationAudience } from "@edr/types";
import {
NotificationAudience,
NotificationPriority,
NotificationType,
} from "@edr/types";
import {
Body,
Controller,
@@ -62,7 +66,13 @@ export class NotificationInboxController {
sendTest(
@CurrentUser() user: AuthUserPayload,
@Body()
body: { audience?: NotificationAudience; title?: string; message?: string },
body: {
audience?: NotificationAudience;
type?: NotificationType;
priority?: NotificationPriority;
title?: string;
message?: string;
},
) {
return this.service.sendTestToUser(resolveAuthUserId(user), body ?? {});
}