diff --git a/components/GrouppedStatusView/GrouppedStatusView.tsx b/components/GroupedStatusView/GroupedStatusView.tsx similarity index 95% rename from components/GrouppedStatusView/GrouppedStatusView.tsx rename to components/GroupedStatusView/GroupedStatusView.tsx index ea18300..521836a 100644 --- a/components/GrouppedStatusView/GrouppedStatusView.tsx +++ b/components/GroupedStatusView/GroupedStatusView.tsx @@ -22,7 +22,7 @@ export type GroupedByStatus = { [frontmatterTag: string]: FilesByStatus; }; -export type GrouppedStatusViewProps = { +export type GroupedStatusViewProps = { getAllFiles: () => FileItem[]; processFiles: (files: FileItem[]) => GroupedByStatus; onFileClick: (file: FileItem) => void; @@ -32,13 +32,13 @@ export type GrouppedStatusViewProps = { const ITEMS_PER_LOAD = 20; -export const GrouppedStatusView = ({ +export const GroupedStatusView = ({ getAllFiles, processFiles, onFileClick, subscribeToEvents, getAvailableStatuses, -}: GrouppedStatusViewProps) => { +}: GroupedStatusViewProps) => { const [groupedData, setGroupedData] = useState({}); const [searchFilter, setSearchFilter] = useState(""); const [noteNameFilter, setNoteNameFilter] = useState(""); @@ -206,8 +206,8 @@ export const GrouppedStatusView = ({ if (isLoading) { return ( -
-
+
+
Loading statuses...
@@ -215,7 +215,7 @@ export const GrouppedStatusView = ({ } return ( -
+
-
+
{Object.entries(filteredData).map(([tag, statusGroups]) => { const tagKey = `tag-${tag}`; const isTagExpanded = expandedGroups.has(tagKey); @@ -247,7 +247,7 @@ export const GrouppedStatusView = ({ })} {Object.keys(filteredData).length === 0 && ( -
+
{searchFilter ? "No files match your search." : "No statuses found."} diff --git a/components/GrouppedStatusView/components/FileList.tsx b/components/GroupedStatusView/components/FileList.tsx similarity index 76% rename from components/GrouppedStatusView/components/FileList.tsx rename to components/GroupedStatusView/components/FileList.tsx index 3b66dcd..d5c3f41 100644 --- a/components/GrouppedStatusView/components/FileList.tsx +++ b/components/GroupedStatusView/components/FileList.tsx @@ -1,5 +1,5 @@ import React, { useCallback } from "react"; -import { FileItem } from "../GrouppedStatusView"; +import { FileItem } from "../GroupedStatusView"; interface FileListProps { files: FileItem[]; @@ -44,27 +44,27 @@ export const FileList = ({ ); return ( -
-
+
+
{visibleFiles.map((file) => (
handleFileClick(file)} > - + {file.name} - + {file.path}
))} {hasMoreItems && ( -
+