Skip to content

fix(web): drop the sign-in question from an expired /activate code and name Roku - #3291

Merged
Quick104 merged 2 commits into
mainfrom
fix/issue-3290-activate-expired-copy
Oct 31, 2026
Merged

Quick104 merged 2 commits into
mainfrom
fix/issue-3290-activate-expired-copy

Conversation

@Quick104

@Quick104 Quick104 commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

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 /activate still 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.tsx gains roku. The Quick Connect and remote-playback expired messages are unchanged. docs/architecture/device-login.md does 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

  • Reproduced both symptoms on a sandbox at desktop and phone width, then confirmed them fixed after rebuilding, with a typed code for an expired Apple TV request and an expired Roku request.
  • eslint, prettier --check, tsc --noEmit, and the ActivateDevice Vitest 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

  • 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. (None added.)
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code; OpenAI Codex for the background review
  • Model(s): claude-sonnet-5-5; gpt-6.1-sol
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: background review by gpt-6.1-sol on head ea4fa3d (first attempt failed with model_not_found, retry completed): no findings, nothing posted.

🤖 Generated with Claude Code

Note

Drop sign-in question and update instructions for expired device activation codes

In ActivateDevice.tsx, ActivateDeviceRequest no 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 in platformLabel so the platform displays as "Roku".

Macroscope summarized c504631.

…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-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Oct 30, 2026
@silo-kody

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T22:21:45.694494Z ea4fa3d PR opened
🔒 Security Review ✅ Completed 2026-10-30T22:22:16.722239Z ea4fa3d PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

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: a66a791c-ed05-4039-acfc-eb94f803f5c6
Commits

Reviewing files that changed from the base of the PR and between ea4fa3d and c504631.

Files selected for processing: 1
  • web/src/pages/ActivateDevice.tsx
Files skipped from review as they are similar to previous changes: 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; 2 remain after this review.

Walkthrough

The activation page now displays Roku with a capitalized label. For expired requests, it directs users to the new TV code, hides the approval question, and offers manual code entry for token-based requests.

Changes: Activation page presentation

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: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning 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. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed 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 …
Description check Passed 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 ActivateDevi…
Linked Issues check Passed Issue [#3290] requires expired /activate requests to remove or replace the sign-in heading, avoid scan-specific wording, and display Roku as Roku. web/src/pages/ActivateDevice.tsx hides the head…
Out of Scope Changes check Passed The reported changes are limited to the /activate expired-request presentation and the Roku platform label. The manual code-entry change supports the expired token flow. The Quick Connect and remote…
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 /activate requests to remove or replace the sign-in heading, avoid scan-specific wording, and display Roku as Roku. web/src/pages/ActivateDevice.tsx hides the heading for expired requests, instructs users to use the new TV code, and maps roku to Roku. 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 /activate expired-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.

@silo-triage silo-triage Bot added bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish labels Oct 30, 2026
@coderabbitai coderabbitai Bot added impact: usability Core flow broken or severely blocked javascript Pull requests that update javascript code size/M 50–199 added + deleted lines (all files); change volume, not priority. labels Oct 30, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Commits

Reviewing files that changed from the base of the PR and between 9d3f24c and ea4fa3d.

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.

Comment thread web/src/pages/ActivateDevice.tsx Resolved
@macroscopeapp

macroscopeapp Bot commented Oct 30, 2026

Copy link
Copy Markdown

Minor validation impact: #1194 C1 and the browser-approval steps in Silo-Server/silo-apple#327 C1 and Silo-Server/silo-android#337 C1 exercise the expired /activate state. All three results are currently Not run, so there is no recorded result to invalidate or unblock. This change alters only the expired-state presentation; approval and retry behavior are unchanged. Include the revised heading/message when those expiry cases are first run.

The current Validation tasks: line omits the two TV C1 cases. Please use:

Validation tasks: changes #1194 C1, Silo-Server/silo-apple#327 C1, Silo-Server/silo-android#337 C1 (expired browser presentation, AC4).

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-triage silo-triage Bot removed the size/M 50–199 added + deleted lines (all files); change volume, not priority. label Oct 30, 2026
@silo-kody

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

@macroscopeapp

macroscopeapp Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

The follow-up commit adds Enter another code only for expired /activate URLs that carry a token query parameter; expired code URLs already had this button. If #1194 C1 or the browser-approval steps in Silo-Server/silo-apple#327 C1 and Silo-Server/silo-android#337 C1 exercise a token link, include this recovery control in the first run. All three task Results cells remain Not run, so no recorded result is invalidated or unblocked; the server approval behavior is unchanged.

Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed.

Posted via Macroscope — v1 validation impact

@Quick104
Quick104 merged commit 32a2f63 into main Oct 31, 2026
30 checks passed
@Quick104
Quick104 deleted the fix/issue-3290-activate-expired-copy branch October 31, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have impact: usability Core flow broken or severely blocked javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish size/S 0–49 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] /activate keeps "Sign in <TV>?" above an expired code and names Roku "roku"

1 participant