refactor/significant-changes #3

Merged
mkelvers merged 71 commits from refactor/significant-changes into main 2026-05-14 11:25:25 +00:00
Owner
No description provided.
mkelvers added 71 commits 2026-05-14 11:04:28 +00:00
Goose wraps each migration in a transaction automatically.
Explicit BEGIN TRANSACTION/COMMIT caused a nested transaction
error in SQLite.
Previously the backend only fetched streams for the single requested
mode (defaulting to sub), so modeSources never had a dub entry.
The frontend's switchMode showed visual feedback but streamUrlForMode
returned an empty string since no dub token existed.
Now both modes are fetched and availableModes is derived from what
actually resolved.
Replace SaveWatchProgress (UPDATE watch_list_entry) with
UpsertContinueWatchingEntry so progress persists for any anime
without creating watchlist entries.
Expose continue watching entry lookup so other handlers can check
saved progress for an anime without needing the playback service.
Include ?ep=N in the watch links so clicking a continue watching
card loads the correct episode and resumes from saved progress.
Check continue_watching_entry to find the episode to resume from.
Show 'Continue Episode N' instead of 'Watch Now' when progress exists.
Anime detail page never looked up or passed the user's watchlist
status, so the dropdown always showed 'Add to Watchlist'. Now
queries watch_list_entry and passes Status and WatchlistIDs.
Removes continue_watching_entry and clears progress when the last
episode finishes so it no longer shows in Continue Watching.
Check existing watchlist status — if already completed, just clear
progress and remove from continue watching. Otherwise upsert with
status 'completed'.
mkelvers changed title from WIP: refactor/significant-changes to refactor/significant-changes 2026-05-14 11:25:19 +00:00
mkelvers merged commit 35c1d3da1a into main 2026-05-14 11:25:25 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mkelvers/mal#3