Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Rename

Manav Rathief1a5358fde8
diff --git a/web/apps/photos/src/components/FileList.tsx b/web/apps/photos/src/components/FileList.tsx
index 905e81d227..16ba5b41a9 100644
--- a/web/apps/photos/src/components/FileList.tsx
+++ b/web/apps/photos/src/components/FileList.tsx
@@ -156,9 +156,12 @@ export interface FileListProps {
*/
user?: LocalUser;
/**
- * If `true`, then the current listing is showing magic search results.
+ * If `true`, then the default behaviour of grouping files by their date is
+ * suppressed.
+ *
+ * This behaviour is used when showing magic search results.
*/
- isMagicSearchResult?: boolean;
+ disableGrouping?: boolean;
selectable?: boolean;
setSelected: (
selected: SelectedState | ((selected: SelectedState) => SelectedState),
@@ -202,7 +205,7 @@ export const FileList: React.FC<FileListProps> = ({
footer,
user,
annotatedFiles,
- isMagicSearchResult,
+ disableGrouping,
selectable,
selected,
setSelected,
@@ -259,7 +262,7 @@ export const FileList: React.FC<FileListProps> = ({
if (header) {
timeStampList.push(asFullSpanListItem(header));
}
- if (isMagicSearchResult) {
+ if (disableGrouping) {
noGrouping(timeStampList);
} else {
groupByTime(timeStampList);
@@ -294,7 +297,7 @@ export const FileList: React.FC<FileListProps> = ({
annotatedFiles,
header,
footer,
- isMagicSearchResult,
+ disableGrouping,
publicCollectionGalleryContext.credentials,
]);
diff --git a/web/apps/photos/src/components/FileListWithViewer.tsx b/web/apps/photos/src/components/FileListWithViewer.tsx
index a332c70364..92c81df25f 100644
--- a/web/apps/photos/src/components/FileListWithViewer.tsx
+++ b/web/apps/photos/src/components/FileListWithViewer.tsx
@@ -58,7 +58,7 @@ export type FileListWithViewerProps = {
| "modePlus"
| "header"
| "footer"
- | "isMagicSearchResult"
+ | "disableGrouping"
| "selectable"
| "selected"
| "setSelected"
@@ -97,7 +97,7 @@ export const FileListWithViewer: React.FC<FileListWithViewerProps> = ({
user,
files,
enableDownload,
- isMagicSearchResult,
+ disableGrouping,
selectable,
selected,
setSelected,
@@ -184,7 +184,7 @@ export const FileListWithViewer: React.FC<FileListWithViewerProps> = ({
header,
footer,
user,
- isMagicSearchResult,
+ disableGrouping,
selectable,
selected,
setSelected,
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index 0cd16af4ee..6fb596b991 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -1161,7 +1161,7 @@ const Page: React.FC = () => {
user={user}
files={filteredFiles}
enableDownload={true}
- isMagicSearchResult={state.searchSuggestion?.type == "clip"}
+ disableGrouping={state.searchSuggestion?.type == "clip"}
selectable={true}
selected={selected}
setSelected={setSelected}