Skip to content

refactor(media): adopt Loaded in Calendar and Discover - #5522

Open
shepherdjerred wants to merge 3 commits into
mainfrom
media-calendar-discover-loaded
Open

shepherdjerred wants to merge 3 commits into
mainfrom
media-calendar-discover-loaded

Conversation

@shepherdjerred

@shepherdjerred shepherdjerred commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Why

A Calendar refresh failure hid previously loaded releases. Discover handled
initial loading, refreshes, and page failures in several rendering branches,
and a page retry restarted at page one.

What

  • Render Calendar, Discover rails, search results, and full feeds through Loaded and LoadingBlock.
  • Share one complete-range Calendar query with Home.
  • Keep usable results visible during transient refresh errors. Preserve Plex access feedback and keep the denied query's results hidden through failed retries.
  • Retry Discover pagination at the failed page and keep previous search results separate from the new search's count.
  • Synchronize the Calendar contrast and Home loading assertions with the specific regions they check.

AI-1193

Demo

Scenario Before After
Calendar after a transient refresh failure Calendar before Calendar after
Discover after page two fails Discover before Discover after

Discover's retry requests page two again and appends the results. Retry recording

Verification

  • CI_VITEST_MAX_WORKERS=2 bunx turbo run build typecheck test:ci lint --filter='...[origin/main...HEAD]' --concurrency=1 passed both affected packages. After Temporal advanced on main, Media passed all 2,266 cases, and Temporal had one five-second promotion-dashboard timeout among 4,165 tests. The isolated rerun passed all five tests in that file.
  • bun run verify:extended -- --filter=@shepherdjerred/media passed all 2,318 tests. After main advanced, the download-progress integration passed all three cases. The embedded subtitle checks passed, and the isolated rerun of the native subtitle proof file passed all 17 tests.
  • bun run verify:extended -- --filter=@shepherdjerred/temporal passed all 152 integration tests. The workflow step had 13 test timeouts and one startup timeout under concurrent local work. The isolated Node Vitest rerun passed all 35 tests in the 13 affected files with the original timeouts.
  • bun run e2e:affected passed all 1,624 desktop and mobile tests against the current Media files.
  • The separated build typecheck lint run passed all 41 tasks. The final restack preserved Media's files, and the refreshed Media typecheck and Temporal maintenance checks passed.
  • Commit hooks and the root jscpd, quality ratchet, and Knip checks passed. bun run check-react-suspense reported zero authored occurrences.
  • Production deployment and live behavior remain unverified.

@shepherdjerred

Copy link
Copy Markdown
Owner Author

This change is part of the following stack:

Change managed by git-spice.

@greptile-apps

greptile-apps Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Automatic reviews are disabled for this repository. Configure in Code Review Settings.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@shepherdjerred
shepherdjerred force-pushed the media-calendar-discover-loaded branch 2 times, most recently from 280bd68 to 6ff402d Compare November 30, 2026 00:51
Why
Calendar and Discover use TanStack Query but handle initial loading, errors,
and refreshes in bespoke rendering branches.

What
Render Calendar ranges and Discover rails, search, and full feeds through
Loaded and LoadingBlock. Share the complete-range Calendar query with Home.
Keep cached results during transient failures, hide denied results, and retry
pagination at the failed page.

Verification
Local checks and browser evidence are recorded in the PR. Production
deployment and live behavior were not checked.

Tracker: AI-1193
Why
The contrast check can sample placeholder numerals before Calendar finishes
reading its date range.

What
Wait for the accessible Calendar grid and scope the existing fill comparison
to its real numerals.

Verification
Reproduced the race against the main bundle with a held Calendar read.
The focused and affected browser checks are recorded in the PR.
Why
Other Home sections can still load while the test holds the interests read.

What
Match the On the way loading status by its accessible text.

Verification
Reproduced the broad locator failure on main with Calendar and interests
both held. The browser checks are recorded in the PR.
@shepherdjerred
shepherdjerred force-pushed the media-calendar-discover-loaded branch from 6ff402d to 7c33a59 Compare December 3, 2026 03:38
@shepherdjerred
shepherdjerred marked this pull request as ready for review December 3, 2026 03:38
@shepherdjerred

Copy link
Copy Markdown
Owner Author

@codex review

Automated re-review request for 7c33a59 from the CI review gate.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T03:41:25.793919Z 7c33a59 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 7c33a59aed

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant