Skip to content

fix(requests): remove request administration from the Apple apps - #746

Merged
Quick104 merged 1 commit into
Silo-Server:mainfrom
Rhainland:fix/requests-no-native-admin
Oct 13, 2026
Merged

Quick104 merged 1 commit into
Silo-Server:mainfrom
Rhainland:fix/requests-no-native-admin

Conversation

@Rhainland

@Rhainland Rhainland commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: Silo-Server/silo-server#1201
Validation tasks: unblocks #328 C3, #329 C3

The Requests acceptance criteria say request administration (approve, decline, limits, auto-approve) stays in the web admin. The iPhone, iPad, Apple TV and Mac apps show admins a pending-approvals card, an approvals queue, and Approve, Decline and Retry on a request's detail page; on Apple TV a long-press menu puts Approve first, so one stray Select approves. This change removes request moderation from the Apple apps.

Approach

The approvals route and its view model, the hub's pending-approvals card, the detail page's Approve/Decline/Retry controls, the tvOS approval rows and context menu, the admin capability probe (canModerate) and the admin request API calls are removed. Requesting, cancelling your own pending request and following a request's status are unchanged. A test asserts the request screens never call /api/v2/admin/requests. docs/requests-api-v2.md now says administration is web-only.

#747 and #748 are stacked on this branch; merge this first.

Validation

  • iPhone, iPad and Apple TV simulators against a local server, signed in as an admin: no approvals card, queue, Approve, Decline or Retry on a pending request someone else made; as a regular user, request, cancel and status work as before.
  • Request unit tests on iOS and tvOS: pass. iOS, tvOS and macOS build.

Evidence

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

Risks

Admins who approved requests from the apps must use the web admin, which the published criteria already require.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code
  • Tool(s): Claude Code (Bash, file edits, subagents), GitHub CLI (gh), Playwright, Xcode xcodebuild/simctl, Maestro, Android emulator/adb
  • Model(s): Claude Opus 5.5 (claude-opus-5-5)
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: A separate Claude Code review pass (medium) covered every branch of the Requests validation fixes across silo-server, silo-apple and silo-android. Its findings (a commit message that misdescribed the unfollow response, a tablet layout that hid the title) were fixed. This was an AI self-review; no independent human review is claimed.

The Requests feature's acceptance criteria keep request administration
(approve, decline, retry, limits, auto-approve) in the web admin, and
the native validation tasks ask that no client expose it. The Apple
apps still showed admins an approvals queue, a pending-approvals card
on the hub and My Requests, Approve/Decline/Retry on the request detail
page, and approval rows with a moderation context menu on tvOS.

Remove all of it: the approvals route and page, the approvals view
model and its hold logic, the moderation pin in the detail cache and
event bus, the admin capability probe in RequestsFeatureStore, and the
admin request client calls and models. Users keep their own request
actions: request, cancel a pending request, and follow its status.

A new test checks that probing the feature and opening a title someone
else requested read only the viewer's own request endpoints.
@silo-kody

silo-kody Bot commented Oct 12, 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 ❌

@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f7671ccc-8921-4d0c-95b9-dbad0c2811c6

📥 Commits

Reviewing files that changed from the base of the PR and between 860bb6f and dab0ffb.


📒 Files selected for processing (23)
  • docs/requests-api-v2.md
  • iosApp/Tests/RequestDetailCacheTests.swift
  • iosApp/Tests/RequestsV2Tests.swift
  • iosApp/iosApp/ContentView.swift
  • iosApp/iosApp/Navigation/AppRouter.swift
  • iosApp/iosApp/Navigation/MacSidebarSections.swift
  • iosApp/iosApp/Navigation/Route.swift
  • iosApp/iosApp/Networking/APIv2/APIv2Client+Requests.swift
  • iosApp/iosApp/Networking/APIv2/APIv2RequestsModels.swift
  • iosApp/iosApp/Networking/RequestsFeatureStore.swift
  • iosApp/iosApp/Networking/SiloAPI+Requests.swift
  • iosApp/iosApp/Screens/Requests/Components/RequestMediaCard.swift
  • iosApp/iosApp/Screens/Requests/Core/RequestDetailCache.swift
  • iosApp/iosApp/Screens/Requests/Core/RequestErrorCopy.swift
  • iosApp/iosApp/Screens/Requests/Detail/RequestDetailView.swift
  • iosApp/iosApp/Screens/Requests/Detail/RequestDetailViewModel.swift
  • iosApp/iosApp/Screens/Requests/Hub/RequestsHubView.swift
  • iosApp/iosApp/Screens/Requests/Hub/RequestsHubViewModel.swift
  • iosApp/iosApp/Screens/Requests/MyRequests/MyRequestsView.swift
  • iosApp/iosApp/Screens/Requests/MyRequests/RequestApprovalsViewModel.swift
  • iosApp/iosApp/Screens/Requests/RequestsEventBus.swift
  • iosApp/iosApp/tvOS/Navigation/TVMainTabView.swift
  • iosApp/iosApp/tvOS/Screens/Requests/TVRequestsPage.swift

