Repository navigation
fix(web): drop the sign-in question from an expired /activate code and name Roku - #3291
Conversation
…d name Roku An expired code kept the "Sign in <TV>?" heading above the expired message, and told people to scan a code they may have typed. The page now drops the heading for an expired request and says to use the new code on the TV. Roku requests read "Roku" instead of the raw "roku" platform value. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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:
|
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. |
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Expired request presentation and code entry web/src/pages/ActivateDevice.tsx |
The device label displays “Roku.” For expired requests, the message directs users to the new code shown on the TV, the approval question is hidden, and manual code entry is available for token-based requests. |
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix · Severity of issue fixed: Low
Possibly related PRs
- Silo-Server/silo-server#1868: Adds remote-playback result messages in the same activation page, including expired-state messages retained by this change.
- Silo-Server/silo-server#2938: Changes denial handling that the activation page retains alongside these presentation changes.
Suggested labels: javascript, impact: usability, size/M
Suggested reviewers: tobechukwu-njoku
Merge Risk: 
Minimal · up to c5046
-
Users with an expired activation link can enter the new TV code. No merge-blocking issue remains from this review.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed-
Full details: Title check
-
Explanation
The title names the main change: expired /activate codes drop the sign-in question, and Roku is labeled correctly. It matches the raw summary, the PR objectives, and the linked issue scope. The title is 80 characters, which is long but still a single readable sentence.
Full details: Description check
-
Explanation
The description states the problem, the approach, validation steps, and a checklist. It explains the expired-state heading, the new wording, and the Roku label, which match the changes in ActivateDevice.tsx. The description is related to the changeset and does not need more detail to pass.
Full details: Linked Issues check
-
Explanation
Issue [
#3290] requires expired/activaterequests to remove or replace the sign-in heading, avoid scan-specific wording, and display Roku asRoku.web/src/pages/ActivateDevice.tsxhides the heading for expired requests, instructs users to use the new TV code, and mapsrokutoRoku. It also restores manual code entry for expired token requests, which supports the expired-code flow. The reported lint, formatting, type-check, and Vitest validation passed.
Full details: Out of Scope Changes check
-
Explanation
The reported changes are limited to the
/activateexpired-request presentation and the Roku platform label. The manual code-entry change supports the expired token flow. The Quick Connect and remote-playback messages and approval behavior remain unchanged. No unrelated change is shown.
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 2 functions across 1 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
There was a problem hiding this comment.
Actionable comments posted: 1

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:
dd4fe30f-e858-41ab-a622-c5b2712f7a2d
Files selected for processing: 1-
web/src/pages/ActivateDevice.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
-
|
Minor validation impact: The current
Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
An expired request opened from a token link told people to use the TV's new code but hid Enter another code, so the page had no way to type it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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:
|
|
The follow-up commit adds Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
Problem
Closes #3290
Related issue: #1192
Validation tasks: changes #1194 C1, Silo-Server/silo-apple#327 C1, Silo-Server/silo-android#337 C1 (expired browser presentation, AC4). Approval and retry behavior are unchanged.
When a TV sign-in code expires, the approval page at
/activatestill asks "Sign in ?" above a message saying the code expired, and tells the person to "scan it again" even if they typed the code. A Roku request shows its platform as "roku" in lowercase, while Apple TV and Android TV requests read "Apple TV" and "Android TV". This change drops the heading when a request has expired, tells the person to use the new code on the TV, and labels Roku as "Roku".Approach
The expired state now renders without the heading, and the expired TV message reads "This code expired. Your TV is showing a new one. Use that code instead." The platform label map in
ActivateDevice.tsxgainsroku. The Quick Connect and remote-playback expired messages are unchanged.docs/architecture/device-login.mddoes not quote the page text, so it needs no edit. The Android phone app still says "scan it again" in its own expired-code message; that wording is separate from this page.Validation
eslint,prettier --check,tsc --noEmit, and theActivateDeviceVitest file pass. No test added: this is copy and a label, which CONTRIBUTING says not to test.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/issue-3290/
Risks
None identified.
Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Drop sign-in question and update instructions for expired device activation codes
In ActivateDevice.tsx,
ActivateDeviceRequestno longer shows the sign-in or playback question heading when the request status is expired. Expired non-remote, non-Quick Connect requests now tell the user to enter the new code shown on the TV, and the manual code-entry button appears for expired requests even when a token exists. Also adds a case-insensitive "roku" mapping inplatformLabelso the platform displays as "Roku".Macroscope summarized c504631.