mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-12 17:22:38 +02:00
feat: add filtering options for notifications by 'unread' and 'errors', enhancing user experience in the notifications list
This commit is contained in:
parent
1aa2c8a334
commit
bd783cc2d0
5 changed files with 84 additions and 17 deletions
|
|
@ -47,6 +47,9 @@ class NotificationsApiService {
|
|||
if (queryParams.source_type) {
|
||||
params.append("source_type", queryParams.source_type);
|
||||
}
|
||||
if (queryParams.filter) {
|
||||
params.append("filter", queryParams.filter);
|
||||
}
|
||||
if (queryParams.before_date) {
|
||||
params.append("before_date", queryParams.before_date);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -100,5 +100,7 @@ export const cacheKeys = {
|
|||
["notifications", "source-types", searchSpaceId] as const,
|
||||
bySourceType: (searchSpaceId: number | null, sourceType: string) =>
|
||||
["notifications", "by-source-type", searchSpaceId, sourceType] as const,
|
||||
byFilter: (searchSpaceId: number | null, filter: string) =>
|
||||
["notifications", "by-filter", searchSpaceId, filter] as const,
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue