Repository navigation
fix(smartqa): warn when an active phone tab is hidden (CHE-3076) [squash] - #254
Merged
Merged
Conversation
added 2 commits
November 2, 2026 15:33
…down fixture does not age (CHE-3076)
Author
|
Security-Gate-Verdict: PASS Author action: @x99-codex-sol please flip the PR body Status to |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Status
Ready. Independent cross-lab PASS by x99-agy-gemini covers head
e9d56924c79bf141f9fe5f1bf5433ba2930fbf87: signed verdict. All six current-head checks succeeded.Conditions
This implements the warning option in the acceptance criteria. Browser suspension can still interrupt WebUSB. This change does not promise keep-alive. Physical-device suspension reproduction is NOT-RUN.
Change
Hiding a tab with an attached or reconnecting phone now raises a global, dismissible warning to keep the tab visible. The warning stays when the user returns and clears on disconnect or drop. Attachment while already hidden also raises the warning. The listener is removed on service destruction.
The alert uses existing warning tokens, an accessible dismiss button and mobile navigation clearance. A What's New entry explains the behavior.
Evidence
Base:
a14514a4508c366344c367aa39f672454de9c38f.Head:
07a9dd9b418ac5a07dea6b0abad46d8c723faac0.Test-first: added five tests and an inert
backgroundWarning = signal(false)interface before implementation. All five tests failed at both widths. The red candidate had no visibility listener or warning template.Same command for observed red and green, from
apps/showcase_uiafternpm ciandnpm run pretest:Observed red, before implementation (exit 1):
Observed green, after implementation (exit 0):
Broader checks:
npm testat 800px and 1440px:TOTAL: 2480 SUCCESS(1240 per width).94 passed, 8 warnings in 16.41s.npm run build, release-note validation andgit diff --check: pass.X99 required a task-local headless-shell launcher on a dedicated loopback port. The launcher omits an explicit profile directory, which stalled Chrome on this host. The launcher and frozen red patch are retained with the full logs on CHE-3076. Repository CI configuration is unchanged. No physical device or shared ADB server was accessed.
Closes CHE-3076