Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

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

rahulramesha00e07443b030
diff --git a/web/components/notifications/notification-header.tsx b/web/components/notifications/notification-header.tsx
index dc92dc9d52..39bf0e8fb5 100644
--- a/web/components/notifications/notification-header.tsx
+++ b/web/components/notifications/notification-header.tsx
@@ -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">
diff --git a/web/constants/issue.ts b/web/constants/issue.ts
index f351b25f14..378123f3a0 100644
--- a/web/constants/issue.ts
+++ b/web/constants/issue.ts
@@ -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"],
diff --git a/web/hooks/use-user-notifications.tsx b/web/hooks/use-user-notifications.tsx
index e8a0c1d34c..17a2c63dcc 100644
--- a/web/hooks/use-user-notifications.tsx
+++ b/web/hooks/use-user-notifications.tsx
@@ -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",
diff --git a/web/store/issue/helpers/issue-filter-helper.store.ts b/web/store/issue/helpers/issue-filter-helper.store.ts
index f3a4456fb6..ac89c5018e 100644
--- a/web/store/issue/helpers/issue-filter-helper.store.ts
+++ b/web/store/issue/helpers/issue-filter-helper.store.ts
@@ -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,