{/* priority */}
{isFilterEnabled("priority") && (
diff --git a/web/components/issues/issue-layouts/header/filters/index.ts b/web/components/issues/issue-layouts/filters/header/filters/index.ts
similarity index 89%
rename from web/components/issues/issue-layouts/header/filters/index.ts
rename to web/components/issues/issue-layouts/filters/header/filters/index.ts
index 40190a10e..847b30874 100644
--- a/web/components/issues/issue-layouts/header/filters/index.ts
+++ b/web/components/issues/issue-layouts/filters/header/filters/index.ts
@@ -1,4 +1,4 @@
-export * from "./assignees";
+export * from "./assignee";
export * from "./created-by";
export * from "./filters-selection";
export * from "./labels";
diff --git a/web/components/issues/issue-layouts/header/filters/labels.tsx b/web/components/issues/issue-layouts/filters/header/filters/labels.tsx
similarity index 100%
rename from web/components/issues/issue-layouts/header/filters/labels.tsx
rename to web/components/issues/issue-layouts/filters/header/filters/labels.tsx
diff --git a/web/components/issues/issue-layouts/header/filters/priority.tsx b/web/components/issues/issue-layouts/filters/header/filters/priority.tsx
similarity index 100%
rename from web/components/issues/issue-layouts/header/filters/priority.tsx
rename to web/components/issues/issue-layouts/filters/header/filters/priority.tsx
diff --git a/web/components/issues/issue-layouts/header/filters/start-date.tsx b/web/components/issues/issue-layouts/filters/header/filters/start-date.tsx
similarity index 100%
rename from web/components/issues/issue-layouts/header/filters/start-date.tsx
rename to web/components/issues/issue-layouts/filters/header/filters/start-date.tsx
diff --git a/web/components/issues/issue-layouts/header/filters/state-group.tsx b/web/components/issues/issue-layouts/filters/header/filters/state-group.tsx
similarity index 100%
rename from web/components/issues/issue-layouts/header/filters/state-group.tsx
rename to web/components/issues/issue-layouts/filters/header/filters/state-group.tsx
diff --git a/web/components/issues/issue-layouts/header/filters/state.tsx b/web/components/issues/issue-layouts/filters/header/filters/state.tsx
similarity index 100%
rename from web/components/issues/issue-layouts/header/filters/state.tsx
rename to web/components/issues/issue-layouts/filters/header/filters/state.tsx
diff --git a/web/components/issues/issue-layouts/header/filters/target-date.tsx b/web/components/issues/issue-layouts/filters/header/filters/target-date.tsx
similarity index 100%
rename from web/components/issues/issue-layouts/header/filters/target-date.tsx
rename to web/components/issues/issue-layouts/filters/header/filters/target-date.tsx
diff --git a/web/components/issues/issue-layouts/header/helpers/dropdown.tsx b/web/components/issues/issue-layouts/filters/header/helpers/dropdown.tsx
similarity index 100%
rename from web/components/issues/issue-layouts/header/helpers/dropdown.tsx
rename to web/components/issues/issue-layouts/filters/header/helpers/dropdown.tsx
diff --git a/web/components/issues/issue-layouts/header/helpers/filter-header.tsx b/web/components/issues/issue-layouts/filters/header/helpers/filter-header.tsx
similarity index 100%
rename from web/components/issues/issue-layouts/header/helpers/filter-header.tsx
rename to web/components/issues/issue-layouts/filters/header/helpers/filter-header.tsx
diff --git a/web/components/issues/issue-layouts/header/helpers/filter-option.tsx b/web/components/issues/issue-layouts/filters/header/helpers/filter-option.tsx
similarity index 100%
rename from web/components/issues/issue-layouts/header/helpers/filter-option.tsx
rename to web/components/issues/issue-layouts/filters/header/helpers/filter-option.tsx
diff --git a/web/components/issues/issue-layouts/header/helpers/index.ts b/web/components/issues/issue-layouts/filters/header/helpers/index.ts
similarity index 100%
rename from web/components/issues/issue-layouts/header/helpers/index.ts
rename to web/components/issues/issue-layouts/filters/header/helpers/index.ts
diff --git a/web/components/issues/issue-layouts/header/index.ts b/web/components/issues/issue-layouts/filters/header/index.ts
similarity index 100%
rename from web/components/issues/issue-layouts/header/index.ts
rename to web/components/issues/issue-layouts/filters/header/index.ts
diff --git a/web/components/issues/issue-layouts/header/layout-selection.tsx b/web/components/issues/issue-layouts/filters/header/layout-selection.tsx
similarity index 100%
rename from web/components/issues/issue-layouts/header/layout-selection.tsx
rename to web/components/issues/issue-layouts/filters/header/layout-selection.tsx
diff --git a/web/components/issues/issue-layouts/filters/index.ts b/web/components/issues/issue-layouts/filters/index.ts
new file mode 100644
index 000000000..427d96943
--- /dev/null
+++ b/web/components/issues/issue-layouts/filters/index.ts
@@ -0,0 +1,2 @@
+export * from "./header";
+export * from "./applied-filters";
diff --git a/web/components/issues/issue-layouts/index.ts b/web/components/issues/issue-layouts/index.ts
index f000ec7bf..8840e08df 100644
--- a/web/components/issues/issue-layouts/index.ts
+++ b/web/components/issues/issue-layouts/index.ts
@@ -1,5 +1,5 @@
export * from "./calendar";
+export * from "./filters";
export * from "./gantt";
-export * from "./header";
export * from "./kanban";
export * from "./spreadsheet";
diff --git a/web/store/issue_filters.ts b/web/store/issue_filters.ts
index ab2d6e0dd..c8af5a51f 100644
--- a/web/store/issue_filters.ts
+++ b/web/store/issue_filters.ts
@@ -112,22 +112,6 @@ class IssueFilterStore implements IIssueFilterStore {
return computedFilters;
};
- calendarLayoutDateRange = () => {
- const { activeMonthDate, activeWeekDate } = this.rootStore.calendar.calendarFilters;
-
- const calendarLayout = this.userDisplayFilters.calendar?.layout ?? "month";
-
- let filterDate = new Date();
-
- if (calendarLayout === "month") filterDate = activeMonthDate;
- else filterDate = activeWeekDate;
-
- const startOfMonth = renderDateFormat(new Date(filterDate.getFullYear(), filterDate.getMonth(), 1));
- const endOfMonth = renderDateFormat(new Date(filterDate.getFullYear(), filterDate.getMonth() + 1, 0));
-
- return [`${startOfMonth};after`, `${endOfMonth};before`];
- };
-
get appliedFilters(): TIssueParams[] | null {
if (
!this.userFilters ||
@@ -155,12 +139,12 @@ class IssueFilterStore implements IIssueFilterStore {
start_target_date: this.userDisplayFilters?.start_target_date || true,
};
- if (this.userDisplayFilters.layout === "calendar") filteredRouteParams.target_date = this.calendarLayoutDateRange();
- if (this.userDisplayFilters.layout === "gantt_chart") filteredRouteParams.start_target_date = true;
-
const filteredParams = handleIssueQueryParamsByLayout(this.userDisplayFilters.layout, "issues");
if (filteredParams) filteredRouteParams = this.computedFilter(filteredRouteParams, filteredParams);
+ if (this.userDisplayFilters.layout === "calendar") filteredRouteParams.group_by = "target_date";
+ if (this.userDisplayFilters.layout === "gantt_chart") filteredRouteParams.start_target_date = true;
+
return filteredRouteParams;
}