fix(web): fix lost scrollpos on deep link to timeline asset, scrub stop (#16305)

* Work in progress - super quick asset store->state

* bugfix: deep linking to timeline, on scrub stop

* format, remove stale

* disable test, todo: fix test

* remove unused import

* Fix merge

* lint

* lint

* lint

* Default to non-wasm layout

* lint

* intobs fix

* fix rejected promise

* Review comments, static import wasm

* Back to dynamic

* try top-level-await

* back to the first solution, with more finesse

* comment out wasm for now

* back out the wasm/thumbhash/thumbnail changes

* lint

* Fully remove wasm

* lockfile

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
Min Idzelis
2025-03-04 21:34:53 -05:00
committed by GitHub
parent 8b43066632
commit 56b85f7479
36 changed files with 362 additions and 305 deletions
@@ -8,7 +8,7 @@
import { t } from 'svelte-i18n';
interface Props {
onArchive: OnArchive;
onArchive?: OnArchive;
menuItem?: boolean;
unarchive?: boolean;
}
@@ -28,7 +28,7 @@
loading = true;
const ids = await archiveAssets(assets, isArchived);
if (ids) {
onArchive(ids, isArchived);
onArchive?.(ids, isArchived);
clearSelect();
}
loading = false;
@@ -13,7 +13,7 @@
import { t } from 'svelte-i18n';
interface Props {
onFavorite: OnFavorite;
onFavorite?: OnFavorite;
menuItem?: boolean;
removeFavorite: boolean;
}
@@ -44,7 +44,7 @@
asset.isFavorite = isFavorite;
}
onFavorite(ids, isFavorite);
onFavorite?.(ids, isFavorite);
notificationController.show({
message: isFavorite
@@ -1,6 +1,6 @@
<script lang="ts">
import CircleIconButton from '$lib/components/elements/buttons/circle-icon-button.svelte';
import { type AssetStore, isSelectingAllAssets } from '$lib/stores/assets.store';
import { type AssetStore, isSelectingAllAssets } from '$lib/stores/assets-store.svelte';
import { mdiSelectAll, mdiSelectRemove } from '@mdi/js';
import { selectAllAssets, cancelMultiselect } from '$lib/utils/asset-utils';
import { t } from 'svelte-i18n';