Release Kaleido Desktop 1.0.0
All checks were successful
Validate Kaleido Desktop / validate (push) Successful in 1m30s

Out of beta. Show and season pages:
- Season pages list episodes as a grid of cards (still, description,
  watched state) instead of the episode list and season picker; the
  season title opens a menu of the show's seasons (replacing the page,
  so Back returns to the show).
- Show pages keep only the Seasons row; single-season shows list their
  episodes. The up-next line adds the title instead of repeating the
  episode number.
- Season Play/Resume follows the show's on-deck episode, and the season
  shows the year it aired.

Watching:
- A title Plex has counted as played stays watched during an
  unfinished rewatch; leftover positions only show in Continue Watching
  and on the episode you're up to. Resume buttons use resumable().
- Next/previous episode (autoplay, Up Next, player) start from the top.

Browsing:
- Rows that haven't been scrolled stay at their start when items are
  added in front (scroll snapping kept the old first card in place).
- Show names on episode cards link to the show; seasons outside their
  show's page are captioned with the show's name.
- Detail facts show the runtime; the Resume button has the time left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Elijah 2026-11-13 13:41:02 -07:00
parent 5719432fe8
commit bc3358cb07
15 changed files with 263 additions and 247 deletions

View file

@ -102,6 +102,14 @@ describe('Up Next playback lifecycle', () => {
expect(next).toHaveBeenCalledOnce();
usePlayer.setState({ playNext: original });
});
it('starts the next episode from the beginning, ignoring an earlier partial viewing', async () => {
const original = usePlayer.getState().play;
const spy = vi.fn().mockResolvedValue(undefined);
usePlayer.setState({ play: spy, nextUp: { ...episode('2'), viewOffset: 88000 } });
await usePlayer.getState().playNext();
expect(spy).toHaveBeenCalledWith(expect.objectContaining({ id: '2' }), expect.objectContaining({ resume: false }));
usePlayer.setState({ play: original });
});
it('cancels autoplay while keeping the screen open, including across EOF', () => {
time(81);
usePlayer.getState().cancelCountdown();

View file

@ -1019,13 +1019,15 @@ export const usePlayer = create<PlayerState>((set, get) => ({
const st = get();
stopCountdown();
if (!st.nextUp) return;
await st.play(st.nextUp, { resume: true, quality: st.quality });
// Watching on through a season starts each episode from the top, never at a
// stale position left by an earlier, unfinished viewing.
await st.play(st.nextUp, { resume: false, quality: st.quality });
},
async playPrevious() {
const st = get();
if (!st.prevUp) return;
await st.play(st.prevUp, { resume: true, quality: st.quality });
await st.play(st.prevUp, { resume: false, quality: st.quality });
},
cancelCountdown() {