You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(web): say when downloads are turned off server-wide on group and account pages - #4087
Related issue: N/A
Validation tasks: changes #1197 C1 (adds a note beside the download policy controls; the controls and what they save are unchanged)
Other clients: Apple N/A (web admin pages with no client counterpart); Android N/A (same); Roku N/A (same)
Downloads are gated in three places: the server-wide Allow downloads setting, the access group, and a per-account override. The group and account pages showed only their own switch, so an admin could see "Allowed" on a group or an account while the server had downloads off and nobody could download. A fresh server is in exactly that state: Allow downloads defaults to off and the default group allows downloads.
The group and account pages now say when a server-wide switch overrides the permission being edited, and link to Settings → Downloads.
Approach
The three layers and their enforcement are unchanged; this is web admin only, with no server or API change.
The access group editor, the account's Downloads card, and the new-account form show a note when Allow downloads is off. When downloads are on but Prepare device-friendly copies is off, the note says every download is the original file instead.
The account overview says downloads are off for the whole server instead of "Downloads allowed". The counts of copies already on devices stay.
Allow downloads on the Downloads settings page gains a description: groups and accounts decide who may download while it is on.
The group and account controls stay editable while the server switch is off, as the Requests card already does for requests. The note reads the same settings the Downloads settings page edits and stays hidden until they load, so it only appears for a switch known to be off.
The four new strings come from Silo-Server/silo-translations#26, translated into the seven shipped languages. .silo-translations pins catalog release 2026.11.13-734223e, which contains them.
Validation
Web lint, format check, build, and bundle budget: pass.
Web tests: 7,332 of 7,361 pass on the first two commits; after merging main and re-syncing translations, the typecheck and the 905 tests under the touched admin areas pass. The 29 failures are in four files this change does not touch (request.deadline, authCore.v2, client-context-v3, player-auth-refresh) and fail the same way on the parent commit on the machine that ran them.
Browser check on an isolated sandbox built from this branch, at desktop and phone width: both notes, the overview line, and the settings description render, and the pages switch notes without a reload after Allow downloads is saved.
Not run: the Go gate and the generated-contract checks. No Go, API, or settings-manifest file changes.
Surface and build: web admin, commit 3b6aa9a on an isolated sandbox; before captures from the parent commit against the same data.
Risks
The user, group, and new-account pages now fetch the admin server settings. If that request fails the note stays hidden and the pages behave as before.
Checklist
I read and can explain the complete diff.
This pull request addresses one concern.
Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
The Evidence section shows every change a user can see, or how I checked a change nobody sees.
AI Disclosure
Harness: Claude Code (Claude desktop app, Claude Agent SDK)
Add server-wide downloads-off notices to admin access pages
Adds the DownloadsServerNotice component (DownloadsServerNotice.tsx) that shows a warning when downloads or conversion are disabled server-wide. The downloads-off message takes priority when both are off, and the notice is hidden when both switches are on.
Places the notice on the access-group editor, account access-policy fields, and user downloads policy card, each near the download toggles. Each message links to the Downloads settings page.
New useServerDownloadSwitches hook (useServerDownloadSwitches.ts) reads admin server settings and returns downloadsOff and conversionOff. Both stay false until settings load.
Updates the account access summary (AccessSummaryCard.tsx) to reflect server switches: shows a server-off downloads label and omits download policy detail while downloads are off server-wide, and reports original-files-only when conversion is off.
Adds a description to the server-wide downloads toggle on the Downloads settings page, plus localized messages for all locales.
… account pages
An access group or an account can allow downloads while the server-wide
switch is off, and nothing on those pages said so. The access group editor,
the account Downloads card, and the new-account form now show a note that
links to Settings → Downloads, and the account overview stops calling
downloads allowed when the server has them off.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
No actionable comments were generated in the recent review.
Walkthrough
The web interface now shows notices for server-wide download restrictions and updates download access summaries to reflect server and account settings. The Downloads setting has a translated description, and locale catalogs add the related messages.
Changes: Server-wide download policy
Layer / File(s)
Summary
Read server switches and render notices web/src/hooks/admin/useServerDownloadSwitches.ts, web/src/components/admin/DownloadsServerNotice.tsx, web/src/components/admin/DownloadsServerNotice.test.tsx
The hook reports whether server-wide downloads or conversion are off after settings load. The notice displays the matching message and a link to Downloads settings. Tests cover unknown and configured switch states.
Show server policy in admin views web/src/components/UserPolicyFields.tsx, web/src/components/admin/access-groups/AccessGroupEditor.tsx, web/src/pages/admin-users/detail/access/DownloadsPolicyCard.tsx, web/src/pages/admin-users/detail/overview/AccessSummaryCard.tsx, web/src/pages/admin-settings/DownloadsSettings.tsx, web/src/pages/AdminUserDetail.test.tsx
Policy editors display the notice. The user access summary accounts for server-wide and account-level settings. The Downloads setting receives a description, and the user-detail test mock includes server settings.
The admin pages now explain when the server-wide download setting overrides group and account permissions. The translations are synced to a published release and cover every shipped language. No merge-blocking risk remains.
Architecture risk: Low · up to d58f2
The change affects 1 system.
Changed systems:web
Architecture concerns
No architecture-level concerns identified.
Review details
Systems and components
observed — web (service) was modified; 20 changed files map to changed impact.
Before / after behavior
observed — Modified behavior in web/src/components/UserPolicyFields.tsx: Adds the DownloadsServerNotice import.
observed — Modified behavior in web/src/components/UserPolicyFields.tsx: Renders DownloadsServerNotice before the download and download-transcode policy controls in PolicyAccessFields.
observed — Modified behavior in web/src/components/admin/DownloadsServerNotice.test.tsx: Adds a hoisted settings mock, mocks useAdminServerSettings to return it, and defines a helper that renders DownloadsServerNotice inside a MemoryRouter. Each test resets settings to unknown.
observed — Modified behavior in web/src/components/admin/DownloadsServerNotice.test.tsx: Adds assertions for four settings states: unknown settings and both switches enabled expect an empty container; both switches disabled expect a server-wide-off message and a link to /admin/settings/downloads; downloads enabled with transcoding disabled expects a device-friendly-copies message.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: a notice that says downloads are off server-wide, shown on group and account pages. The diff adds a DownloadsServerNotice component to the access-group editor, the dow…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description states the problem (downloads gated by a server-wide switch, group, and account; groups and accounts showed 'Allowed' while the server had downloads off), the approach (notes on the ac…
Full details: Title check
Explanation
The title names the main change: a notice that says downloads are off server-wide, shown on group and account pages. The diff adds a DownloadsServerNotice component to the access-group editor, the downloads policy card and the policy fields, and changes the account overview. The title is specific and matches the changeset. It is long (83 characters) but still readable.
Full details: Description check
Explanation
The description states the problem (downloads gated by a server-wide switch, group, and account; groups and accounts showed 'Allowed' while the server had downloads off), the approach (notes on the access group editor, account Downloads card, and new-account form, plus an overview change and a settings description), validation, and risks. It is directly related to the changeset, so the check passes.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: bb18480d-8203-4ea3-ac0f-e23e083c6f2e
Commits
Reviewing files that changed from the base of the PR and between 7c35323 and d58f28f.
Files selected for processing: 12
.silo-translations
web/src/locales/ar-XB.json
web/src/locales/ar.json
web/src/locales/de.json
web/src/locales/en-XA.json
web/src/locales/en.json
web/src/locales/es.json
web/src/locales/fr.json
web/src/locales/ja.json
web/src/locales/keys.ts
web/src/locales/pt-BR.json
web/src/locales/zh-Hans.json
Files skipped from review as they are similar to previous changes: 11
.silo-translations
web/src/locales/ar-XB.json
web/src/locales/ar.json
web/src/locales/de.json
web/src/locales/en-XA.json
web/src/locales/en.json
web/src/locales/es.json
web/src/locales/fr.json
web/src/locales/ja.json
web/src/locales/pt-BR.json
web/src/locales/zh-Hans.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enhancementNew feature or requestimpact: polishAnnoyance, cosmetic, or nice-to-havepriority: P2Limited scope, workaround exists, or polishsize/XL500–999 added + deleted lines (all files); change volume, not priority.
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Related issue: N/A
Validation tasks: changes #1197 C1 (adds a note beside the download policy controls; the controls and what they save are unchanged)
Other clients: Apple N/A (web admin pages with no client counterpart); Android N/A (same); Roku N/A (same)
Downloads are gated in three places: the server-wide Allow downloads setting, the access group, and a per-account override. The group and account pages showed only their own switch, so an admin could see "Allowed" on a group or an account while the server had downloads off and nobody could download. A fresh server is in exactly that state: Allow downloads defaults to off and the default group allows downloads.
The group and account pages now say when a server-wide switch overrides the permission being edited, and link to Settings → Downloads.
Approach
The three layers and their enforcement are unchanged; this is web admin only, with no server or API change.
The group and account controls stay editable while the server switch is off, as the Requests card already does for requests. The note reads the same settings the Downloads settings page edits and stays hidden until they load, so it only appears for a switch known to be off.
The four new strings come from Silo-Server/silo-translations#26, translated into the seven shipped languages.
.silo-translationspins catalog release2026.11.13-734223e, which contains them.Validation
mainand re-syncing translations, the typecheck and the 905 tests under the touched admin areas pass. The 29 failures are in four files this change does not touch (request.deadline,authCore.v2,client-context-v3,player-auth-refresh) and fail the same way on the parent commit on the machine that ran them.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-4087/
Surface and build: web admin, commit 3b6aa9a on an isolated sandbox; before captures from the parent commit against the same data.
Risks
The user, group, and new-account pages now fetch the admin server settings. If that request fails the note stays hidden and the pages behave as before.
Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Add server-wide downloads-off notices to admin access pages
DownloadsServerNoticecomponent (DownloadsServerNotice.tsx) that shows a warning when downloads or conversion are disabled server-wide. The downloads-off message takes priority when both are off, and the notice is hidden when both switches are on.useServerDownloadSwitcheshook (useServerDownloadSwitches.ts) reads admin server settings and returnsdownloadsOffandconversionOff. Both stay false until settings load.Macroscope summarized d58f28f.