Records: exclude Zwift activities by title; show Saved confirmation before closing drawer

- _is_outdoor now also excludes activities whose title matches /\bzwift\b/i,
  covering the ~50 Strava-imported Zwift rides that lack sub_sport metadata.

- EditDrawer waits 900ms after a successful save before dispatching 'saved'
  (which closes the drawer), so the green "Saved" confirmation is visible.
This commit is contained in:
Davide Scaini
2026-05-15 00:49:46 +02:00
parent 9f1e9e4d3b
commit a863cdd663
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -93,6 +93,7 @@
if (!res.ok) throw new Error(await res.text());
saveStatus = 'Saved';
saveOk = true;
await new Promise(r => setTimeout(r, 900));
dispatch('saved', { title, description });
} catch (e: any) {
saveStatus = e.message;