New pathway

This commit is contained in:
Manav Rathi
2025-07-17 10:37:02 +05:30
parent 479f2188b6
commit ec532ad2ac

View File

@@ -84,6 +84,18 @@ type FileListItem = {
* behaviour.
*/
tag?: "date" | "file" | "span";
/**
* Groups of items that are shown in the row.
*
* Each group spans multiple columns (the number of columns being given by
* the length of {@link annotatedFiles} or the {@link span}). Groups are
* separated by gaps.
*/
fGroups?: {
annotatedFiles: FileListAnnotatedFile[];
annotatedFilesStartIndex: number;
}[];
dGroups?: { date: string; span: number }[];
items?: FileListAnnotatedFile[];
itemStartIndex?: number;
date?: string | null;
@@ -319,10 +331,11 @@ export const FileList: React.FC<FileListProps> = ({
});
}
}
if (!isSmallerLayout) {
items = mergeRowsWherePossible(items, columns);
}
}
if (!isSmallerLayout) items = mergeRowsWherePossible(items, columns);
if (!annotatedFiles.length) {
items.push({
height: height - 48,