Skip to content

High performance self-hosted photo and video management solution.

refactor: rename timeline actions (#22086)

Jason Rasmussenc21860fb9705
diff --git a/web/src/lib/components/album-page/album-viewer.svelte b/web/src/lib/components/album-page/album-viewer.svelte
index 46fbec0bed..9336dc66aa 100644
--- a/web/src/lib/components/album-page/album-viewer.svelte
+++ b/web/src/lib/components/album-page/album-viewer.svelte
@@ -2,8 +2,9 @@
import { shortcut } from '$lib/actions/shortcut';
import CastButton from '$lib/cast/cast-button.svelte';
import AlbumMap from '$lib/components/album-page/album-map.svelte';
- import SelectAllAssets from '$lib/components/photos-page/actions/select-all-assets.svelte';
- import AssetSelectControlBar from '$lib/components/photos-page/asset-select-control-bar.svelte';
+ import DownloadAction from '$lib/components/timeline/actions/DownloadAction.svelte';
+ import SelectAllAssets from '$lib/components/timeline/actions/SelectAllAction.svelte';
+ import AssetSelectControlBar from '$lib/components/timeline/AssetSelectControlBar.svelte';
import Timeline from '$lib/components/timeline/Timeline.svelte';
import { TimelineManager } from '$lib/managers/timeline-manager/timeline-manager.svelte';
import { AssetInteraction } from '$lib/stores/asset-interaction.svelte';
@@ -18,7 +19,6 @@
import { mdiDownload, mdiFileImagePlusOutline } from '@mdi/js';
import { onDestroy } from 'svelte';
import { t } from 'svelte-i18n';
- import DownloadAction from '../photos-page/actions/download-action.svelte';
import ControlAppBar from '../shared-components/control-app-bar.svelte';
import ImmichLogoSmallLink from '../shared-components/immich-logo-small-link.svelte';
import ThemeButton from '../shared-components/theme-button.svelte';
diff --git a/web/src/lib/components/memory-page/memory-viewer.svelte b/web/src/lib/components/memory-page/memory-viewer.svelte
index d9ab631d35..7f566c41a2 100644
--- a/web/src/lib/components/memory-page/memory-viewer.svelte
+++ b/web/src/lib/components/memory-page/memory-viewer.svelte
@@ -6,17 +6,6 @@
import { shortcuts } from '$lib/actions/shortcut';
import MemoryPhotoViewer from '$lib/components/memory-page/memory-photo-viewer.svelte';
import MemoryVideoViewer from '$lib/components/memory-page/memory-video-viewer.svelte';
- import AddToAlbum from '$lib/components/photos-page/actions/add-to-album.svelte';
- import ArchiveAction from '$lib/components/photos-page/actions/archive-action.svelte';
- import ChangeDate from '$lib/components/photos-page/actions/change-date-action.svelte';
- import ChangeDescription from '$lib/components/photos-page/actions/change-description-action.svelte';
- import ChangeLocation from '$lib/components/photos-page/actions/change-location-action.svelte';
- import CreateSharedLink from '$lib/components/photos-page/actions/create-shared-link.svelte';
- import DeleteAssets from '$lib/components/photos-page/actions/delete-assets.svelte';
- import DownloadAction from '$lib/components/photos-page/actions/download-action.svelte';
- import FavoriteAction from '$lib/components/photos-page/actions/favorite-action.svelte';
- import TagAction from '$lib/components/photos-page/actions/tag-action.svelte';
- import AssetSelectControlBar from '$lib/components/photos-page/asset-select-control-bar.svelte';
import ButtonContextMenu from '$lib/components/shared-components/context-menu/button-context-menu.svelte';
import MenuOption from '$lib/components/shared-components/context-menu/menu-option.svelte';
import ControlAppBar from '$lib/components/shared-components/control-app-bar.svelte';
@@ -25,6 +14,17 @@
notificationController,
NotificationType,
} from '$lib/components/shared-components/notification/notification';
+ import AddToAlbum from '$lib/components/timeline/actions/AddToAlbumAction.svelte';
+ import ArchiveAction from '$lib/components/timeline/actions/ArchiveAction.svelte';
+ import ChangeDate from '$lib/components/timeline/actions/ChangeDateAction.svelte';
+ import ChangeDescription from '$lib/components/timeline/actions/ChangeDescriptionAction.svelte';
+ import ChangeLocation from '$lib/components/timeline/actions/ChangeLocationAction.svelte';
+ import CreateSharedLink from '$lib/components/timeline/actions/CreateSharedLinkAction.svelte';
+ import DeleteAssets from '$lib/components/timeline/actions/DeleteAssetsAction.svelte';
+ import DownloadAction from '$lib/components/timeline/actions/DownloadAction.svelte';
+ import FavoriteAction from '$lib/components/timeline/actions/FavoriteAction.svelte';
+ import TagAction from '$lib/components/timeline/actions/TagAction.svelte';
+ import AssetSelectControlBar from '$lib/components/timeline/AssetSelectControlBar.svelte';
import { AppRoute, QueryParameter } from '$lib/constants';
import { authManager } from '$lib/managers/auth-manager.svelte';
import type { TimelineAsset, Viewport } from '$lib/managers/timeline-manager/types';
diff --git a/web/src/lib/components/share-page/individual-shared-viewer.svelte b/web/src/lib/components/share-page/individual-shared-viewer.svelte
index c677922379..421d4a0b5f 100644
--- a/web/src/lib/components/share-page/individual-shared-viewer.svelte
+++ b/web/src/lib/components/share-page/individual-shared-viewer.svelte
@@ -2,6 +2,9 @@
import { goto } from '$app/navigation';
import type { Action } from '$lib/components/asset-viewer/actions/action';
import ImmichLogoSmallLink from '$lib/components/shared-components/immich-logo-small-link.svelte';
+ import DownloadAction from '$lib/components/timeline/actions/DownloadAction.svelte';
+ import RemoveFromSharedLink from '$lib/components/timeline/actions/RemoveFromSharedLinkAction.svelte';
+ import AssetSelectControlBar from '$lib/components/timeline/AssetSelectControlBar.svelte';
import { AppRoute, AssetAction } from '$lib/constants';
import { authManager } from '$lib/managers/auth-manager.svelte';
import type { Viewport } from '$lib/managers/timeline-manager/types';
@@ -17,9 +20,6 @@
import { mdiArrowLeft, mdiDownload, mdiFileImagePlusOutline, mdiSelectAll } from '@mdi/js';
import { t } from 'svelte-i18n';
import AssetViewer from '../asset-viewer/asset-viewer.svelte';
- import DownloadAction from '../photos-page/actions/download-action.svelte';
- import RemoveFromSharedLink from '../photos-page/actions/remove-from-shared-link.svelte';
- import AssetSelectControlBar from '../photos-page/asset-select-control-bar.svelte';
import ControlAppBar from '../shared-components/control-app-bar.svelte';
import GalleryViewer from '../shared-components/gallery-viewer/gallery-viewer.svelte';
import { NotificationType, notificationController } from '../shared-components/notification/notification';
diff --git a/web/src/lib/components/photos-page/asset-select-control-bar.svelte b/web/src/lib/components/timeline/AssetSelectControlBar.svelte
similarity index 100%
rename from web/src/lib/components/photos-page/asset-select-control-bar.svelte
rename to web/src/lib/components/timeline/AssetSelectControlBar.svelte
diff --git a/web/src/lib/components/timeline/Timeline.svelte b/web/src/lib/components/timeline/Timeline.svelte
index 7a178bb331..ad0fac1bb5 100644
--- a/web/src/lib/components/timeline/Timeline.svelte
+++ b/web/src/lib/components/timeline/Timeline.svelte
@@ -4,14 +4,14 @@
import { resizeObserver, type OnResizeCallback } from '$lib/actions/resize-observer';
import { shortcuts, type ShortcutOptions } from '$lib/actions/shortcut';
import type { Action } from '$lib/components/asset-viewer/actions/action';
- import {
- setFocusToAsset as setFocusAssetInit,
- setFocusTo as setFocusToInit,
- } from '$lib/components/photos-page/actions/focus-actions';
import Skeleton from '$lib/components/photos-page/skeleton.svelte';
import type { AbsoluteResult, RelativeResult } from '$lib/components/shared-components/change-date.svelte';
import ChangeDate from '$lib/components/shared-components/change-date.svelte';
import Scrubber from '$lib/components/shared-components/scrubber/scrubber.svelte';
+ import {
+ setFocusToAsset as setFocusAssetInit,
+ setFocusTo as setFocusToInit,
+ } from '$lib/components/timeline/actions/focus-actions';
import { AppRoute, AssetAction } from '$lib/constants';
import { authManager } from '$lib/managers/auth-manager.svelte';
import type { DayGroup } from '$lib/managers/timeline-manager/day-group.svelte';
diff --git a/web/src/lib/components/photos-page/actions/add-to-album.svelte b/web/src/lib/components/timeline/actions/AddToAlbumAction.svelte
similarity index 93%
rename from web/src/lib/components/photos-page/actions/add-to-album.svelte
rename to web/src/lib/components/timeline/actions/AddToAlbumAction.svelte
index 13a26cd137..2f0f5b21b7 100644
--- a/web/src/lib/components/photos-page/actions/add-to-album.svelte
+++ b/web/src/lib/components/timeline/actions/AddToAlbumAction.svelte
@@ -1,12 +1,12 @@
<script lang="ts">
import MenuOption from '$lib/components/shared-components/context-menu/menu-option.svelte';
+ import { getAssetControlContext } from '$lib/components/timeline/AssetSelectControlBar.svelte';
import AlbumPickerModal from '$lib/modals/AlbumPickerModal.svelte';
import type { OnAddToAlbum } from '$lib/utils/actions';
import { addAssetsToAlbum, addAssetsToAlbums } from '$lib/utils/asset-utils';
import { modalManager } from '@immich/ui';
import { mdiImageAlbum, mdiShareVariantOutline } from '@mdi/js';
import { t } from 'svelte-i18n';
- import { getAssetControlContext } from '../asset-select-control-bar.svelte';
interface Props {
shared?: boolean;
diff --git a/web/src/lib/components/photos-page/actions/archive-action.svelte b/web/src/lib/components/timeline/actions/ArchiveAction.svelte
similarity index 94%
rename from web/src/lib/components/photos-page/actions/archive-action.svelte
rename to web/src/lib/components/timeline/actions/ArchiveAction.svelte
index 150e7c201f..05ef9c99ff 100644
--- a/web/src/lib/components/photos-page/actions/archive-action.svelte
+++ b/web/src/lib/components/timeline/actions/ArchiveAction.svelte
@@ -1,4 +1,5 @@
<script lang="ts">
+ import { getAssetControlContext } from '$lib/components/timeline/AssetSelectControlBar.svelte';
import type { OnArchive } from '$lib/utils/actions';
import { archiveAssets } from '$lib/utils/asset-utils';
import { AssetVisibility } from '@immich/sdk';
@@ -6,7 +7,6 @@
import { mdiArchiveArrowDownOutline, mdiArchiveArrowUpOutline, mdiTimerSand } from '@mdi/js';
import { t } from 'svelte-i18n';
import MenuOption from '../../shared-components/context-menu/menu-option.svelte';
- import { getAssetControlContext } from '../asset-select-control-bar.svelte';
interface Props {
onArchive?: OnArchive;
diff --git a/web/src/lib/components/photos-page/actions/asset-job-actions.svelte b/web/src/lib/components/timeline/actions/AssetJobActions.svelte
similarity index 93%
rename from web/src/lib/components/photos-page/actions/asset-job-actions.svelte
rename to web/src/lib/components/timeline/actions/AssetJobActions.svelte
index 5676ad5fbf..cee1b367be 100644
--- a/web/src/lib/components/photos-page/actions/asset-job-actions.svelte
+++ b/web/src/lib/components/timeline/actions/AssetJobActions.svelte
@@ -4,11 +4,11 @@
NotificationType,
notificationController,
} from '$lib/components/shared-components/notification/notification';
+ import { getAssetControlContext } from '$lib/components/timeline/AssetSelectControlBar.svelte';
import { getAssetJobIcon, getAssetJobMessage, getAssetJobName } from '$lib/utils';
import { handleError } from '$lib/utils/handle-error';
import { AssetJobName, runAssetJobs } from '@immich/sdk';
import { t } from 'svelte-i18n';
- import { getAssetControlContext } from '../asset-select-control-bar.svelte';
interface Props {
jobs?: AssetJobName[];
diff --git a/web/src/lib/components/photos-page/actions/change-date-action.svelte b/web/src/lib/components/timeline/actions/ChangeDateAction.svelte
similarity index 96%
rename from web/src/lib/components/photos-page/actions/change-date-action.svelte
rename to web/src/lib/components/timeline/actions/ChangeDateAction.svelte
index 3007798719..5e869050d3 100644
--- a/web/src/lib/components/photos-page/actions/change-date-action.svelte
+++ b/web/src/lib/components/timeline/actions/ChangeDateAction.svelte
@@ -3,16 +3,16 @@
type AbsoluteResult,
type RelativeResult,
} from '$lib/components/shared-components/change-date.svelte';
+ import { getAssetControlContext } from '$lib/components/timeline/AssetSelectControlBar.svelte';
import { user } from '$lib/stores/user.store';
import { getSelectedAssets } from '$lib/utils/asset-utils';
import { handleError } from '$lib/utils/handle-error';
+ import { fromTimelinePlainDateTime } from '$lib/utils/timeline-util.js';
import { updateAssets } from '@immich/sdk';
import { mdiCalendarEditOutline } from '@mdi/js';
import { DateTime, Duration } from 'luxon';
import { t } from 'svelte-i18n';
import MenuOption from '../../shared-components/context-menu/menu-option.svelte';
- import { getAssetControlContext } from '../asset-select-control-bar.svelte';
- import { fromTimelinePlainDateTime } from '$lib/utils/timeline-util.js';
interface Props {
menuItem?: boolean;
}
diff --git a/web/src/lib/components/photos-page/actions/change-description-action.svelte b/web/src/lib/components/timeline/actions/ChangeDescriptionAction.svelte
similarity index 92%
rename from web/src/lib/components/photos-page/actions/change-description-action.svelte
rename to web/src/lib/components/timeline/actions/ChangeDescriptionAction.svelte
index c919efb2a9..cf16d01172 100644
--- a/web/src/lib/components/photos-page/actions/change-description-action.svelte
+++ b/web/src/lib/components/timeline/actions/ChangeDescriptionAction.svelte
@@ -1,4 +1,5 @@
<script lang="ts">
+ import { getAssetControlContext } from '$lib/components/timeline/AssetSelectControlBar.svelte';
import AssetUpdateDescriptionConfirmModal from '$lib/modals/AssetUpdateDescriptionConfirmModal.svelte';
import { user } from '$lib/stores/user.store';
import { getSelectedAssets } from '$lib/utils/asset-utils';
@@ -8,7 +9,6 @@
import { mdiText } from '@mdi/js';
import { t } from 'svelte-i18n';
import MenuOption from '../../shared-components/context-menu/menu-option.svelte';
- import { getAssetControlContext } from '../asset-select-control-bar.svelte';
interface Props {
menuItem?: boolean;
diff --git a/web/src/lib/components/photos-page/actions/change-location-action.svelte b/web/src/lib/components/timeline/actions/ChangeLocationAction.svelte
similarity index 93%
rename from web/src/lib/components/photos-page/actions/change-location-action.svelte
rename to web/src/lib/components/timeline/actions/ChangeLocationAction.svelte
index c0f9c6c2a0..2ccfe3704d 100644
--- a/web/src/lib/components/photos-page/actions/change-location-action.svelte
+++ b/web/src/lib/components/timeline/actions/ChangeLocationAction.svelte
@@ -1,5 +1,6 @@
<script lang="ts">
import ChangeLocation from '$lib/components/shared-components/change-location.svelte';
+ import { getAssetControlContext } from '$lib/components/timeline/AssetSelectControlBar.svelte';
import { user } from '$lib/stores/user.store';
import { getSelectedAssets } from '$lib/utils/asset-utils';
import { handleError } from '$lib/utils/handle-error';
@@ -7,7 +8,6 @@
import { mdiMapMarkerMultipleOutline } from '@mdi/js';
import { t } from 'svelte-i18n';
import MenuOption from '../../shared-components/context-menu/menu-option.svelte';
- import { getAssetControlContext } from '../asset-select-control-bar.svelte';
interface Props {
menuItem?: boolean;
diff --git a/web/src/lib/components/photos-page/actions/create-shared-link.svelte b/web/src/lib/components/timeline/actions/CreateSharedLinkAction.svelte
similarity index 89%
rename from web/src/lib/components/photos-page/actions/create-shared-link.svelte
rename to web/src/lib/components/timeline/actions/CreateSharedLinkAction.svelte
index 40fea4acb9..515fa64af1 100644
--- a/web/src/lib/components/photos-page/actions/create-shared-link.svelte
+++ b/web/src/lib/components/timeline/actions/CreateSharedLinkAction.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
- import { getAssetControlContext } from '$lib/components/photos-page/asset-select-control-bar.svelte';
+ import { getAssetControlContext } from '$lib/components/timeline/AssetSelectControlBar.svelte';
import QrCodeModal from '$lib/modals/QrCodeModal.svelte';
import SharedLinkCreateModal from '$lib/modals/SharedLinkCreateModal.svelte';
import { makeSharedLinkUrl } from '$lib/utils';
diff --git a/web/src/lib/components/photos-page/actions/delete-assets.svelte b/web/src/lib/components/timeline/actions/DeleteAssetsAction.svelte
similarity index 91%
rename from web/src/lib/components/photos-page/actions/delete-assets.svelte
rename to web/src/lib/components/timeline/actions/DeleteAssetsAction.svelte
index e3b592b5cb..bcdce97d35 100644
--- a/web/src/lib/components/photos-page/actions/delete-assets.svelte
+++ b/web/src/lib/components/timeline/actions/DeleteAssetsAction.svelte
@@ -1,12 +1,12 @@
<script lang="ts">
+ import DeleteAssetDialog from '$lib/components/photos-page/delete-asset-dialog.svelte';
+ import { getAssetControlContext } from '$lib/components/timeline/AssetSelectControlBar.svelte';
import { featureFlags } from '$lib/stores/server-config.store';
import { type OnDelete, type OnUndoDelete, deleteAssets } from '$lib/utils/actions';
+ import { IconButton } from '@immich/ui';
import { mdiDeleteForeverOutline, mdiDeleteOutline, mdiTimerSand } from '@mdi/js';
import { t } from 'svelte-i18n';
import MenuOption from '../../shared-components/context-menu/menu-option.svelte';
- import { getAssetControlContext } from '../asset-select-control-bar.svelte';
- import DeleteAssetDialog from '../delete-asset-dialog.svelte';
- import { IconButton } from '@immich/ui';
interface Props {
onAssetDelete: OnDelete;
diff --git a/web/src/lib/components/photos-page/actions/download-action.svelte b/web/src/lib/components/timeline/actions/DownloadAction.svelte
similarity index 93%
rename from web/src/lib/components/photos-page/actions/download-action.svelte
rename to web/src/lib/components/timeline/actions/DownloadAction.svelte
index 6f2a7771e9..29f2bab610 100644
--- a/web/src/lib/components/photos-page/actions/download-action.svelte
+++ b/web/src/lib/components/timeline/actions/DownloadAction.svelte
@@ -1,6 +1,7 @@
<script lang="ts">
import { shortcut } from '$lib/actions/shortcut';
+ import { getAssetControlContext } from '$lib/components/timeline/AssetSelectControlBar.svelte';
import { authManager } from '$lib/managers/auth-manager.svelte';
import { downloadArchive, downloadFile } from '$lib/utils/asset-utils';
import { getAssetInfo } from '@immich/sdk';
@@ -8,7 +9,6 @@
import { mdiDownload } from '@mdi/js';
import { t } from 'svelte-i18n';
import MenuOption from '../../shared-components/context-menu/menu-option.svelte';
- import { getAssetControlContext } from '../asset-select-control-bar.svelte';
interface Props {
filename?: string;
diff --git a/web/src/lib/components/photos-page/actions/favorite-action.svelte b/web/src/lib/components/timeline/actions/FavoriteAction.svelte
similarity index 96%
rename from web/src/lib/components/photos-page/actions/favorite-action.svelte
rename to web/src/lib/components/timeline/actions/FavoriteAction.svelte
index 98ff33cff8..164788f1b5 100644
--- a/web/src/lib/components/photos-page/actions/favorite-action.svelte
+++ b/web/src/lib/components/timeline/actions/FavoriteAction.svelte
@@ -4,13 +4,13 @@
NotificationType,
notificationController,
} from '$lib/components/shared-components/notification/notification';
+ import { getAssetControlContext } from '$lib/components/timeline/AssetSelectControlBar.svelte';
import type { OnFavorite } from '$lib/utils/actions';
import { handleError } from '$lib/utils/handle-error';
import { updateAssets } from '@immich/sdk';
+ import { IconButton } from '@immich/ui';
import { mdiHeartMinusOutline, mdiHeartOutline, mdiTimerSand } from '@mdi/js';
import { t } from 'svelte-i18n';
- import { getAssetControlContext } from '../asset-select-control-bar.svelte';
- import { IconButton } from '@immich/ui';
interface Props {
onFavorite?: OnFavorite;
diff --git a/web/src/lib/components/photos-page/actions/link-live-photo-action.svelte b/web/src/lib/components/timeline/actions/LinkLivePhotoAction.svelte
similarity index 96%
rename from web/src/lib/components/photos-page/actions/link-live-photo-action.svelte
rename to web/src/lib/components/timeline/actions/LinkLivePhotoAction.svelte
index 6e3a7c789c..f0065bee7c 100644
--- a/web/src/lib/components/photos-page/actions/link-live-photo-action.svelte
+++ b/web/src/lib/components/timeline/actions/LinkLivePhotoAction.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
- import { getAssetControlContext } from '$lib/components/photos-page/asset-select-control-bar.svelte';
+ import { getAssetControlContext } from '$lib/components/timeline/AssetSelectControlBar.svelte';
import { authManager } from '$lib/managers/auth-manager.svelte';
import type { TimelineAsset } from '$lib/managers/timeline-manager/types';
import type { OnLink, OnUnlink } from '$lib/utils/actions';
diff --git a/web/src/lib/components/photos-page/actions/remove-from-album.svelte b/web/src/lib/components/timeline/actions/RemoveFromAlbumAction.svelte
similarity index 95%
rename from web/src/lib/components/photos-page/actions/remove-from-album.svelte
rename to web/src/lib/components/timeline/actions/RemoveFromAlbumAction.svelte
index 0ee8584a55..115b9b19d8 100644
--- a/web/src/lib/components/photos-page/actions/remove-from-album.svelte
+++ b/web/src/lib/components/timeline/actions/RemoveFromAlbumAction.svelte
@@ -3,12 +3,12 @@
NotificationType,
notificationController,
} from '$lib/components/shared-components/notification/notification';
+ import { getAssetControlContext } from '$lib/components/timeline/AssetSelectControlBar.svelte';
import { getAlbumInfo, removeAssetFromAlbum, type AlbumResponseDto } from '@immich/sdk';
import { IconButton, modalManager } from '@immich/ui';
import { mdiDeleteOutline, mdiImageRemoveOutline } from '@mdi/js';
import { t } from 'svelte-i18n';
import MenuOption from '../../shared-components/context-menu/menu-option.svelte';
- import { getAssetControlContext } from '../asset-select-control-bar.svelte';
interface Props {
album: AlbumResponseDto;
diff --git a/web/src/lib/components/photos-page/actions/remove-from-shared-link.svelte b/web/src/lib/components/timeline/actions/RemoveFromSharedLinkAction.svelte
similarity index 95%
rename from web/src/lib/components/photos-page/actions/remove-from-shared-link.svelte
rename to web/src/lib/components/timeline/actions/RemoveFromSharedLinkAction.svelte
index e14ec614dc..c0ea55fdc8 100644
--- a/web/src/lib/components/photos-page/actions/remove-from-shared-link.svelte
+++ b/web/src/lib/components/timeline/actions/RemoveFromSharedLinkAction.svelte
@@ -1,4 +1,5 @@
<script lang="ts">
+ import { getAssetControlContext } from '$lib/components/timeline/AssetSelectControlBar.svelte';
import { authManager } from '$lib/managers/auth-manager.svelte';
import { handleError } from '$lib/utils/handle-error';
import { removeSharedLinkAssets, type SharedLinkResponseDto } from '@immich/sdk';
@@ -6,7 +7,6 @@
import { mdiDeleteOutline } from '@mdi/js';
import { t } from 'svelte-i18n';
import { NotificationType, notificationController } from '../../shared-components/notification/notification';
- import { getAssetControlContext } from '../asset-select-control-bar.svelte';
interface Props {
sharedLink: SharedLinkResponseDto;
diff --git a/web/src/lib/components/photos-page/actions/restore-assets.svelte b/web/src/lib/components/timeline/actions/RestoreAction.svelte
similarity index 93%
rename from web/src/lib/components/photos-page/actions/restore-assets.svelte
rename to web/src/lib/components/timeline/actions/RestoreAction.svelte
index 483c928130..7550b3dd54 100644
--- a/web/src/lib/components/photos-page/actions/restore-assets.svelte
+++ b/web/src/lib/components/timeline/actions/RestoreAction.svelte
@@ -3,13 +3,13 @@
NotificationType,
notificationController,
} from '$lib/components/shared-components/notification/notification';
+ import { getAssetControlContext } from '$lib/components/timeline/AssetSelectControlBar.svelte';
import type { OnRestore } from '$lib/utils/actions';
import { handleError } from '$lib/utils/handle-error';
import { restoreAssets } from '@immich/sdk';
+ import { Button } from '@immich/ui';
import { mdiHistory } from '@mdi/js';
- import { getAssetControlContext } from '../asset-select-control-bar.svelte';
import { t } from 'svelte-i18n';
- import { Button } from '@immich/ui';
interface Props {
onRestore: OnRestore | undefined;
diff --git a/web/src/lib/components/photos-page/actions/select-all-assets.svelte b/web/src/lib/components/timeline/actions/SelectAllAction.svelte
similarity index 100%
rename from web/src/lib/components/photos-page/actions/select-all-assets.svelte
rename to web/src/lib/components/timeline/actions/SelectAllAction.svelte
diff --git a/web/src/lib/components/photos-page/actions/set-visibility-action.svelte b/web/src/lib/components/timeline/actions/SetVisibilityAction.svelte
similarity index 95%
rename from web/src/lib/components/photos-page/actions/set-visibility-action.svelte
rename to web/src/lib/components/timeline/actions/SetVisibilityAction.svelte
index 5ac183fd18..f16f99f780 100644
--- a/web/src/lib/components/photos-page/actions/set-visibility-action.svelte
+++ b/web/src/lib/components/timeline/actions/SetVisibilityAction.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
- import { getAssetControlContext } from '$lib/components/photos-page/asset-select-control-bar.svelte';
+ import { getAssetControlContext } from '$lib/components/timeline/AssetSelectControlBar.svelte';
import MenuOption from '$lib/components/shared-components/context-menu/menu-option.svelte';
import type { OnSetVisibility } from '$lib/utils/actions';
import { handleError } from '$lib/utils/handle-error';
diff --git a/web/src/lib/components/photos-page/actions/stack-action.svelte b/web/src/lib/components/timeline/actions/StackAction.svelte
similarity index 93%
rename from web/src/lib/components/photos-page/actions/stack-action.svelte
rename to web/src/lib/components/timeline/actions/StackAction.svelte
index 8ed3dea22c..88f134e61d 100644
--- a/web/src/lib/components/photos-page/actions/stack-action.svelte
+++ b/web/src/lib/components/timeline/actions/StackAction.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
- import { getAssetControlContext } from '$lib/components/photos-page/asset-select-control-bar.svelte';
+ import { getAssetControlContext } from '$lib/components/timeline/AssetSelectControlBar.svelte';
import MenuOption from '$lib/components/shared-components/context-menu/menu-option.svelte';
import type { OnStack, OnUnstack } from '$lib/utils/actions';
import { deleteStack, stackAssets } from '$lib/utils/asset-utils';
diff --git a/web/src/lib/components/photos-page/actions/tag-action.svelte b/web/src/lib/components/timeline/actions/TagAction.svelte
similarity index 92%
rename from web/src/lib/components/photos-page/actions/tag-action.svelte
rename to web/src/lib/components/timeline/actions/TagAction.svelte
index a5079cc028..d2235d7c74 100644
--- a/web/src/lib/components/photos-page/actions/tag-action.svelte
+++ b/web/src/lib/components/timeline/actions/TagAction.svelte
@@ -1,11 +1,11 @@
<script lang="ts">
import { shortcut } from '$lib/actions/shortcut';
+ import { getAssetControlContext } from '$lib/components/timeline/AssetSelectControlBar.svelte';
import AssetTagModal from '$lib/modals/AssetTagModal.svelte';
import { IconButton, modalManager } from '@immich/ui';
import { mdiTagMultipleOutline } from '@mdi/js';
import { t } from 'svelte-i18n';
import MenuOption from '../../shared-components/context-menu/menu-option.svelte';
- import { getAssetControlContext } from '../asset-select-control-bar.svelte';
interface Props {
menuItem?: boolean;
diff --git a/web/src/lib/components/photos-page/actions/focus-actions.ts b/web/src/lib/components/timeline/actions/focus-actions.ts
similarity index 100%
rename from web/src/lib/components/photos-page/actions/focus-actions.ts
rename to web/src/lib/components/timeline/actions/focus-actions.ts
diff --git a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte
index 13f0e6923d..66ce54b7f3 100644
--- a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte
+++ b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte
@@ -9,20 +9,6 @@
import ActivityStatus from '$lib/components/asset-viewer/activity-status.svelte';
import ActivityViewer from '$lib/components/asset-viewer/activity-viewer.svelte';
import Icon from '$lib/components/elements/icon.svelte';
- import AddToAlbum from '$lib/components/photos-page/actions/add-to-album.svelte';
- import ArchiveAction from '$lib/components/photos-page/actions/archive-action.svelte';
- import ChangeDate from '$lib/components/photos-page/actions/change-date-action.svelte';
- import ChangeDescription from '$lib/components/photos-page/actions/change-description-action.svelte';
- import ChangeLocation from '$lib/components/photos-page/actions/change-location-action.svelte';
- import CreateSharedLink from '$lib/components/photos-page/actions/create-shared-link.svelte';
- import DeleteAssets from '$lib/components/photos-page/actions/delete-assets.svelte';
- import DownloadAction from '$lib/components/photos-page/actions/download-action.svelte';
- import FavoriteAction from '$lib/components/photos-page/actions/favorite-action.svelte';
- import RemoveFromAlbum from '$lib/components/photos-page/actions/remove-from-album.svelte';
- import SelectAllAssets from '$lib/components/photos-page/actions/select-all-assets.svelte';
- import SetVisibilityAction from '$lib/components/photos-page/actions/set-visibility-action.svelte';
- import TagAction from '$lib/components/photos-page/actions/tag-action.svelte';
- import AssetSelectControlBar from '$lib/components/photos-page/asset-select-control-bar.svelte';
import ButtonContextMenu from '$lib/components/shared-components/context-menu/button-context-menu.svelte';
import MenuOption from '$lib/components/shared-components/context-menu/menu-option.svelte';
import ControlAppBar from '$lib/components/shared-components/control-app-bar.svelte';
@@ -31,6 +17,20 @@
notificationController,
} from '$lib/components/shared-components/notification/notification';
import UserAvatar from '$lib/components/shared-components/user-avatar.svelte';
+ import AddToAlbum from '$lib/components/timeline/actions/AddToAlbumAction.svelte';
+ import ArchiveAction from '$lib/components/timeline/actions/ArchiveAction.svelte';
+ import ChangeDate from '$lib/components/timeline/actions/ChangeDateAction.svelte';
+ import ChangeDescription from '$lib/components/timeline/actions/ChangeDescriptionAction.svelte';
+ import ChangeLocation from '$lib/components/timeline/actions/ChangeLocationAction.svelte';
+ import CreateSharedLink from '$lib/components/timeline/actions/CreateSharedLinkAction.svelte';
+ import DeleteAssets from '$lib/components/timeline/actions/DeleteAssetsAction.svelte';
+ import DownloadAction from '$lib/components/timeline/actions/DownloadAction.svelte';
+ import FavoriteAction from '$lib/components/timeline/actions/FavoriteAction.svelte';
+ import RemoveFromAlbum from '$lib/components/timeline/actions/RemoveFromAlbumAction.svelte';
+ import SelectAllAssets from '$lib/components/timeline/actions/SelectAllAction.svelte';
+ import SetVisibilityAction from '$lib/components/timeline/actions/SetVisibilityAction.svelte';
+ import TagAction from '$lib/components/timeline/actions/TagAction.svelte';
+ import AssetSelectControlBar from '$lib/components/timeline/AssetSelectControlBar.svelte';
import Timeline from '$lib/components/timeline/Timeline.svelte';
import { AlbumPageViewMode, AppRoute } from '$lib/constants';
import { activityManager } from '$lib/managers/activity-manager.svelte';
diff --git a/web/src/routes/(user)/archive/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/archive/[[photos=photos]]/[[assetId=id]]/+page.svelte
index c13d219559..39da4f632e 100644
--- a/web/src/routes/(user)/archive/[[photos=photos]]/[[assetId=id]]/+page.svelte
+++ b/web/src/routes/(user)/archive/[[photos=photos]]/[[assetId=id]]/+page.svelte
@@ -1,19 +1,19 @@
<script lang="ts">
import UserPageLayout from '$lib/components/layouts/user-page-layout.svelte';
- import AddToAlbum from '$lib/components/photos-page/actions/add-to-album.svelte';
- import ArchiveAction from '$lib/components/photos-page/actions/archive-action.svelte';
- import CreateSharedLink from '$lib/components/photos-page/actions/create-shared-link.svelte';
- import DeleteAssets from '$lib/components/photos-page/actions/delete-assets.svelte';
- import DownloadAction from '$lib/components/photos-page/actions/download-action.svelte';
- import FavoriteAction from '$lib/components/photos-page/actions/favorite-action.svelte';
- import SelectAllAssets from '$lib/components/photos-page/actions/select-all-assets.svelte';
- import AssetSelectControlBar from '$lib/components/photos-page/asset-select-control-bar.svelte';
import ButtonContextMenu from '$lib/components/shared-components/context-menu/button-context-menu.svelte';
import EmptyPlaceholder from '$lib/components/shared-components/empty-placeholder.svelte';
+ import AddToAlbum from '$lib/components/timeline/actions/AddToAlbumAction.svelte';
+ import ArchiveAction from '$lib/components/timeline/actions/ArchiveAction.svelte';
+ import CreateSharedLink from '$lib/components/timeline/actions/CreateSharedLinkAction.svelte';
+ import DeleteAssets from '$lib/components/timeline/actions/DeleteAssetsAction.svelte';
+ import DownloadAction from '$lib/components/timeline/actions/DownloadAction.svelte';
+ import FavoriteAction from '$lib/components/timeline/actions/FavoriteAction.svelte';
+ import SelectAllAssets from '$lib/components/timeline/actions/SelectAllAction.svelte';
+ import AssetSelectControlBar from '$lib/components/timeline/AssetSelectControlBar.svelte';
import Timeline from '$lib/components/timeline/Timeline.svelte';
import { AssetAction } from '$lib/constants';
- import SetVisibilityAction from '$lib/components/photos-page/actions/set-visibility-action.svelte';
+ import SetVisibilityAction from '$lib/components/timeline/actions/SetVisibilityAction.svelte';
import { TimelineManager } from '$lib/managers/timeline-manager/timeline-manager.svelte';
import { AssetInteraction } from '$lib/stores/asset-interaction.svelte';
import { AssetVisibility } from '@immich/sdk';
diff --git a/web/src/routes/(user)/favorites/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/favorites/[[photos=photos]]/[[assetId=id]]/+page.svelte
index 8cb15dc508..fd2706ba6f 100644
--- a/web/src/routes/(user)/favorites/[[photos=photos]]/[[assetId=id]]/+page.svelte
+++ b/web/src/routes/(user)/favorites/[[photos=photos]]/[[assetId=id]]/+page.svelte
@@ -1,20 +1,20 @@
<script lang="ts">
import UserPageLayout from '$lib/components/layouts/user-page-layout.svelte';
- import AddToAlbum from '$lib/components/photos-page/actions/add-to-album.svelte';
- import ArchiveAction from '$lib/components/photos-page/actions/archive-action.svelte';
- import ChangeDate from '$lib/components/photos-page/actions/change-date-action.svelte';
- import ChangeDescription from '$lib/components/photos-page/actions/change-description-action.svelte';
- import ChangeLocation from '$lib/components/photos-page/actions/change-location-action.svelte';
- import CreateSharedLink from '$lib/components/photos-page/actions/create-shared-link.svelte';
- import DeleteAssets from '$lib/components/photos-page/actions/delete-assets.svelte';
- import DownloadAction from '$lib/components/photos-page/actions/download-action.svelte';
- import FavoriteAction from '$lib/components/photos-page/actions/favorite-action.svelte';
- import SelectAllAssets from '$lib/components/photos-page/actions/select-all-assets.svelte';
- import SetVisibilityAction from '$lib/components/photos-page/actions/set-visibility-action.svelte';
- import TagAction from '$lib/components/photos-page/actions/tag-action.svelte';
- import AssetSelectControlBar from '$lib/components/photos-page/asset-select-control-bar.svelte';
import ButtonContextMenu from '$lib/components/shared-components/context-menu/button-context-menu.svelte';
import EmptyPlaceholder from '$lib/components/shared-components/empty-placeholder.svelte';
+ import AddToAlbum from '$lib/components/timeline/actions/AddToAlbumAction.svelte';
+ import ArchiveAction from '$lib/components/timeline/actions/ArchiveAction.svelte';
+ import ChangeDate from '$lib/components/timeline/actions/ChangeDateAction.svelte';
+ import ChangeDescription from '$lib/components/timeline/actions/ChangeDescriptionAction.svelte';
+ import ChangeLocation from '$lib/components/timeline/actions/ChangeLocationAction.svelte';
+ import CreateSharedLink from '$lib/components/timeline/actions/CreateSharedLinkAction.svelte';
+ import DeleteAssets from '$lib/components/timeline/actions/DeleteAssetsAction.svelte';
+ import DownloadAction from '$lib/components/timeline/actions/DownloadAction.svelte';
+ import FavoriteAction from '$lib/components/timeline/actions/FavoriteAction.svelte';
+ import SelectAllAssets from '$lib/components/timeline/actions/SelectAllAction.svelte';
+ import SetVisibilityAction from '$lib/components/timeline/actions/SetVisibilityAction.svelte';
+ import TagAction from '$lib/components/timeline/actions/TagAction.svelte';
+ import AssetSelectControlBar from '$lib/components/timeline/AssetSelectControlBar.svelte';
import Timeline from '$lib/components/timeline/Timeline.svelte';
import { AssetAction } from '$lib/constants';
import { TimelineManager } from '$lib/managers/timeline-manager/timeline-manager.svelte';
diff --git a/web/src/routes/(user)/folders/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/folders/[[photos=photos]]/[[assetId=id]]/+page.svelte
index 16579cec0e..49b2acecdd 100644
--- a/web/src/routes/(user)/folders/[[photos=photos]]/[[assetId=id]]/+page.svelte
+++ b/web/src/routes/(user)/folders/[[photos=photos]]/[[assetId=id]]/+page.svelte
@@ -2,24 +2,24 @@
import { afterNavigate, goto, invalidateAll } from '$app/navigation';
import SkipLink from '$lib/components/elements/buttons/skip-link.svelte';
import UserPageLayout, { headerId } from '$lib/components/layouts/user-page-layout.svelte';
- import AddToAlbum from '$lib/components/photos-page/actions/add-to-album.svelte';
- import ArchiveAction from '$lib/components/photos-page/actions/archive-action.svelte';
- import AssetJobActions from '$lib/components/photos-page/actions/asset-job-actions.svelte';
- import ChangeDate from '$lib/components/photos-page/actions/change-date-action.svelte';
- import ChangeDescription from '$lib/components/photos-page/actions/change-description-action.svelte';
- import ChangeLocation from '$lib/components/photos-page/actions/change-location-action.svelte';
- import CreateSharedLink from '$lib/components/photos-page/actions/create-shared-link.svelte';
- import DeleteAssets from '$lib/components/photos-page/actions/delete-assets.svelte';
- import DownloadAction from '$lib/components/photos-page/actions/download-action.svelte';
- import FavoriteAction from '$lib/components/photos-page/actions/favorite-action.svelte';
- import TagAction from '$lib/components/photos-page/actions/tag-action.svelte';
- import AssetSelectControlBar from '$lib/components/photos-page/asset-select-control-bar.svelte';
import ButtonContextMenu from '$lib/components/shared-components/context-menu/button-context-menu.svelte';
import GalleryViewer from '$lib/components/shared-components/gallery-viewer/gallery-viewer.svelte';
import Breadcrumbs from '$lib/components/shared-components/tree/breadcrumbs.svelte';
import TreeItemThumbnails from '$lib/components/shared-components/tree/tree-item-thumbnails.svelte';
import TreeItems from '$lib/components/shared-components/tree/tree-items.svelte';
import Sidebar from '$lib/components/sidebar/sidebar.svelte';
+ import AddToAlbum from '$lib/components/timeline/actions/AddToAlbumAction.svelte';
+ import ArchiveAction from '$lib/components/timeline/actions/ArchiveAction.svelte';
+ import AssetJobActions from '$lib/components/timeline/actions/AssetJobActions.svelte';
+ import ChangeDate from '$lib/components/timeline/actions/ChangeDateAction.svelte';
+ import ChangeDescription from '$lib/components/timeline/actions/ChangeDescriptionAction.svelte';
+ import ChangeLocation from '$lib/components/timeline/actions/ChangeLocationAction.svelte';
+ import CreateSharedLink from '$lib/components/timeline/actions/CreateSharedLinkAction.svelte';
+ import DeleteAssets from '$lib/components/timeline/actions/DeleteAssetsAction.svelte';
+ import DownloadAction from '$lib/components/timeline/actions/DownloadAction.svelte';
+ import FavoriteAction from '$lib/components/timeline/actions/FavoriteAction.svelte';
+ import TagAction from '$lib/components/timeline/actions/TagAction.svelte';
+ import AssetSelectControlBar from '$lib/components/timeline/AssetSelectControlBar.svelte';
import { AppRoute, QueryParameter } from '$lib/constants';
import type { Viewport } from '$lib/managers/timeline-manager/types';
import { AssetInteraction } from '$lib/stores/asset-interaction.svelte';
diff --git a/web/src/routes/(user)/locked/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/locked/[[photos=photos]]/[[assetId=id]]/+page.svelte
index 9fdce5fcc3..4df669685d 100644
--- a/web/src/routes/(user)/locked/[[photos=photos]]/[[assetId=id]]/+page.svelte
+++ b/web/src/routes/(user)/locked/[[photos=photos]]/[[assetId=id]]/+page.svelte
@@ -1,15 +1,15 @@
<script lang="ts">
import { goto } from '$app/navigation';
import UserPageLayout from '$lib/components/layouts/user-page-layout.svelte';
- import ChangeDate from '$lib/components/photos-page/actions/change-date-action.svelte';
- import ChangeLocation from '$lib/components/photos-page/actions/change-location-action.svelte';
- import DeleteAssets from '$lib/components/photos-page/actions/delete-assets.svelte';
- import DownloadAction from '$lib/components/photos-page/actions/download-action.svelte';
- import SelectAllAssets from '$lib/components/photos-page/actions/select-all-assets.svelte';
- import SetVisibilityAction from '$lib/components/photos-page/actions/set-visibility-action.svelte';
- import AssetSelectControlBar from '$lib/components/photos-page/asset-select-control-bar.svelte';
import ButtonContextMenu from '$lib/components/shared-components/context-menu/button-context-menu.svelte';
import EmptyPlaceholder from '$lib/components/shared-components/empty-placeholder.svelte';
+ import ChangeDate from '$lib/components/timeline/actions/ChangeDateAction.svelte';
+ import ChangeLocation from '$lib/components/timeline/actions/ChangeLocationAction.svelte';
+ import DeleteAssets from '$lib/components/timeline/actions/DeleteAssetsAction.svelte';
+ import DownloadAction from '$lib/components/timeline/actions/DownloadAction.svelte';
+ import SelectAllAssets from '$lib/components/timeline/actions/SelectAllAction.svelte';
+ import SetVisibilityAction from '$lib/components/timeline/actions/SetVisibilityAction.svelte';
+ import AssetSelectControlBar from '$lib/components/timeline/AssetSelectControlBar.svelte';
import Timeline from '$lib/components/timeline/Timeline.svelte';
import { AppRoute, AssetAction } from '$lib/constants';
import { TimelineManager } from '$lib/managers/timeline-manager/timeline-manager.svelte';
diff --git a/web/src/routes/(user)/partners/[userId]/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/partners/[userId]/[[photos=photos]]/[[assetId=id]]/+page.svelte
index 54afe075b9..98526e332a 100644
--- a/web/src/routes/(user)/partners/[userId]/[[photos=photos]]/[[assetId=id]]/+page.svelte
+++ b/web/src/routes/(user)/partners/[userId]/[[photos=photos]]/[[assetId=id]]/+page.svelte
@@ -1,11 +1,11 @@
<script lang="ts">
import { goto } from '$app/navigation';
- import AddToAlbum from '$lib/components/photos-page/actions/add-to-album.svelte';
- import CreateSharedLink from '$lib/components/photos-page/actions/create-shared-link.svelte';
- import DownloadAction from '$lib/components/photos-page/actions/download-action.svelte';
- import AssetSelectControlBar from '$lib/components/photos-page/asset-select-control-bar.svelte';
import ButtonContextMenu from '$lib/components/shared-components/context-menu/button-context-menu.svelte';
import ControlAppBar from '$lib/components/shared-components/control-app-bar.svelte';
+ import AddToAlbum from '$lib/components/timeline/actions/AddToAlbumAction.svelte';
+ import CreateSharedLink from '$lib/components/timeline/actions/CreateSharedLinkAction.svelte';
+ import DownloadAction from '$lib/components/timeline/actions/DownloadAction.svelte';
+ import AssetSelectControlBar from '$lib/components/timeline/AssetSelectControlBar.svelte';
import Timeline from '$lib/components/timeline/Timeline.svelte';
import { AppRoute } from '$lib/constants';
import { TimelineManager } from '$lib/managers/timeline-manager/timeline-manager.svelte';
diff --git a/web/src/routes/(user)/people/[personId]/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/people/[personId]/[[photos=photos]]/[[assetId=id]]/+page.svelte
index 569e5a9b08..a0774d1782 100644
--- a/web/src/routes/(user)/people/[personId]/[[photos=photos]]/[[assetId=id]]/+page.svelte
+++ b/web/src/routes/(user)/people/[personId]/[[photos=photos]]/[[assetId=id]]/+page.svelte
@@ -8,19 +8,6 @@
import EditNameInput from '$lib/components/faces-page/edit-name-input.svelte';
import MergeFaceSelector from '$lib/components/faces-page/merge-face-selector.svelte';
import UnMergeFaceSelector from '$lib/components/faces-page/unmerge-face-selector.svelte';
- import AddToAlbum from '$lib/components/photos-page/actions/add-to-album.svelte';
- import ArchiveAction from '$lib/components/photos-page/actions/archive-action.svelte';
- import ChangeDate from '$lib/components/photos-page/actions/change-date-action.svelte';
- import ChangeDescription from '$lib/components/photos-page/actions/change-description-action.svelte';
- import ChangeLocation from '$lib/components/photos-page/actions/change-location-action.svelte';
- import CreateSharedLink from '$lib/components/photos-page/actions/create-shared-link.svelte';
- import DeleteAssets from '$lib/components/photos-page/actions/delete-assets.svelte';
- import DownloadAction from '$lib/components/photos-page/actions/download-action.svelte';
- import FavoriteAction from '$lib/components/photos-page/actions/favorite-action.svelte';
- import SelectAllAssets from '$lib/components/photos-page/actions/select-all-assets.svelte';
- import SetVisibilityAction from '$lib/components/photos-page/actions/set-visibility-action.svelte';
- import TagAction from '$lib/components/photos-page/actions/tag-action.svelte';
- import AssetSelectControlBar from '$lib/components/photos-page/asset-select-control-bar.svelte';
import ButtonContextMenu from '$lib/components/shared-components/context-menu/button-context-menu.svelte';
import MenuOption from '$lib/components/shared-components/context-menu/menu-option.svelte';
import ControlAppBar from '$lib/components/shared-components/control-app-bar.svelte';
@@ -29,6 +16,19 @@
NotificationType,
notificationController,
} from '$lib/components/shared-components/notification/notification';
+ import AddToAlbum from '$lib/components/timeline/actions/AddToAlbumAction.svelte';
+ import ArchiveAction from '$lib/components/timeline/actions/ArchiveAction.svelte';
+ import ChangeDate from '$lib/components/timeline/actions/ChangeDateAction.svelte';
+ import ChangeDescription from '$lib/components/timeline/actions/ChangeDescriptionAction.svelte';
+ import ChangeLocation from '$lib/components/timeline/actions/ChangeLocationAction.svelte';
+ import CreateSharedLink from '$lib/components/timeline/actions/CreateSharedLinkAction.svelte';
+ import DeleteAssets from '$lib/components/timeline/actions/DeleteAssetsAction.svelte';
+ import DownloadAction from '$lib/components/timeline/actions/DownloadAction.svelte';
+ import FavoriteAction from '$lib/components/timeline/actions/FavoriteAction.svelte';
+ import SelectAllAssets from '$lib/components/timeline/actions/SelectAllAction.svelte';
+ import SetVisibilityAction from '$lib/components/timeline/actions/SetVisibilityAction.svelte';
+ import TagAction from '$lib/components/timeline/actions/TagAction.svelte';
+ import AssetSelectControlBar from '$lib/components/timeline/AssetSelectControlBar.svelte';
import Timeline from '$lib/components/timeline/Timeline.svelte';
import { AppRoute, PersonPageViewMode, QueryParameter, SessionStorageKey } from '$lib/constants';
import { TimelineManager } from '$lib/managers/timeline-manager/timeline-manager.svelte';
diff --git a/web/src/routes/(user)/photos/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/photos/[[assetId=id]]/+page.svelte
index 60013fce98..096980abcd 100644
--- a/web/src/routes/(user)/photos/[[assetId=id]]/+page.svelte
+++ b/web/src/routes/(user)/photos/[[assetId=id]]/+page.svelte
@@ -1,25 +1,25 @@
<script lang="ts">
import { beforeNavigate } from '$app/navigation';
import UserPageLayout from '$lib/components/layouts/user-page-layout.svelte';
- import AddToAlbum from '$lib/components/photos-page/actions/add-to-album.svelte';
- import ArchiveAction from '$lib/components/photos-page/actions/archive-action.svelte';
- import AssetJobActions from '$lib/components/photos-page/actions/asset-job-actions.svelte';
- import ChangeDate from '$lib/components/photos-page/actions/change-date-action.svelte';
- import ChangeDescription from '$lib/components/photos-page/actions/change-description-action.svelte';
- import ChangeLocation from '$lib/components/photos-page/actions/change-location-action.svelte';
- import CreateSharedLink from '$lib/components/photos-page/actions/create-shared-link.svelte';
- import DeleteAssets from '$lib/components/photos-page/actions/delete-assets.svelte';
- import DownloadAction from '$lib/components/photos-page/actions/download-action.svelte';
- import FavoriteAction from '$lib/components/photos-page/actions/favorite-action.svelte';
- import LinkLivePhotoAction from '$lib/components/photos-page/actions/link-live-photo-action.svelte';
- import SelectAllAssets from '$lib/components/photos-page/actions/select-all-assets.svelte';
- import SetVisibilityAction from '$lib/components/photos-page/actions/set-visibility-action.svelte';
- import StackAction from '$lib/components/photos-page/actions/stack-action.svelte';
- import TagAction from '$lib/components/photos-page/actions/tag-action.svelte';
- import AssetSelectControlBar from '$lib/components/photos-page/asset-select-control-bar.svelte';
import MemoryLane from '$lib/components/photos-page/memory-lane.svelte';
import ButtonContextMenu from '$lib/components/shared-components/context-menu/button-context-menu.svelte';
import EmptyPlaceholder from '$lib/components/shared-components/empty-placeholder.svelte';
+ import AddToAlbum from '$lib/components/timeline/actions/AddToAlbumAction.svelte';
+ import ArchiveAction from '$lib/components/timeline/actions/ArchiveAction.svelte';
+ import AssetJobActions from '$lib/components/timeline/actions/AssetJobActions.svelte';
+ import ChangeDate from '$lib/components/timeline/actions/ChangeDateAction.svelte';
+ import ChangeDescription from '$lib/components/timeline/actions/ChangeDescriptionAction.svelte';
+ import ChangeLocation from '$lib/components/timeline/actions/ChangeLocationAction.svelte';
+ import CreateSharedLink from '$lib/components/timeline/actions/CreateSharedLinkAction.svelte';
+ import DeleteAssets from '$lib/components/timeline/actions/DeleteAssetsAction.svelte';
+ import DownloadAction from '$lib/components/timeline/actions/DownloadAction.svelte';
+ import FavoriteAction from '$lib/components/timeline/actions/FavoriteAction.svelte';
+ import LinkLivePhotoAction from '$lib/components/timeline/actions/LinkLivePhotoAction.svelte';
+ import SelectAllAssets from '$lib/components/timeline/actions/SelectAllAction.svelte';
+ import SetVisibilityAction from '$lib/components/timeline/actions/SetVisibilityAction.svelte';
+ import StackAction from '$lib/components/timeline/actions/StackAction.svelte';
+ import TagAction from '$lib/components/timeline/actions/TagAction.svelte';
+ import AssetSelectControlBar from '$lib/components/timeline/AssetSelectControlBar.svelte';
import Timeline from '$lib/components/timeline/Timeline.svelte';
import { AssetAction } from '$lib/constants';
import { TimelineManager } from '$lib/managers/timeline-manager/timeline-manager.svelte';
diff --git a/web/src/routes/(user)/search/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/search/[[photos=photos]]/[[assetId=id]]/+page.svelte
index 3b2bb026f7..3596ef6904 100644
--- a/web/src/routes/(user)/search/[[photos=photos]]/[[assetId=id]]/+page.svelte
+++ b/web/src/routes/(user)/search/[[photos=photos]]/[[assetId=id]]/+page.svelte
@@ -4,24 +4,24 @@
import { shortcut } from '$lib/actions/shortcut';
import AlbumCardGroup from '$lib/components/album-page/album-card-group.svelte';
import Icon from '$lib/components/elements/icon.svelte';
- import AddToAlbum from '$lib/components/photos-page/actions/add-to-album.svelte';
- import ArchiveAction from '$lib/components/photos-page/actions/archive-action.svelte';
- import AssetJobActions from '$lib/components/photos-page/actions/asset-job-actions.svelte';
- import ChangeDate from '$lib/components/photos-page/actions/change-date-action.svelte';
- import ChangeDescription from '$lib/components/photos-page/actions/change-description-action.svelte';
- import ChangeLocation from '$lib/components/photos-page/actions/change-location-action.svelte';
- import CreateSharedLink from '$lib/components/photos-page/actions/create-shared-link.svelte';
- import DeleteAssets from '$lib/components/photos-page/actions/delete-assets.svelte';
- import DownloadAction from '$lib/components/photos-page/actions/download-action.svelte';
- import FavoriteAction from '$lib/components/photos-page/actions/favorite-action.svelte';
- import SetVisibilityAction from '$lib/components/photos-page/actions/set-visibility-action.svelte';
- import TagAction from '$lib/components/photos-page/actions/tag-action.svelte';
- import AssetSelectControlBar from '$lib/components/photos-page/asset-select-control-bar.svelte';
import ButtonContextMenu from '$lib/components/shared-components/context-menu/button-context-menu.svelte';
import ControlAppBar from '$lib/components/shared-components/control-app-bar.svelte';
import GalleryViewer from '$lib/components/shared-components/gallery-viewer/gallery-viewer.svelte';
import LoadingSpinner from '$lib/components/shared-components/loading-spinner.svelte';
import SearchBar from '$lib/components/shared-components/search-bar/search-bar.svelte';
+ import AddToAlbum from '$lib/components/timeline/actions/AddToAlbumAction.svelte';
+ import ArchiveAction from '$lib/components/timeline/actions/ArchiveAction.svelte';
+ import AssetJobActions from '$lib/components/timeline/actions/AssetJobActions.svelte';
+ import ChangeDate from '$lib/components/timeline/actions/ChangeDateAction.svelte';
+ import ChangeDescription from '$lib/components/timeline/actions/ChangeDescriptionAction.svelte';
+ import ChangeLocation from '$lib/components/timeline/actions/ChangeLocationAction.svelte';
+ import CreateSharedLink from '$lib/components/timeline/actions/CreateSharedLinkAction.svelte';
+ import DeleteAssets from '$lib/components/timeline/actions/DeleteAssetsAction.svelte';
+ import DownloadAction from '$lib/components/timeline/actions/DownloadAction.svelte';
+ import FavoriteAction from '$lib/components/timeline/actions/FavoriteAction.svelte';
+ import SetVisibilityAction from '$lib/components/timeline/actions/SetVisibilityAction.svelte';
+ import TagAction from '$lib/components/timeline/actions/TagAction.svelte';
+ import AssetSelectControlBar from '$lib/components/timeline/AssetSelectControlBar.svelte';
import { AppRoute, QueryParameter } from '$lib/constants';
import { TimelineManager } from '$lib/managers/timeline-manager/timeline-manager.svelte';
import type { TimelineAsset, Viewport } from '$lib/managers/timeline-manager/types';
diff --git a/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.svelte
index 74b5c252a4..20a9746a4b 100644
--- a/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.svelte
+++ b/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.svelte
@@ -2,15 +2,15 @@
import { goto } from '$app/navigation';
import empty3Url from '$lib/assets/empty-3.svg';
import UserPageLayout from '$lib/components/layouts/user-page-layout.svelte';
- import DeleteAssets from '$lib/components/photos-page/actions/delete-assets.svelte';
- import RestoreAssets from '$lib/components/photos-page/actions/restore-assets.svelte';
- import SelectAllAssets from '$lib/components/photos-page/actions/select-all-assets.svelte';
- import AssetSelectControlBar from '$lib/components/photos-page/asset-select-control-bar.svelte';
import EmptyPlaceholder from '$lib/components/shared-components/empty-placeholder.svelte';
import {
notificationController,
NotificationType,
} from '$lib/components/shared-components/notification/notification';
+ import DeleteAssets from '$lib/components/timeline/actions/DeleteAssetsAction.svelte';
+ import RestoreAssets from '$lib/components/timeline/actions/RestoreAction.svelte';
+ import SelectAllAssets from '$lib/components/timeline/actions/SelectAllAction.svelte';
+ import AssetSelectControlBar from '$lib/components/timeline/AssetSelectControlBar.svelte';
import Timeline from '$lib/components/timeline/Timeline.svelte';
import { AppRoute } from '$lib/constants';
import { TimelineManager } from '$lib/managers/timeline-manager/timeline-manager.svelte';