Skip to content

fix(requests): keep the loading skeleton inside the page column - #604

Merged
Quick104 merged 1 commit into
mainfrom
t3code/fix-requests-tab-skeleton-offset
Oct 5, 2026
Merged

Quick104 merged 1 commit into
mainfrom
t3code/fix-requests-tab-skeleton-offset

Conversation

@Quick104

@Quick104 Quick104 commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Problem: on a cold start, the Requests loading skeleton pushed the hub off the leading edge on phones. Four placeholder posters are wider than the page column, and the rail's maxWidth: .infinity frame let them widen the whole column. The scroll view then centered that wider column.
  • Fix: add minWidth: 0 to the rail frame in RequestRailSkeleton. The frame can now shrink below the cards' total width, so .clipped() trims the overflow and the column keeps its width.
  • Add RequestRailSkeletonLayoutTests, which hosts the rail in a 361 pt column and asserts it does not grow wider than that column.

Testing

  • Not run: RequestRailSkeletonLayoutTests (new, in iosApp/Tests/).
  • Not run: iOS build, or a visual check of the Requests tab on a cold start.

AI disclosure

Written with Claude Sonnet 5.5 (claude-sonnet-5-5) in Claude Code (Claude Agent SDK). No other AI tooling was used.

Note

Fix RequestRailSkeleton overflow in narrow request page columns

Sets a zero minimum width on the rail frame in RequestsLoadingSkeleton.swift, so the rail shrinks to the parent width instead of expanding to the combined width of its placeholder cards. Excess cards are clipped.

Adds a layout test in RequestRailSkeletonLayoutTests.swift that measures a four-card rail at 361 points and asserts the width stays within 0.5 points of the column.

Macroscope summarized aaf9f71.

- Let the request rail skeleton shrink below the total width of its cards so it clips instead of widening the page
- Stop the Requests hub from sliding off the leading edge on a cold start
- Add a layout test that checks the rail fits a narrow phone column
@silo-kody

silo-kody Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-05T03:19:41.194746Z aaf9f71 PR opened
ℹ️ 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.

@coderabbitai

coderabbitai Bot commented Oct 5, 2026

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1afe4ada-70d4-405a-bd0a-9e1745287167
📥 Commits

Reviewing files that changed from the base of the PR and between 063a8ad and aaf9f71.

📒 Files selected for processing (2)
  • iosApp/Tests/RequestRailSkeletonLayoutTests.swift
  • iosApp/iosApp/Screens/Requests/Components/RequestsLoadingSkeleton.swift
 __________________________________________________________
< If your code was a carrot, I'd bury it and forget where. >
 ----------------------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · 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

Comment @coderabbitai help to get the list of available commands.

@Quick104
Quick104 merged commit 0a4cce3 into main Oct 5, 2026
5 of 6 checks passed
@Quick104
Quick104 deleted the t3code/fix-requests-tab-skeleton-offset branch October 5, 2026 03:20
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