Repository navigation
fix: stop limited access status from shifting page layouts - #127704
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 21, 2026, 11:39 PM ET / August 22, 2026, 03:39 UTC. ClawSweeper reviewWhat this changesMoves Control UI limited-access status from routed page content into responsive shell controls with a desktop popover and mobile details sheet. Merge readinessKeep open. The shell-owned presentation fixes the layout boundary, but a dual lazy-module failure removes all limited-access status and recovery guidance; the protected maintainer label also needs a human UX decision. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (partial) — step 2 Assertions:
How this fits togetherThe Control UI shell receives Gateway authentication scopes and exposes access-upgrade actions across routes. This PR changes the presentation boundary while retaining the existing scope-upgrade request controller. flowchart LR
Gateway[Gateway scope snapshot] --> Shell[Control UI shell]
Shell --> Visibility[Limited-access decision]
Visibility --> Trigger[Shell status trigger]
Trigger --> Details[Popover or mobile sheet]
Details --> Upgrade[Scope-upgrade request]
Decision needed
Why: This PR intentionally removes an existing persisted presentation preference; the supplied discussion does not show an independent maintainer decision accepting that UX contract. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +142, Tests +28, Docs 0. Total +170 across 20 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the shell-owned responsive UI, but add a non-layout-shifting fallback or visible lazy-load recovery state and prove the dual-entry failure path. Do we have a high-confidence way to reproduce the issue? Yes, from source: make both lazy imports reject; the preload controller discards the error and the shell retains only an unupgraded empty custom element. Is this the best way to solve the issue? No: the shell is the right owner, but it must retain a visible recovery state rather than silently lose limited-access status after both imports fail. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 575146a0a914. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
59cd17f to
fc6b584
Compare
fc6b584 to
70ad8df
Compare
|
Addressed the remaining review and exact-head CI failures on
Fresh proof on the exact tree:
Production LOC: +541/-411 (net +130) | Tests: +234/-151 (net +83) | Docs: +1/-1 | Generated baseline: +0/-7. Maintainer decision / Rank-up move: accept the compact, always-reachable limited-access status as the intentional replacement for persisted banner dismissal. This keeps access state discoverable without restoring routed-content layout shifts. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
70ad8df to
d16c6e9
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
d16c6e9 to
8b97362
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
8b97362 to
35a0364
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
35a0364 to
30b6eb6
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
30b6eb6 to
b0caf39
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…127704) * fix(ui): move limited access status into shell chrome * fix(ui): cover tablet limited access layout --------- Co-authored-by: RoboClaw <[email protected]>
What Problem This Solves
Fixes an issue where users connected with limited device access would see the global access status consume a full row inside routed pages, making Automations and other narrow layouts look fragmented on mobile.
Why This Change Was Made
The application shell now owns the limited-access affordance: desktop and native-host layouts expose an anchored shell control, mobile layouts use the existing compact header/menu, and the shared details content opens in a desktop popover or mobile sheet. The existing scope-upgrade controller remains the sole owner of request, retry, reconnect, and manual-guidance state. The obsolete in-content chip and persisted dismissal path are removed.
The repair also covers Settings, onboarding, native-host chrome, and mobile chat so limited-access state stays reachable without changing routed-page geometry.
User Impact
Limited-access users can still inspect their granted scopes and request operator access, but the status no longer pushes page titles and controls onto separate rows. Desktop gets a compact anchored popover; mobile gets a full-width details sheet. Admin sessions continue to show no access affordance.
Evidence
Visual proof
Inspected screenshots attached to this PR show:
The corresponding mobile and desktop recordings were also inspected at late frames. The screenshots and videos were captured from the real Control UI DOM with deterministic mocked Gateway scope state.
Automated proof
device-scope-upgrade.e2e.test.ts: 13/13 passed, covering mobile and desktop Automations geometry, mobile chat, request/pending/reconnect, route/reload persistence, manual guidance, Settings/native surfaces, module-load failure, and admin absence.new-session-page.operator-scopes.e2e.test.ts: 11/11 passed.pnpm check:changed: passed in a clean AWS environment (run_daf39b381a8f, leasecbx_5ccd1690a6d0).run_e83a5ccafcce, leasecbx_4c0a24fc37bb).git diff --checkpassed.Repair scope
.content, so global connection state participated in every routed page's layout.+416/-234(net+182); test LOC:+96/-145; generated baseline:+7/-7; docs:+1/-1. Production growth establishes the reusable shell owner boundary plus responsive/accessibility behavior; the old page-flow presentation is deleted.