diff --git a/ui2/src/features/nodes/components/Commander/DocumentsByCategoryCommander.tsx b/ui2/src/features/nodes/components/Commander/DocumentsByCategoryCommander.tsx
deleted file mode 100644
index e69de29bb..000000000
diff --git a/ui2/src/features/nodes/components/Commander/DocumentsByTypeCommander/ActionButtons.tsx b/ui2/src/features/nodes/components/Commander/DocumentsByTypeCommander/ActionButtons.tsx
new file mode 100644
index 000000000..6e7a9d459
--- /dev/null
+++ b/ui2/src/features/nodes/components/Commander/DocumentsByTypeCommander/ActionButtons.tsx
@@ -0,0 +1,10 @@
+import {Group} from "@mantine/core"
+import ViewOptionsMenu from "../ViewOptionsMenu"
+
+export default function ActionButtons() {
+ return (
+
+
+
+ )
+}
diff --git a/ui2/src/features/nodes/components/Commander/DocumentsByTypeCommander/DocumentTypeFilter.tsx b/ui2/src/features/nodes/components/Commander/DocumentsByTypeCommander/DocumentTypeFilter.tsx
new file mode 100644
index 000000000..7a7b74c42
--- /dev/null
+++ b/ui2/src/features/nodes/components/Commander/DocumentsByTypeCommander/DocumentTypeFilter.tsx
@@ -0,0 +1,11 @@
+import {Select} from "@mantine/core"
+
+export default function DocumentTypeFilter() {
+ return (
+
+ )
+}
diff --git a/ui2/src/features/nodes/components/Commander/DocumentsByTypeCommander/DocumentsByTypeCommander.tsx b/ui2/src/features/nodes/components/Commander/DocumentsByTypeCommander/DocumentsByTypeCommander.tsx
new file mode 100644
index 000000000..0ded8c70c
--- /dev/null
+++ b/ui2/src/features/nodes/components/Commander/DocumentsByTypeCommander/DocumentsByTypeCommander.tsx
@@ -0,0 +1,19 @@
+import ToggleSecondaryPanel from "@/components/DualPanel/ToggleSecondaryPanel"
+import {Box, Group, Stack} from "@mantine/core"
+import ActionButtons from "./ActionButtons"
+import DocumentTypeFilter from "./DocumentTypeFilter"
+
+export default function DocumentsByCategoryCommander() {
+ return (
+
+
+
+
+
+
+
+
+ Empty
+
+ )
+}
diff --git a/ui2/src/features/nodes/components/Commander/DocumentsByTypeCommander/index.tsx b/ui2/src/features/nodes/components/Commander/DocumentsByTypeCommander/index.tsx
new file mode 100644
index 000000000..aae13b7b1
--- /dev/null
+++ b/ui2/src/features/nodes/components/Commander/DocumentsByTypeCommander/index.tsx
@@ -0,0 +1,3 @@
+import DocumentsByCategoryCommander from "./DocumentsByTypeCommander"
+
+export default DocumentsByCategoryCommander
diff --git a/ui2/src/features/nodes/components/Commander/ViewOptionsMenu.tsx b/ui2/src/features/nodes/components/Commander/ViewOptionsMenu.tsx
index 4878ab5b0..f9d8afa97 100644
--- a/ui2/src/features/nodes/components/Commander/ViewOptionsMenu.tsx
+++ b/ui2/src/features/nodes/components/Commander/ViewOptionsMenu.tsx
@@ -1,6 +1,10 @@
-import {useAppDispatch} from "@/app/hooks"
+import {useAppDispatch, useAppSelector} from "@/app/hooks"
import PanelContext from "@/contexts/PanelContext"
-import type {ViewOptionColumn} from "@/types"
+import {
+ commanderViewOptionUpdated,
+ selectCommanderViewOption
+} from "@/features/ui/uiSlice"
+import type {ViewOption} from "@/types"
import {ActionIcon, Menu} from "@mantine/core"
import {IconCheck, IconListDetails} from "@tabler/icons-react"
import {useContext} from "react"
@@ -8,14 +12,14 @@ import {useContext} from "react"
export default function ViewOptionsMenu() {
const dispatch = useAppDispatch()
const mode = useContext(PanelContext)
+ const viewOption = useAppSelector(s => selectCommanderViewOption(s, mode))
- const onViewOptionsChanged = (column: ViewOptionColumn) => {
- //dispatch(commanderSortMenuColumnUpdated({mode, column}))
- console.log(column)
+ const onViewOptionsChanged = (value: ViewOption) => {
+ dispatch(commanderViewOptionUpdated({mode, viewOption: value}))
}
return (
-