Skip to content

fix(ui): phone account menu truncates Help, blanks the avatar and scrolls - #189747

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/mobile-identity-menu
Oct 31, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/mobile-identity-menu

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes: on a phone, the account menu opened from the rail avatar shows "Help" as "H…" in Safari, shows an empty circle instead of the profile photo, starts labels on three different x positions, and scrolls by a few pixels.

User Impact

User impact: the phone account menu shows its full labels on one axis without scrolling at normal phone heights. While the photo loads, the header shows the same initials as the rail. The header avatar is no longer replaced when Gateway updates reach an open menu.

Why This Change Was Made

The empty circle and the avatar replacement both predate #188283 and #189428.

Evidence

Everything below is emulated, at 390 px with iPhone 13 emulation in Playwright WebKit, using tap input and a synthetic photo served at the mock layer. It has not been run on a real iPhone.

Blink

Check Result
Empty circle Reproduced on main by holding the photo request: menu data-avatar-state="pending", contents hidden, rail shows initials. Fixed here, see the images below.
Avatar replaced by live events Reproduced, see the table below. No extra photo request; each new <img> reuses the cached image.
avatarUser / profileViewer new objects Instrumented rebuilds show a new profileViewer object on every rebuild. With one avatar node, the new objects update its props and the image stays.
data-avatar-state flips and opacity None on a loaded avatar in the logged samples, on any commit tested.
Visible flash from replacing the avatar Not reproduced. At 25 fps the avatar pixels stay constant through the events on main, including with a 4000 × 4000 photo. A blank shorter than 40 ms would not show, and iOS Safari may decode more slowly.
backdrop-filter repainting over a scroller Not excluded for iOS. Headless WebKit does not paint the blur at all (the page shows through the menu in the images), so this run says nothing about it.

The empty circle matches the reported screenshot. Whether repeated replacement is the "blinking" seen on the device still needs a check on an iPhone.

Avatars mounted per event in an open menu, WebKit (the first mount on open is not counted):

Event parent of #188283 c8516df main this PR
tick, health, heartbeat, presence (another user), sessions.changed 0 0 0 0
update.available (set, then cleared) 1, 1 1, 1 1, 1 0, 0
users.prefs.changed 1 1 1 0
Socket close and reconnect 6 6 6 0

The sampler reads once per frame, so the reconnect row is a lower bound: the instrumented run logged 27 rebuilds across that reconnect.

Layout

parent of #188283 main WebKit this PR, WebKit and Chromium
Help label full, 28 px clipped, 24 px of 28 full
Label x: header / rows / Help 56.75 / 56.75 / 47 46 / 42 / 48 52 / 52 / 52
Scroll height against visible height no overflow 427 / 420 427 / 427

Absolutely, WebKit

Dark Light
Before
After

Photo still loading, WebKit

Dark Light
Before
After

CRT and Beacon, WebKit, after

Dark Light
CRT
Beacon

Chromium, after

Checks

  • Passed: stylelint, oxfmt, oxlint, tsgo:ui, ui:check-performance:base (total CSS gzip -18 B, raw +7 B).
  • Unit, 89 passed: app-sidebar.people, app-sidebar-embedder-gateways, control-theme.browser, theme-mode-toggle.browser.
  • E2E, 16 passed: sidebar-account-footer, native-desktop-gateways, sidebar-shortcut-badges, sidebar-name-marquee.
  • The two new tests fail without the fix: one checks the avatar image survives a rebuild, the other checks the phone layout and pending initials.

Known gaps

  • No real iOS Safari run, as above.
  • A Playwright tap on Help does not open its submenu in emulated WebKit, on both main and this branch, so the submenu was not captured on a phone.

…olls

Give the account menu one 26 px leading column, let its height follow the
40 px phone rows, show initials while the photo loads, and keep one avatar
node when menu entries rebuild on Gateway updates.
@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

