fix: Add missing project and subscriber filters to the list of filter params (#3497)

* add missing project and subscriber filters to the list of filter params

* add toast message on successfully marking all notifications as read
This commit is contained in:
rahulramesha 2024-01-29 17:26:48 +05:30 committed by GitHub
parent c4efdcd704
commit 00e07443b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 21 additions and 1 deletions

View File

@ -95,6 +95,7 @@ export const NotificationHeader: React.FC<NotificationHeaderProps> = (props) =>
<MoreVertical className="h-3.5 w-3.5" />
</div>
}
closeOnSelect
>
<CustomMenu.MenuItem onClick={markAllNotificationsAsRead}>
<div className="flex items-center gap-2">

View File

@ -304,7 +304,17 @@ export const ISSUE_DISPLAY_FILTERS_BY_LAYOUT: {
},
my_issues: {
spreadsheet: {
filters: ["priority", "state_group", "labels", "assignees", "created_by", "project", "start_date", "target_date"],
filters: [
"priority",
"state_group",
"labels",
"assignees",
"created_by",
"subscriber",
"project",
"start_date",
"target_date",
],
display_properties: true,
display_filters: {
type: [null, "active", "backlog"],

View File

@ -264,6 +264,13 @@ const useUserNotification = () => {
await userNotificationServices
.markAllNotificationsAsRead(workspaceSlug.toString(), markAsReadParams)
.then(() => {
setToastAlert({
type: "success",
title: "Success!",
message: "All Notifications marked as read.",
});
})
.catch(() => {
setToastAlert({
type: "error",

View File

@ -76,6 +76,8 @@ export class IssueFilterHelperStore implements IIssueFilterHelperStore {
labels: filters?.labels || undefined,
start_date: filters?.start_date || undefined,
target_date: filters?.target_date || undefined,
project: filters.project || undefined,
subscriber: filters.subscriber || undefined,
// display filters
type: displayFilters?.type || undefined,
sub_issue: displayFilters?.sub_issue ?? true,