From 4c85db7834b4c9a572557665f9a9e9ddbcdfdeb0 Mon Sep 17 00:00:00 2001 From: Paul Larsen Date: Thu, 16 Oct 2025 23:08:52 +0200 Subject: [PATCH 1/2] Update diff --- .../[[assetId=id]]/+page.svelte | 69 ++++++++++++++++++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git a/web/src/routes/(user)/tags/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/tags/[[photos=photos]]/[[assetId=id]]/+page.svelte index 442d3cef6c..ecb61a7f67 100644 --- a/web/src/routes/(user)/tags/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/tags/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -15,9 +15,24 @@ import { joinPaths, TreeNode } from '$lib/utils/tree-utils'; import { deleteTag, getAllTags, type TagResponseDto } from '@immich/sdk'; import { Button, HStack, modalManager, Text } from '@immich/ui'; - import { mdiPencil, mdiPlus, mdiTag, mdiTagMultiple, mdiTrashCanOutline } from '@mdi/js'; + import { mdiDotsVertical, mdiPencil, mdiPlus, mdiTag, mdiTagMultiple, mdiTrashCanOutline } from '@mdi/js'; import { t } from 'svelte-i18n'; + import { preferences } from '$lib/stores/user.store'; import type { PageData } from './$types'; + import ChangeDescription from '$lib/components/timeline/actions/ChangeDescriptionAction.svelte'; + import DeleteAssets from '$lib/components/timeline/actions/DeleteAssetsAction.svelte'; + import ArchiveAction from '$lib/components/timeline/actions/ArchiveAction.svelte'; + import AssetSelectControlBar from '$lib/components/timeline/AssetSelectControlBar.svelte'; + import ButtonContextMenu from '$lib/components/shared-components/context-menu/button-context-menu.svelte'; + import TagAction from '$lib/components/timeline/actions/TagAction.svelte'; + import AddToAlbum from '$lib/components/timeline/actions/AddToAlbumAction.svelte'; + import ChangeDate from '$lib/components/timeline/actions/ChangeDateAction.svelte'; + import ChangeLocation from '$lib/components/timeline/actions/ChangeLocationAction.svelte'; + import SetVisibilityAction from '$lib/components/timeline/actions/SetVisibilityAction.svelte'; + import CreateSharedLink from '$lib/components/timeline/actions/CreateSharedLinkAction.svelte'; + import SelectAllAssets from '$lib/components/timeline/actions/SelectAllAction.svelte'; + import FavoriteAction from '$lib/components/timeline/actions/FavoriteAction.svelte'; + import type { TimelineAsset } from '$lib/managers/timeline-manager/types'; interface Props { data: PageData; @@ -79,6 +94,17 @@ // navigate to parent await navigateToView(tag.parent ? tag.parent.path : ''); }; + + const handleSetVisibility = (assetIds: string[]) => { + timelineManager.removeAssets(assetIds); + assetInteraction.clearMultiselect(); + }; + const handleRemoveAssets = (assetIds: string[]) => { + timelineManager.removeAssets(assetIds); + }; + const handleUndoRemoveAssets = (assets: TimelineAsset[]) => { + timelineManager.addAssets(assets); + }; @@ -130,4 +156,45 @@ {/if} + + {#if assetInteraction.selectionActive} + assetInteraction.clearMultiselect()} + > + + + + + + + {#if assetInteraction.isAllUserOwned} + + timelineManager.updateAssetOperation(ids, (asset) => { + asset.isFavorite = isFavorite; + return { remove: false }; + })} + > + {/if} + + {#if assetInteraction.isAllUserOwned} + + + + + + {/if} + + {#if $preferences.tags.enabled && assetInteraction.isAllUserOwned} + + {/if} + + {#if assetInteraction.isAllUserOwned} + + {/if} + + + {/if} From 3272789fb575ff3d736dd7c824d32192aecabdb6 Mon Sep 17 00:00:00 2001 From: Paul Larsen Date: Thu, 16 Oct 2025 23:31:24 +0200 Subject: [PATCH 2/2] fix lint --- .../(user)/tags/[[photos=photos]]/[[assetId=id]]/+page.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/routes/(user)/tags/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/tags/[[photos=photos]]/[[assetId=id]]/+page.svelte index ecb61a7f67..2719ed97d7 100644 --- a/web/src/routes/(user)/tags/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/tags/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -164,7 +164,7 @@ > - + @@ -178,7 +178,7 @@ })} > {/if} - + {#if assetInteraction.isAllUserOwned}