Repository navigation
Conversation
Co-Authored-By: Claude Fable 5.1 <[email protected]>
fix(api): close v2 merge-prep gaps in demo gating, activity log, URL minting, ledger, and docs
refactor(apiv2): finish server migration cleanup
- Raise default hero brightness/saturation and reduce the detail scrim wash - Anchor the bottom fade to the copy block, drop stacked duplicate fades - Replace the left/bottom vignette with a soft radial edge darkening - Grow hero banner sizing for a taller cinematic frame
…edesign fix(web): lighten hero backdrop and simplify scrim layers
* feat(web): redesign the setup wizard The first-run wizard was nine generic cards in a fixed order with a dead profile step, a "Server & storage" page that mixed Redis, playback, the Jellyfin web installer, and two S3 buckets, no way to name the server or set its public URL, a bare hardware-acceleration dropdown, and a library form with twenty decisions. Progress lived only in browser storage and /setup stayed reachable forever. Rebuild it as eight steps on a labelled step rail: Account, Server, Playback, Storage, Libraries, Subtitles, Connect apps, Features, Done. Finished rungs record what was chosen and can be reopened. Steps use the admin settings row primitives so setup and administration read as one product. Server name, public URL, and trusted proxies get their own step; Playback shows the detected GPU and both HDR tone-mapping toggles; Storage reports Redis and S3 as status rows and detects an environment-managed Redis; Libraries only asks for name, type, and folders, with edit and delete; subtitle providers save in one Continue; the Jellyfin web installer and worker nodes leave the wizard. Account creation selects the default profile in the same render so the next step lands drawn rather than as a skeleton. A new setup.completed server setting is written from the final screen and reported on the public setup-status endpoint as an additive wizard_completed field; the web client redirects /setup to the admin area once it is true. A migration sets the marker for every install that already has an account. Every path that stores an account or notification address now shares one email rule (auth.ValidateEmail): a single bare mailbox with a dotted domain, so "admin@siloserver" is refused on setup, signup, admin account writes, invitations, and the profile notification address. The web forms apply the same check before sending. The wizard's storage step also gains the Cloudflare token fields the admin page already had (#325). Co-Authored-By: Claude Fable 5.1 <[email protected]> * fix(web): address setup wizard review findings Persist setup.completed before clearing local progress and navigating, so a failed write keeps the admin on the Done step with a retry instead of reopening an empty wizard. Read setup status and the provider list independently at boot so a failed provider fetch cannot blank the completed flag. Hold the account step until a profile is selected, retry the profile lookup from the wizard when the one made during account creation fails, and offer profile creation for an account that has none. Reload a subtitle provider's validator after every save attempt so a retry never sends a stale If-Match. Tie connection-check results to the values that were tested so editing a field clears a stale green result. Keep the stricter email rule on v2 transports only; the frozen v1 setup, signup, and admin account routes keep their previous acceptance. Match the client literal-domain check to what net/mail accepts. Fix the import grouping in the auth service and make the migration's down step a no-op, since a backfilled marker cannot be told apart from one the wizard wrote. Co-Authored-By: Claude Fable 5.1 <[email protected]> * fix(web): finish setup wizard review follow-ups Apply the strict email rule to v2 invitations in the transport, and restore the previous net/mail acceptance in the shared invitation service and the v1-only notification address, so no frozen v1 route changes behaviour. Gate the wizard's library read on a selected profile like its other acting-admin reads. Keep a subtitle provider's test result only while the draft still matches the credentials it tested. Co-Authored-By: Claude Fable 5.1 <[email protected]> * chore(web): format the generated settings bindings PR #1071 on apiv2 regenerated web/src/lib/settingsContract.ts without the prettier pass the settings-bindings target runs, so the Web format check failed for every branch rebased onto it. Regenerate through the target; the content is unchanged. Co-Authored-By: Claude Fable 5.1 <[email protected]> * fix(web): close remaining setup wizard review gaps Compare the whole connection-check request, dirty keys included, so a staged secret clear does not keep an older success. Drop a cancelled subtitle editor read from the loaded set so the next list refresh can issue it again. Ask before a rail click discards unsaved edits, since the setup route mounts no router guard. Disable Continue on the library step while an editor is open. Send an admin whose profiles are all PIN-locked to the profile picker with a redirect back to setup. Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
* feat(settings): expose common regional language tags * fix(scanner): preserve audio language subtags
* fix(playback): prefer exact language tags * fix(playback): honor exact series language tags * fix(playback): restore language signature matching * fix(playback): keep saved series index across regional tags Address review findings on #1074: - SelectAudioTrack step 2 required an exact tag match, so a preference saved as {index: 1, lang: "en"} against a track now tagged "en-US" fell through to the language search and could pick a different track. Any compatible language match now keeps the saved index. - Drop the redundant sameLanguage guard in findPreferredSubtitleIndexWithSignature; languageMatchRank already rejects mismatched languages. - Re-export canonicalLanguageTag from the player languageNames shim so subtitleSort.ts resolves its import (the subtitle test file was failing with "canonicalLanguageTag is not a function"). Co-Authored-By: Claude Fable 5.1 <[email protected]> * fix(playback): clarify language selection priority * fix(playback): rank signature matches by language tag findExactAudioTrack returned the first track whose signature matched, and signature matching accepts any compatible language variant. When two tracks differ only by regional tag, an earlier en-GB track won over the exact en-US track a saved signature named. Rank the matches by language tag instead: exact tag, then bare language, then another variant. A legacy bare-language signature still matches a regional track. Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
|
Too many files changed for review (3000 files, 100 file limit). |
|
Important Review skippedToo many files! This PR contains 2998 files, which is 2898 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. Usage-priced reviews support at most 300 files. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (2998)
You can disable this status message by setting the |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bdf41c0d12
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| session, err := h.playback.sessionMgr.GetSession(in.SessionID) | ||
| if err != nil { | ||
| if errors.Is(err, playback.ErrSessionNotFound) { | ||
| h.dropCommandLedger(in.SessionID) | ||
| } | ||
| return AdminPlaybackCommandView{}, err |
There was a problem hiding this comment.
Route admin commands to the session-owning replica
In a multi-API-replica deployment, the admin session list is read from the shared playback_sessions_sync table, but command execution resolves the target only through this process-local SessionManager. If the playback connection is on replica A and the admin command lands on replica B, GetSession returns ErrSessionNotFound even though the UI lists the session, so pause, resume, stop, and message commands fail nondeterministically behind a load balancer. Route commands to the owning replica or use a cluster-wide dispatcher.
AGENTS.md reference: AGENTS.md:L13-L18
Useful? React with 👍 / 👎.
| export function allocateAdminPlaybackCommand(sessionId: string): AdminPlaybackCommandIdentity { | ||
| const previous = lastSequenceBySession.get(sessionId) ?? 0; | ||
| const sequence = Math.max(previous + 1, Date.now()); | ||
| lastSequenceBySession.set(sessionId, sequence); | ||
| return { command_id: randomUUID(), sequence }; |
There was a problem hiding this comment.
Allocate command sequences from shared session state
The sequence allocator is browser-local and based on Date.now(), while the server rejects every new command whose sequence is not greater than the session's latest value. Two administrators issuing commands in the same millisecond can allocate the same sequence, and a client with a clock ahead of the others can prevent every other client from controlling that session until their clocks catch up. Allocate or obtain the next sequence from shared session authority instead of deriving it from each browser's wall clock.
Useful? React with 👍 / 👎.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Problem
Silo needs the native API v2 surface and its clients, contracts, fixtures, and supporting runtime paths aligned before the 1.0 API lock.
What changed
Related issue: #135
Validation
make embed-stubgo build ./...The complete validation gate was not run in this PR-creation pass. CI should provide the remaining Go, web, generated-artifact, and scenario checks.
AI disclosure