Skip to content

armgit / ente

Public Imported from GitHub
0

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

chore(people-sort):move-to-utils

Aswin Asokdf9be1f7f0a9
diff --git a/web/apps/photos/src/components/Collections/AllPeople.tsx b/web/apps/photos/src/components/Collections/AllPeople.tsx
index 25b323bf8c..2f907ec085 100644
--- a/web/apps/photos/src/components/Collections/AllPeople.tsx
+++ b/web/apps/photos/src/components/Collections/AllPeople.tsx
@@ -1,6 +1,6 @@
-import { sortPeople, type PeopleSortBy } from "@/components/people-sort";
import { PeopleSortOptions } from "@/components/PeopleSortOptions";
import { useWrapAsyncOperation } from "@/components/utils/use-wrap-async";
+import { sortPeople, type PeopleSortBy } from "@/utils/people-sort";
import {
ArrowDownDoubleIcon,
ArrowUpDoubleIcon,
diff --git a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx
index 6509c96bec..6f88db05fb 100644
--- a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx
+++ b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx
@@ -12,7 +12,7 @@ import {
type GalleryBarImplProps,
} from "@/components/gallery/BarImpl";
import { PeopleHeader } from "@/components/gallery/PeopleHeader";
-import { sortPeople, type PeopleSortBy } from "@/components/people-sort";
+import { sortPeople, type PeopleSortBy } from "@/utils/people-sort";
import { useModalVisibility } from "ente-base/components/utils/modal";
import {
isSaveCancelled,
diff --git a/web/apps/photos/src/components/PeopleSortOptions.tsx b/web/apps/photos/src/components/PeopleSortOptions.tsx
index a606d415a7..37ab8d1d50 100644
--- a/web/apps/photos/src/components/PeopleSortOptions.tsx
+++ b/web/apps/photos/src/components/PeopleSortOptions.tsx
@@ -1,4 +1,4 @@
-import type { PeopleSortBy } from "@/components/people-sort";
+import type { PeopleSortBy } from "@/utils/people-sort";
import { ArrowDown02Icon, ArrowUp02Icon } from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import SortIcon from "@mui/icons-material/Sort";
diff --git a/web/apps/photos/src/components/gallery/BarImpl.tsx b/web/apps/photos/src/components/gallery/BarImpl.tsx
index 0d288824f3..a11c0ac640 100644
--- a/web/apps/photos/src/components/gallery/BarImpl.tsx
+++ b/web/apps/photos/src/components/gallery/BarImpl.tsx
@@ -1,7 +1,7 @@
import { CollectionsSortOptions } from "@/components/CollectionsSortOptions";
import { StarIcon } from "@/components/icons/StarIcon";
-import type { PeopleSortBy } from "@/components/people-sort";
import { PeopleSortOptions } from "@/components/PeopleSortOptions";
+import type { PeopleSortBy } from "@/utils/people-sort";
import { Link05Icon, PinIcon } from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import ArchiveIcon from "@mui/icons-material/Archive";
diff --git a/web/apps/photos/src/components/people-sort.ts b/web/apps/photos/src/utils/people-sort.ts
similarity index 100%
rename from web/apps/photos/src/components/people-sort.ts
rename to web/apps/photos/src/utils/people-sort.ts
diff --git a/web/apps/photos/tests/file-actions.test.ts b/web/apps/photos/tests/file-actions.test.ts
index f6b8d8b2e8..c334eba472 100644
--- a/web/apps/photos/tests/file-actions.test.ts
+++ b/web/apps/photos/tests/file-actions.test.ts
@@ -1,6 +1,6 @@
-import { getAvailableFileActions } from "@/utils/file-actions";
import type { CollectionSummary } from "ente-new/photos/services/collection-summary";
import { describe, expect, test } from "vitest";
+import { getAvailableFileActions } from "../src/utils/file-actions";
describe("getAvailableFileActions", () => {
test("uses shared actions for an incoming uncategorized collection", () => {
diff --git a/web/apps/photos/vitest.config.ts b/web/apps/photos/vitest.config.ts
deleted file mode 100644
index c6ba486028..0000000000
--- a/web/apps/photos/vitest.config.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-import path from "node:path";
-import { defineConfig } from "vitest/config";
-
-export default defineConfig({
- resolve: { alias: { "@": path.resolve(__dirname, "./src") } },
-});
diff --git a/web/package-lock.json b/web/package-lock.json
index 46983cbe73..5f31f187f2 100644
--- a/web/package-lock.json
+++ b/web/package-lock.json
@@ -11253,11 +11253,11 @@
"ente-base": "*",
"ente-gallery": "*",
"ente-utils": "*",
+ "i18next": "26.3.1",
"react": "19.2.7"
},
"devDependencies": {
"@types/react": "19.2.17",
- "@types/react-dom": "19.2.3",
"ente-build-config": "*"
}
},
diff --git a/web/packages/new/package.json b/web/packages/new/package.json
index 2bedfbbdfd..29a4a8afa6 100644
--- a/web/packages/new/package.json
+++ b/web/packages/new/package.json
@@ -9,11 +9,11 @@
"ente-base": "*",
"ente-gallery": "*",
"ente-utils": "*",
+ "i18next": "26.3.1",
"react": "19.2.7"
},
"devDependencies": {
"@types/react": "19.2.17",
- "@types/react-dom": "19.2.3",
"ente-build-config": "*"
}
}