Add notification filters

This commit is contained in:
2026-04-24 20:02:22 +00:00
parent 5f74ddd964
commit c54df44ebe
24 changed files with 1288 additions and 7 deletions
@@ -0,0 +1,5 @@
export type NotificationActionFilterModel = {
attribute: string;
operator: string;
value: string | string[] | null;
};
@@ -1,3 +1,5 @@
import type { NotificationActionFilterModel } from '@/types/models/notification-action-filter-model';
export type NotificationActionModel = {
id: number;
project_id: number;
@@ -8,6 +10,7 @@ export type NotificationActionModel = {
channel: string;
channel_label: string;
channel_configuration: Record<string, unknown>;
filters: NotificationActionFilterModel[];
has_delivery_url: boolean;
message_template: string | null;
created_at: string | null;
+2
View File
@@ -109,6 +109,8 @@ export type ProjectRepositorySettingsPageProps = {
export type ProjectNotificationSettingsPageProps = {
channelOptions: NotificationActionOptionModel[];
eventTypeOptions: NotificationActionOptionModel[];
filterAttributeOptions: NotificationActionOptionModel[];
filterOperatorOptions: NotificationActionOptionModel[];
notificationActions: NotificationActionModel[];
project: ProjectModel;
status?: string | null;