diff --git a/web/components/issue-layouts/header/display-filters/index.tsx b/web/components/issue-layouts/header/display-filters/index.tsx
new file mode 100644
index 000000000..33561c0ae
--- /dev/null
+++ b/web/components/issue-layouts/header/display-filters/index.tsx
@@ -0,0 +1,15 @@
+import React from "react";
+// mobx store
+import { useMobxStore } from "lib/mobx/store-provider";
+import { RootStore } from "store/root";
+
+export const DisplayPropertiesSelection = () => {
+ const store: RootStore = useMobxStore();
+ const { issueFilters: issueFilterStore, issueView: issueStore } = store;
+
+ return (
+
- {issueViewStore.loader && issueViewStore?.issues === null ? (
+ {issueViewStore.loader || issueViewStore?.getIssues === null ? (
Loading...
) : (
<>
diff --git a/web/components/issue-layouts/root.tsx b/web/components/issue-layouts/root.tsx
new file mode 100644
index 000000000..23752fe49
--- /dev/null
+++ b/web/components/issue-layouts/root.tsx
@@ -0,0 +1,14 @@
+import React from "react";
+// mobx react lite
+import { observer } from "mobx-react-lite";
+// mobx store
+import { RootStore } from "store/root";
+import { TIssueLayouts } from "store/issue-views/issue_filters";
+import { useMobxStore } from "lib/mobx/store-provider";
+
+export const IssuesRoot = observer(() => {
+ const store: RootStore = useMobxStore();
+ const { issueFilters: issueFilterStore, issueView: issueStore } = store;
+
+ return
issue root
;
+});
diff --git a/web/pages/kanban.tsx b/web/pages/kanban.tsx
index 8e0312dd9..a31d39bfc 100644
--- a/web/pages/kanban.tsx
+++ b/web/pages/kanban.tsx
@@ -3,6 +3,8 @@ import React from "react";
import useSWR from "swr";
// components
import { IssueKanBanViewRoot } from "components/issue-layouts/kanban";
+import { LayoutSelection } from "components/issue-layouts/header/layout-filter";
+import { FilterSelection } from "components/issue-layouts/header/filters";
// mobx store
import { useMobxStore } from "lib/mobx/store-provider";
import { RootStore } from "store/root";
@@ -15,21 +17,20 @@ const KanBanViewRoot = () => {
const viewSlug: string = "1f66a767-00d1-422c-8f8f-6925282b7249";
const store: RootStore = useMobxStore();
- const { issueView: issueViewStore } = store;
+ const { issueFilters: issueFilterStore, issueView: issueViewStore } = store;
React.useEffect(() => {
const init = async () => {
// my issues under a workspace
- console.log("started--->");
+ // console.log("started--->");
// await issueViewStore.getMyIssuesAsync(workspaceSlug, "my_issues", "list");
// await issueViewStore.getMyIssuesAsync(workspaceSlug, "my_issues", "kanban");
// await issueViewStore.getMyIssuesAsync(workspaceSlug, "my_issues", "calendar");
// await issueViewStore.getMyIssuesAsync(workspaceSlug, "my_issues", "spreadsheet");
// await issueViewStore.getMyIssuesAsync(workspaceSlug, "my_issues", "gantt");
-
// project issues under and workspace and project
- // await issueViewStore.getProjectIssuesAsync(workspaceSlug, projectSlug, "issues", "list");
- await issueViewStore.getProjectIssuesAsync(workspaceSlug, projectSlug, "issues", "kanban");
+ await issueViewStore.getProjectIssuesAsync(workspaceSlug, projectSlug, "issues", "list");
+ // await issueViewStore.getProjectIssuesAsync(workspaceSlug, projectSlug, "issues", "kanban");
// await issueViewStore.getProjectIssuesAsync(workspaceSlug, projectSlug, "issues", "calendar");
// await issueViewStore.getProjectIssuesAsync(
// workspaceSlug,
@@ -38,7 +39,6 @@ const KanBanViewRoot = () => {
// "spreadsheet"
// );
// await issueViewStore.getProjectIssuesAsync(workspaceSlug, projectSlug, "issues", "gantt");
-
// module issues under and workspace and project
// await issueViewStore.getIssuesForModulesAsync(
// workspaceSlug,
@@ -75,7 +75,6 @@ const KanBanViewRoot = () => {
// "modules",
// "gantt"
// );
-
// cycle issues under and workspace and project
// await issueViewStore.getIssuesForCyclesAsync(
// workspaceSlug,
@@ -112,7 +111,6 @@ const KanBanViewRoot = () => {
// "cycles",
// "gantt"
// );
-
// cycle issues under and workspace and project
// await issueViewStore.getIssuesForViewsAsync(
// workspaceSlug,
@@ -149,8 +147,7 @@ const KanBanViewRoot = () => {
// "views",
// "gantt"
// );
-
- console.log("ended--->");
+ // console.log("ended--->");
};
init();
@@ -163,10 +160,21 @@ const KanBanViewRoot = () => {
className="flex-shrink-0 h-[60px] border-b border-gray-200"
// style={{ writingMode: "vertical-lr" }}
>
- Filter Header
+