Skip to content

fix(browse): stack Sort and Filter at large text sizes instead of breaking words - #625

Merged
Quick104 merged 3 commits into
Silo-Server:mainfrom
Rhainland:fix/browse-controls-large-text
Oct 6, 2026
Merged

Quick104 merged 3 commits into
Silo-Server:mainfrom
Rhainland:fix/browse-controls-large-text

Conversation

@Rhainland

@Rhainland Rhainland commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: changes #337 C7

At the largest accessibility text sizes the Sort and Filter chips on a library page no longer fit side by side, and SwiftUI squeezed the Sort label until it broke mid-word ("Dat/e/Ad/de/d", "Ne/we/st"). The row now stacks the chips when they don't fit.

Approach

The control row stacks Sort, Filter, and the available Shuffle button when they don't fit on one line. Nothing changes at normal sizes.

Validation

  • Conflict resolution (2ade24b5) merged main at 16f10785, preserving Shuffle in both layouts and including fix(browse): tell an empty library apart from filters that match nothing #626's empty-library behavior.
  • On the updated branch: signed iOS simulator build, install, and launch passed with Xcode 27.0; 18 targeted Browse and Shuffle unit tests passed; the API path guard and git diff --check passed. The saved simulator test server was unavailable, so this run did not verify the rendered Browse layout.

Evidence: https://evidence.siloserver.org/r/silo-apple/pr-625/

  • Manual, iPhone simulator at the largest accessibility size: the chips stack and labels wrap between words.
  • scripts/ci/check-no-api-v1.sh: pass.
  • All 22 app fixes from this validation run, merged together on main (6242652): the full iOS unit suite ran 2,691 tests. The only failures are ArtworkURLTests.testDeliveryCapabilityOnIOSUsesV2RouteAndResets and ImageSizeCapabilityTests.testResetClearsCapability, which fail the same way on main. tvOS build-for-testing and the macOS build succeed.
  • Local builds used Swift 6.3.3, which needs the ThumbHash type annotations from fix(build): annotate ThumbHash cosine tables so Swift 6.3.3 can type-check them #608 to compile. That change was applied locally and is not part of this PR.

Simulator screenshots (iOS 26.5, tvOS 26.5):

a8-largetext

Risks

None identified.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Merge conflict resolution and validation update: gpt-6.1-sol through the Codex harness in T3 Code; Git, GitHub CLI, xcodebuild, the mac-builder simulator helper, agent-device, and silo-report-share.
  • Harness: Claude Code, running in T3 Code
  • Tool(s): Claude Code subagents, xcodebuild, Xcode Simulator (simctl, Maestro), GitHub CLI
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: A separate Claude Code reviewer agent (claude-opus-5-5) read this branch's diff against main at medium effort, checking behaviour, platform guards (iOS, tvOS, macOS), tests and commit hygiene. No findings.

Note

Fix BrowseView control bar breaking at large text sizes with ViewThatFits

Replaces the fixed horizontal layout in controlBar with a ViewThatFits. Sort, Filter, and Shuffle stay in one row when they fit, otherwise they stack vertically with leading alignment.

  • Extracts the Filter and Shuffle buttons into dedicated view properties (filterButton, shuffleButton) in BrowseView.swift
  • Shuffle still only appears when a shuffle library is available, stays disabled during startup, and keeps its accessibility identifier
  • Behavioral Change: controls now appear vertically at large text sizes instead of clipping or breaking words

Macroscope summarized 2ade24b.

…aking words

At the largest accessibility text sizes the Sort and Filter chips on a library page no longer fit side by side, and SwiftUI squeezed the Sort label until it broke mid-word ("Dat/e/Ad/de/d", "Ne/we/st").

The control row now stacks the two chips when they don't fit on one line. At normal sizes nothing changes.

Found during the Series validation, silo-apple#337 C7.
@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

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: 37c9c16b-b39f-44a4-8415-5ff2b5f3091d
📥 Commits

Reviewing files that changed from the base of the PR and between 16f1078 and 2ade24b.

📒 Files selected for processing (1)
  • iosApp/iosApp/Screens/Browse/BrowseView.swift
 _______________________________________________
< Show me the code! And I'll show you the bugs. >
 -----------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • 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.

@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 ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Centralize server-relative authentication path validation
  • Enforce latest-link-wins centrally across deferred deep links

@Rhainland Rhainland mentioned this pull request Oct 5, 2026
11 tasks
Keep the library Shuffle control in both adaptive layouts, preserving its availability, launch state, and failure alert.
@Quick104
Quick104 merged commit 0066aad into Silo-Server:main Oct 6, 2026
5 of 6 checks passed
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.

2 participants