💤 Files with no reviewable changes (10)
  • iosApp/iosApp/Navigation/Route.swift
  • iosApp/iosApp/Navigation/AppRouter.swift
  • iosApp/iosApp/tvOS/Navigation/TVMainTabView.swift
  • iosApp/Tests/RequestDetailCacheTests.swift
  • iosApp/iosApp/ContentView.swift
  • iosApp/iosApp/Screens/Requests/Core/RequestErrorCopy.swift
  • iosApp/iosApp/Screens/Requests/MyRequests/RequestApprovalsViewModel.swift
  • iosApp/iosApp/Networking/APIv2/APIv2RequestsModels.swift
  • iosApp/iosApp/Screens/Requests/RequestsEventBus.swift
  • iosApp/iosApp/Screens/Requests/Components/RequestMediaCard.swift

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.



📝 Walkthrough

Walkthrough

Apple clients no longer expose request moderation queues, actions, or admin API calls. Request status, detail, and list flows use the signed-in user’s request data. Navigation, caching, hub, iOS, and tvOS surfaces were updated, and tests and API documentation reflect this boundary.

Changes

Apple request moderation removal

Layer / File(s) Summary
Remove admin request API support
docs/requests-api-v2.md, iosApp/iosApp/Networking/APIv2/*, iosApp/iosApp/Networking/RequestsFeatureStore.swift, iosApp/iosApp/Networking/SiloAPI+Requests.swift, iosApp/Tests/RequestsV2Tests.swift
Removed admin request endpoints, models, and capability checks. Request-list pagination no longer accepts filters. Documentation and tests describe the Apple-client API boundary.
Use personal request data in detail views
iosApp/iosApp/Screens/Requests/Core/*, iosApp/iosApp/Screens/Requests/Detail/*, iosApp/iosApp/Screens/Requests/Components/RequestMediaCard.swift, iosApp/iosApp/Screens/Requests/RequestsEventBus.swift, iosApp/Tests/RequestDetailCacheTests.swift
Removed moderation records, pins, holds, lookups, and detail actions. The detail view model and cache use the signed-in user’s request record.
Remove approval queues from request surfaces
iosApp/iosApp/ContentView.swift, iosApp/iosApp/Navigation/*, iosApp/iosApp/Screens/Requests/Hub/*, iosApp/iosApp/Screens/Requests/MyRequests/*, iosApp/iosApp/tvOS/Navigation/TVMainTabView.swift, iosApp/iosApp/tvOS/Screens/Requests/TVRequestsPage.swift
Removed approval routes, queue loading and display, and moderation controls from the hub and iOS and tvOS request screens. Personal request and discovery views remain.

Priority: ➖ Normal

Estimated code review effort: 4 (Complex) | ~45 minutes

Change: Bug fix

Suggested reviewers: quick104


Merge Risk: ⚪ Minimal · up to dab0f

Native request administration moves to the web admin, while personal request flows remain described as supported. No actionable merge blocker is established.

Pre-merge checks · Passed 4 · Failed 1

Failed Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 32.26% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 31 functions across 12 files. (1 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks (4 passed)
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description clearly explains the removal of request administration from the Apple apps, the affected UI and API components, the preserved user request flows, and the validation performed.
Title check Passed The title clearly and concisely summarizes the main change: removing request administration from the Apple apps.

Full details: Docstring Coverage

Explanation

Docstring coverage is 32.26% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 31 functions across 12 files. (1 skipped: 1 unsupported.)


  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

  • 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

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

@silo-triage silo-triage Bot added api-v2 API v2 / Huma program (epic silo-server#135) bug Something isn't working priority: P2 Limited scope, workaround exists, or polish labels Oct 12, 2026
@Quick104
Quick104 merged commit 96854e7 into Silo-Server:main Oct 13, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-v2 API v2 / Huma program (epic silo-server#135) bug Something isn't working priority: P2 Limited scope, workaround exists, or polish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants