Repository navigation
feat(profiles): set whether a new profile may make requests - #820
Conversation
The new-profile form offers Allow requests when the server reports requests_allowed_supported, and the Child Profile preset turns it off.
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 55 minutes. View limit details
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
The new-profile “Allow requests” switch and its interaction with “Child Profile” are not evidenced on iPhone Duo (folded and open) or iPad. Please add before-and-after captures of the same form on those devices and a short recording of the preset interaction. The PR explains that Mac and Apple TV captures were unavailable; the evidence link is treated as evidence for the iPhone, but the linked page should also be checked for the listed device coverage. Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Problem
Closes #811
Related issue: Silo-Server/silo-server#1430
Validation tasks: none affected
The server can now block one profile from media requests (Silo-Server/silo-server#2612), but the Apple apps give a household manager no way to set it when they create a profile. A Child Profile made in the app keeps requests, so the child can browse titles outside the library, where parental controls only partly apply. This change adds an Allow requests switch to the new-profile form, and Child Profile turns it off, matching the web Kids preset.
Approach
requests_allowed_supported. Older servers never see the field. Only a blocked profile sendsrequests_allowed: false, because the server's default is allowed.getRequestStatusreportsallowed: false, and the app gates on it. No other screen changes.Validation
requests_allowedand the support flag, and leaving the field out on older servers.main, which applied without conflicts.Evidence
Evidence: https://evidence.siloserver.org/r/silo-apple/pr-820/
Surface and build: iPhone (iOS 26.5 simulator); before is
main(5c9959a), after is this branch. iPad uses the same form layout and wasn't captured separately. Apple TV and Mac weren't captured because I couldn't drive their simulators in this session; both build.Risks
Checklist
AI Disclosure
Note
Add per-profile requests-allowed setting to profile creation
SiloAPI.createProfile/AuthService.createProfile. A nil value omits the member from the JSON body.householdProfileListoperation that decodes a new profile-list envelope and reports whether the server supports the per-profile requests setting; the flag is only true when the server sends exactlytrue.ProfileSwitchRowcomponent with title, subtitle, and accessibility labels.APIv2Client.householdProfilesstill returns only the profile rows; callers needing the capability flag must usehouseholdProfileList. Old servers that omit the requests member keep decoding with a nil value.Macroscope summarized 2267742.