From 3f87fd1a5aa99628cb5b2ec26b2bf033d24f57d3 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 27 Jun 2025 17:17:48 +0530 Subject: [PATCH] Rename --- .../src/components/Collections/CollectionHeader.tsx | 2 +- .../new/photos/components/gallery/reducer.ts | 4 ++-- .../new/photos/services/collection-summary.ts | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/web/apps/photos/src/components/Collections/CollectionHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsx index 4e8c251d09..ba37199e03 100644 --- a/web/apps/photos/src/components/Collections/CollectionHeader.tsx +++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx @@ -114,7 +114,7 @@ export const CollectionHeader: React.FC = (props) => { }; const shouldShowOptions = (type: CollectionSummaryType) => - type != "all" && type != "archive"; + type != "all" && type != "archiveItems"; const CollectionHeaderOptions: React.FC = ({ activeCollection, diff --git a/web/packages/new/photos/components/gallery/reducer.ts b/web/packages/new/photos/components/gallery/reducer.ts index b11316254c..22a77b07e9 100644 --- a/web/packages/new/photos/components/gallery/reducer.ts +++ b/web/packages/new/photos/components/gallery/reducer.ts @@ -1343,8 +1343,8 @@ const deriveNormalCollectionSummaries = ( ...pseudoCollectionOptionsForFiles(archiveItemsFiles), id: PseudoCollectionID.archiveItems, name: t("section_archive"), - type: "archive", - attributes: new Set(["archive"]), + type: "archiveItems", + attributes: new Set(["archiveItems"]), coverFile: undefined, sortPriority: CollectionSummarySortPriority.other, }); diff --git a/web/packages/new/photos/services/collection-summary.ts b/web/packages/new/photos/services/collection-summary.ts index 1bb344299d..7611e62d32 100644 --- a/web/packages/new/photos/services/collection-summary.ts +++ b/web/packages/new/photos/services/collection-summary.ts @@ -4,19 +4,19 @@ import type { EnteFile } from "ente-media/file"; export type CollectionSummaryType = | CollectionType | "all" - | "archive" - | "trash" | "hiddenItems" | "defaultHidden" + | "archiveItems" + | "trash" | "sharedIncoming"; export type CollectionSummaryAttribute = | CollectionType | "all" - | "archive" - | "trash" | "hiddenItems" | "defaultHidden" + | "archiveItems" + | "trash" | "shared" | "sharedOutgoing" | "sharedIncoming" @@ -214,7 +214,7 @@ export type CollectionSummarySortPriority = const systemCSTypes = new Set([ "all", - "archive", + "archiveItems", "trash", "uncategorized", "hiddenItems", @@ -228,7 +228,7 @@ const moveToDisabledCSTypes = new Set([ const hideFromCollectionBarCSTypes = new Set([ "trash", - "archive", + "archiveItems", "uncategorized", "defaultHidden", ]);