fix: theme store stuck on loading skeleton after fetch failures

Harden theme list fetching with normalized API responses, timeouts, retries,
and a visible error state so the store no longer stays blank when messaging
or payloads fail (common after extension updates without a SEQTA tab reload).
This commit is contained in:
SethBurkart123
2026-06-02 12:43:35 +10:00
parent 9000cb28cd
commit 3987871a6a
7 changed files with 224 additions and 34 deletions
@@ -10,14 +10,18 @@
}>();
let emblaApi = $state();
const options = { loop: true };
const plugins = [
Autoplay({
delay: 5000,
stopOnInteraction: false,
stopOnMouseEnter: true,
}),
];
const options = $derived({ loop: slides.length > 1 });
const plugins = $derived(
slides.length > 1
? [
Autoplay({
delay: 5000,
stopOnInteraction: false,
stopOnMouseEnter: true,
}),
]
: [],
);
function onInit(event: CustomEvent) {
emblaApi = event.detail;