The PR aligns account-menu labels, removes unnecessary scrolling, shows pending-photo initials, and preserves the avatar across menu updates.

Example: Open the account menu at a 390 px phone viewport.

  • Before: Help appears as “H…”, labels start at different positions, and 427 px of content scrolls inside a 420 px menu.
  • After: Help is fully visible, labels align, and the menu accommodates the content when the viewport permits.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct repair with inspected visual evidence and distinct regression coverage; device-specific flashing remains outside the demonstrated claim.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected dark/light screenshots exercise the actual account-menu UI at 390 px in emulated WebKit and visibly demonstrate repaired Help text and alignment; the body records overflow measurements and event-driven avatar preservation, with physical-device limitations stated explicitly.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Phone users see a clipped Help label, inconsistent alignment, unnecessary menu scrolling, and an empty header avatar while their photo loads.
Reason: The maintainer-authored change restores readable account-menu presentation and existing identity continuity without adding a setting or changing available actions.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR provides a focused repair for the phone account menu, and no introduced defect was found.

Priority: P2
Reviewed head: 266b017ec4284699e3934cab9aed177f00a028be

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Physical iPhone Safari, backdrop repainting, and phone Help-submenu interaction remain explicitly unverified; the supplied evidence supports the narrower emulated layout repair.
Agent review details

How this fits together

The Control UI sidebar projects account and Gateway state into the shared Solid Menu and avatar components, producing account actions, identity presentation, and Help links.

flowchart LR
  A[Gateway account state] --> B[Sidebar projections]
  B --> C[Identity menu]
  C --> D[Shared Menu]
  C --> E[Shared avatar renderer]
  D --> F[Account actions and Help links]
Loading

Technical review

Best possible solution:

Keep the existing menu and avatar owners while giving account rows consistent geometry, viewport-bounded height, recognizable pending identity, and stable avatar lifetime.

Do we have a high-confidence way to reproduce the issue?

Source inspection and supplied before screenshots establish the layout failure; the PR also reports red-on-base regressions for pending initials and avatar replacement, without claiming a reproduced physical-device flash.

Is this the best way to solve the issue?

The patch is the smallest complete repair using existing owners: remove the Help wrapper, unify the leading column, relax the inherited height cap, extend the account placeholder exception, and construct the avatar once.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against e67e538d68ac.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 07fae10 adds ui/src/styles/sidebar-menus.css:1149 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 07fae10c385a; files: ui/src/styles/sidebar-menus.css)
  • Peter Steinberger: Raw commit 5962ce7 adds ui/src/components/app-sidebar-identity-menu.tsx:187 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5962ce779a8a; files: ui/src/components/app-sidebar-identity-menu.tsx)

PR surface

Source -3, Tests +82. Total +79 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 20 23 -3
Tests 2 82 0 +82
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 102 23 +79

Review metrics

Metric Value Why it matters
Production versus regression coverage Production +20/−23; tests/support +82/−0 Production shrinks slightly; the two added cases protect distinct failures: phone layout/pending initials and avatar preservation across entry rebuilds.

Labels

Label changes:

  • add P2: Account-menu clipping, unnecessary scrolling, and blank pending identity are bounded user-facing UI defects.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Account-menu clipping, unnecessary scrolling, and blank pending identity are bounded user-facing UI defects.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 31, 2026, 4:48 PM ET / 20:48 UTC.

@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) October 31, 2026 21:14
@vyctorbrzezowski
vyctorbrzezowski merged commit e40ffa3 into main Oct 31, 2026
84 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/mobile-identity-menu branch October 31, 2026 21:21
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
…olls (openclaw#189747)

* fix(ui): phone account menu truncates Help, blanks the avatar and scrolls

Give the account menu one 26 px leading column, let its height follow the
40 px phone rows, show initials while the photo loads, and keep one avatar
node when menu entries rebuild on Gateway updates.

* test(ui): exercise account menu with ordinary touch input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant