Skip to content

fix(web): fix rooms nav, mobile drawer, keyboard scoping, and chat UX - #754

Open
oldwinter53 wants to merge 1 commit into
mainfrom
fix/ux-rooms-nav-mobile-keyboard
Open

oldwinter53 wants to merge 1 commit into
mainfrom
fix/ux-rooms-nav-mobile-keyboard

Conversation

@oldwinter53

Copy link
Copy Markdown

Summary

Fixes P0/P1 interaction-determinism, keyboard-scoping, mobile layout, and chat polish defects across Linger's core Rooms & Chat surface.

P0 Fixes

  • Sidebar hover click interception & hidden failure badge (CORE-02, LIVE-19):
    • Added pointer-events: none to hidden .row-reveal-action elements in globals.css and restored pointer-events: auto on hover, focus-within, focus-visible, and open-menu states so invisible Pin/More buttons no longer intercept clicks on the right edge of room/agent rows.
    • Added @media (hover: none) flex layout rules for .row-reveal-action rows so touch devices get non-overlapping, visible row actions without invisible click traps.
    • Moved the "Last run failed" AlertCircleIcon into a persistent avatar corner badge (RowFailureBadge) outside .row-reveal-hide so hovering to read the failure tooltip never hides the icon.
    • Hid the proxy <input type="file"> in MessageComposer from the accessibility tree and Tab order (aria-hidden="true", tabIndex={-1}, className="hidden").
  • TaskSidebar global Escape trap & Cmd/Ctrl+Shift+T hijack (CORE-03):
    • Scoped Escape handling in usePanelKeyboardShortcuts to ignore editable targets and focus outside the sidebar, and collapse the sidebar (onCollapse) instead of permanently closing the active tab.
    • Removed the global hijack of browser Cmd/Ctrl+Shift+T ("Reopen Closed Tab"); closed-tab recovery is now available via an explicit "Reopen closed tab" item in PanelTabStrip and a sidebar-scoped Cmd/Ctrl+Alt+Shift+T chord.
  • Room creation & member dialog flow (CORE-05, LIVE-13):
    • Removed the confirmSkip toggle deadlock in RoomAddMembersDialog; the default footer now offers a direct "Skip for now" button whenever nothing is queued, and Escape / Close dismiss immediately.
    • Added a standard "Cancel" button next to "Create Room" in RoomCreateDialog.
    • Hid empty "Human" / "Agent" group headings in RoomCreateMembers when a section has zero selectable members.
    • Auto-selected the sole online computer in QuickCreateLocalAgentDialog when selectableComputers.length === 1.
  • Mobile (375x812) navigation drawer clipping (LIVE-03):
    • Re-aligned the mobile navigation drawer header so Search and Close share Row 1 without clipping and Pocket Notes / Meetings sit in a balanced 2-column Row 2, while preserving the desktop single-row layout via md:contents.
    • Set symmetric padding and width (60px rail, 8px horizontal padding) on the mobile icon rail so the active circular highlight is never clipped.

P1 / P2 Chat Polish

  • Pocket Notes local date & popover width (LIVE-08):
    • Formatted the Today header using the user's local calendar date (resolvePocketNoteTodayDisplayDate) while keeping the server date key for record matching/deletion.
    • Sized the Pocket Notes popover to cover the full sidebar width (Math.max(panelWidth, sidebar.width), clamped to the viewport) so no background card slivers bleed along the right edge.
  • Mention ordering & duplicate subtitle (LIVE-14):
    • Prioritized non-self Agents, then other Humans, then self (currentActorId) in useRoomMentionOptions.
    • Omitted the duplicated "Agent" subtitle in MentionOption when the "Agent" role badge is shown.
  • Composer model pill readability & read-only badge (LIVE-06):
    • Cleaned default/proxy prefixes and humanized raw hyphenated model slugs (formatModelPillLabel, e.g., Claude Opus 5.5 · Medium) while keeping full raw model ID, runtime, computer, and effort details in title.
    • Rendered a read-only model badge (data-testid="agent-model-readonly-badge") for non-creator collaborators instead of hiding the model completely.
  • RoomHeader sidebar toggle (CORE-16):
    • Clicking the RoomHeader name chip now switches to agentInfo / roomSettings when another right-sidebar tab is active, and only collapses the sidebar when that chip's own tab is already active.
  • Bottom floating controls stacking (CORE-23):
    • Coordinated vertical offsets across AgentStreamingStatusDock, BackgroundTasksPill, and JumpToLatestButton (default / raised / stacked) so concurrent pills never overlap above the composer.

Verification

  • make check-web:
    • pnpm --filter @linger/web typecheck — passed
    • pnpm --filter @linger/web lint (eslint --max-warnings=0) — passed
    • pnpm --filter @linger/web test — 423 test files / 3,887 tests passed
    • pnpm react:doctor (--blocking error --scope changed) — passed
  • pnpm --filter @linger/web run build:assets — passed (initial JS budget verified)
  • pnpm prettier --check on all 34 changed/added files — passed
  • Visual before/after browser verification across desktop (1440x900, scrollWidth === 1440) and mobile (375x812, scrollWidth === 375) with zero console/page errors: verified unhovered .row-reveal-action pointer-events: none, failed badge opacity: 1 on hover, Pocket Notes local date + full sidebar width alignment, non-overlapping floating stack (jump.bottom 715.1 < bg.top 760), mention ordering (Claude Assistant before Owner), readable model pill (Claude Opus 5.5 · Medium), direct "Skip for now" footer, and unclipped mobile drawer header & icon rail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants