From a313e4338eceeae7c5a99f5bb3076d897e2cd07f Mon Sep 17 00:00:00 2001 From: xCJPECKOVERx Date: Mon, 18 Aug 2025 19:11:53 -0400 Subject: [PATCH] feat(web): Skip duplicates (#20880) * - add skip button to duplicates-compare-control * - cleanup * - change to next/previous - move buttons to duplicates page, intead of compareControl - add param based control/position * - remove index param on keep/dedupe all * - cleanup * - cleanup index corrections * - add left/right arrow keyboard shortcuts for previous/next - cleanup * - cleanup --- i18n/en.json | 2 + .../duplicates-compare-control.svelte | 2 +- .../[[assetId=id]]/+page.svelte | 115 +++++++++++++++++- 3 files changed, 113 insertions(+), 6 deletions(-) diff --git a/i18n/en.json b/i18n/en.json index 50e3cb67e1..95fddca5d5 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -1056,6 +1056,7 @@ "filter_people": "Filter people", "filter_places": "Filter places", "find_them_fast": "Find them fast by name with search", + "first": "First", "fix_incorrect_match": "Fix incorrect match", "folder": "Folder", "folder_not_found": "Folder not found", @@ -1177,6 +1178,7 @@ "language_search_hint": "Search languages...", "language_setting_description": "Select your preferred language", "large_files": "Large Files", + "last": "Last", "last_seen": "Last seen", "latest_version": "Latest Version", "latitude": "Latitude", diff --git a/web/src/lib/components/utilities-page/duplicates/duplicates-compare-control.svelte b/web/src/lib/components/utilities-page/duplicates/duplicates-compare-control.svelte index bbea0a7a27..ccc0249043 100644 --- a/web/src/lib/components/utilities-page/duplicates/duplicates-compare-control.svelte +++ b/web/src/lib/components/utilities-page/duplicates/duplicates-compare-control.svelte @@ -112,7 +112,7 @@ ]} /> -
+
diff --git a/web/src/routes/(user)/utilities/duplicates/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/utilities/duplicates/[[photos=photos]]/[[assetId=id]]/+page.svelte index 67354d894d..cbe8f81bc5 100644 --- a/web/src/routes/(user)/utilities/duplicates/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/utilities/duplicates/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -1,10 +1,14 @@ + + {#snippet buttons()} @@ -203,13 +260,61 @@ />
- {#key duplicates[0].duplicateId} + {#key duplicates[duplicatesIndex].duplicateId} - handleResolve(duplicates[0].duplicateId, duplicateAssetIds, trashIds)} - onStack={(assets) => handleStack(duplicates[0].duplicateId, assets)} + handleResolve(duplicates[duplicatesIndex].duplicateId, duplicateAssetIds, trashIds)} + onStack={(assets) => handleStack(duplicates[duplicatesIndex].duplicateId, assets)} /> +
+
+
+ + +
+
+ + +
+
+
{/key} {:else}