GeezerVison is showing github.com — fix(web): show platform diagnostics on the first device setup step when nothing is available by biggdawg320 · Pull Request #14606 · pingdotgg/t3code
Conversation
On a local host with no available platform (e.g. Linux without a complete Android SDK), the device hub never starts, so hostStatus stays "idle" and the first wizard step showed no explanation — the diagnostic reasons only rendered on the Simulators step, which Continue could never reach while disabled. This change reuses the existing platformSetupStatus/PlatformStatus helpers to surface those same per-platform reasons directly on the first step whenever a local host has no available platform, so users can see what's missing and how to fix it without needing a ready device hub. Continue stays disabled as before; no backend changes were needed since the diagnostic data was already present on state.hosts. Added DeviceSetup.test.tsx covering this scenario.
Fixes #14578
Testing
- Added a test (
apps/web/src/components/device/DeviceSetup.test.tsx) that fails on the current code and passes with this change.
- The surrounding tests pass:
cd /work/apps/server && vp test run src/device && cd /work/apps/web && vp test run --passWithNoTests --project unit src/components/device
This change was drafted with AI assistance (Claude) and verified against the project's own test suite before submission.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…up step
The "Set up devices" wizard's first step enabled the device hub but gave
no explanation when a local host has no available platform (e.g. no
Android SDK on Linux, no Xcode on non-macOS): hostStatus stays "idle"
forever since readinessIfSupported never starts the hub, and the step
only showed hostStatusDetail when hostStatus was "failed". The
per-platform reasons were already available on state.hosts but only
rendered on the Simulators step, which Continue could never reach.
Show the existing per-platform diagnostics (platformSetupStatus /
PlatformStatus) directly on the first step when no local platform is
available, so users see what to install while Continue stays disabled.
Co-Authored-By: Claude <[email protected]>
Approvability
Verdict: Approved at 8b8379d
Macroscope's review found this PR approvable — This is a small, self-contained UI bug fix that reuses existing platform-status data to explain why setup cannot proceed on unsupported local hosts. It leaves setup gating and backend behavior unchanged and adds focused test coverage.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID: 582e8cf5-b16d-4d56-990a-87ddfdbc3370
📥 Commits
Reviewing files that changed from the base of the PR and between 5cc99e1 and 8b8379d.
📒 Files selected for processing (2)
apps/web/src/components/device/DeviceSetup.test.tsx
apps/web/src/components/device/DeviceSetup.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
Walkthrough
When the device hub is enabled and a local host has no available platform, DeviceSetup now displays platform setup statuses on the first step. A test checks that the Android SDK installation guidance appears for a host with unavailable iOS and Android platforms.
Changes
Local platform setup diagnostics
| Layer / File(s) |
Summary |
First-step platform guidance apps/web/src/components/device/DeviceSetup.tsx, apps/web/src/components/device/DeviceSetup.test.tsx |
DeviceSetup detects a local host with no available platform and displays iOS and Android setup statuses on step 0 when the device hub is enabled. The test checks for Android SDK installation guidance in this state. |
Priority: ➖ Normal
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Medium
Suggested reviewers: juliusmarminge
Merge Risk: ⚪ Minimal · up to 8b837
The suspected remote-host mismatch cannot occur in service-produced state. The added first-step diagnostics have no other concrete issue in the supplied evidence and are suitable to merge subject to normal checks.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
| Check name |
Status |
Explanation |
Resolution |
| Docstring Coverage |
⚠️ Warning |
Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. |
Write docstrings for the functions missing them to satisfy the coverage threshold. |
✅ Passed checks (4 passed)
| Check name |
Status |
Explanation |
| Title check |
✅ Passed |
The title is concise, specific, and accurately describes the primary web change: showing platform diagnostics on the first device setup step when no platform is available. |
| Description check |
✅ Passed |
The description clearly explains the problem, implementation, issue reference, affected behavior, and focused test coverage. It is mostly complete, although it does not use all template headings and d… |
| Linked Issues check |
✅ Passed |
Issue #14578 requires an explanation and actionable platform diagnostics on the first setup step when a local host has no available platform. DeviceSetup detects that state, displays both `platformS… |
| Out of Scope Changes check |
✅ Passed |
The pull request changes only DeviceSetup.tsx and its new test. The UI change and test directly support issue #14578. No unrelated product behavior or backend changes are present in the reviewed dif… |
- Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Autopilot is currently an internal CodeRabbit preview.
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Note This comment is posted by Julius' dot
#14578 establishes the missing setup diagnostics, and this diff adds visible platform reasons to the first wizard step. The submitted evidence is a rendered-text test and test-suite results; there are no before/after screenshots of that new UI. Closing under the verification rule. Add current before/after images of the enabled local host with no available platform, showing the diagnostics and disabled Continue control, and request reconsideration.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:S
10-29 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
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.
|