Repository navigation
improve(ui): collapse limited access notice - #123735
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 1:15 PM ET / 17:15 UTC. ClawSweeper reviewWhat this changesThis PR lets a limited Control UI browser collapse its access banner into a persistent local status chip that restores the explanation and administrator-request action when selected. Merge readinessKeep open. Current main still renders the limited-access guidance without a collapse control; this maintainer-authored PR supplies the requested browser-local chip while retaining the fallback and active upgrade states. No blocking code defect was found, but product direction, visual confirmation, and exact-head CI remain for maintainers. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI reads a browser’s scope-upgrade capability from the Gateway snapshot and displays guidance before page content. This change alters that presentation while leaving Gateway authorization, device pairing, and upgrade requests unchanged. flowchart LR
A[Gateway scope snapshot] --> B[Control UI availability state]
B --> C{Limited browser state}
C --> D[Full access notice]
D --> E[Browser-local collapse preference]
E --> F[Limited access chip]
F --> G[Restore guidance and request action]
D --> H[Pending or error upgrade state]
Decision needed
Why: The implementation is coherent, but the discoverability-versus-workspace tradeoff is a product UX choice already marked for maintainer direction on the linked issue. Before merge
Agent review detailsSecurityNone. PR surfaceSource +93, Tests +113, Docs +1. Total +207 across 11 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt the hybrid notice only if maintainers want browser-local workspace recovery, keeping all scope-upgrade lifecycle states and the lazy-module fallback under the existing scope-upgrade owner. Do we have a high-confidence way to reproduce the issue? Not applicable as a feature request; the branch contains a deterministic mocked-Control-UI E2E path for collapse, reload persistence, and restoration, but it was not executed in this read-only review. Is this the best way to solve the issue? Yes. The presentation state stays with the existing scope-upgrade owner, preserves the generic lazy-load fallback, and does not duplicate Gateway authorization or pairing policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e44dde218f16. LabelsLabel 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 (2 earlier review cycles)
|
561f4f3 to
a3ddd30
Compare
Land-ready verificationExact head: The requested hybrid UX is implemented: the full limited-access notice appears initially, dismisses into a browser-local persistent chip, and expands back to the explanation and Request admin action. Active request/error states remain full-size and blocked actions retain contextual guidance. Review work completed:
Local proof:
Hosted proof:
Known proof gap: no sanitized after screenshot was produced because neither configured remote visual backend was available from the source host. The browser behavior is covered by deterministic E2E and green hosted shards; no visual-proof claim is made. |
|
Merged via squash.
|
* improve(ui): collapse limited access notice * test(ui): follow limited access banner host * test(ui): await limited access guidance host * test(compaction): split context budget coverage --------- Co-authored-by: RoboClaw <[email protected]>
Closes #123734
What Problem This Solves
Fixes an issue where users with a limited Control UI browser profile would see a full-width access banner on every route with no way to reclaim the occupied workspace after understanding the restriction.
Why This Change Was Made
The access notice now uses a hybrid presentation: it appears as the existing full banner on first encounter, can be collapsed into a compact Limited access chip, and restores the explanation and Request admin action when the chip is clicked. The collapsed preference is browser-local, while active request, pending, rejection, and error states remain fully visible. Existing contextual guidance on blocked actions is unchanged.
The same interaction also applies when the Gateway only supports manual upgrade guidance. The startup fallback remains available if the lazy banner module cannot load. This is an AI-assisted change that was manually inspected and autoreviewed.
Maintainer direction: the requesting maintainer reviewed four UX alternatives and explicitly selected the hybrid banner-to-chip design implemented here.
User Impact
Limited browser profiles can dismiss the persistent full-width notice without losing access-state visibility or the administrator-upgrade path. The compact chip survives reloads in that browser profile and expands on demand.
No Gateway methods, scope enforcement, pairing approval, token rotation, or protocol behavior change.
Evidence
Local deterministic checks:
pnpm ui:i18n:baseline— PASS (baseline entries=94,source keys=5023); no baseline drift.pnpm ui:i18n:verify— PASS.pnpm docs:check-mdx— PASS (773 files).oxlinton the changed TypeScript files — PASS.stylelintonui/src/styles/components.cssandui/src/styles/layout.css— PASS.git diff --check— PASS..agents/skills/autoreview/scripts/autoreview --mode uncommitted— clean, no accepted/actionable findings.Browser regression added in
ui/src/e2e/device-scope-upgrade.e2e.test.ts:Exact-head browser E2E and broader UI gates are pending GitHub CI. Hosted Testbox was unavailable on the source host because its CLI was absent, and the documented AWS Crabbox fallback was unavailable because no broker login was configured; no remote-proof claim is made.
Review remediation on head
a3ddd30f20da3b2cb8383458692f922fb4c9f273:openclaw-device-scope-upgrade-banner .callout.Red-main repair:
src/auto-reply/reply/commands-compact.test.tspast the repository max-lines guard, causing the exact-head core-lint shard to fail independently of this UI change.commands-compact-context-budget.test.tswithout changing production code or assertions.Final exact-head proof:
31822635920— PASS ona3ddd30f20da3b2cb8383458692f922fb4c9f273, including UI, all eight browser E2E shards, real-Gateway E2E, docs, i18n, prod/test types, all core-lint stripes, the max-lines ratchet, QA profiles, andopenclaw/ci-gate.