Skip to content

Rework the compact mobile home and recents - #2758

Merged
brsbl merged 9 commits into
mainfrom
bb/mobile-pwa-compact-home-thr_wftu7bh9ez
Sep 1, 2026
Merged

brsbl merged 9 commits into
mainfrom
bb/mobile-pwa-compact-home-thr_wftu7bh9ez

Conversation

@brsbl

@brsbl brsbl commented Aug 31, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The compact New Thread page placed a capped three-row Recent list below the composer in one page scroller. The composer moved away from the thumb, the list looked complete even when more work existed, and rows omitted provider, hierarchy, workspace, branch, and activity context.

What changed

  • Anchor the production composer at the bottom while realistic recents scroll behind it.
  • Leave the recents viewport on native overflow behavior; the imperceptible product-managed scrollbar timer and state were removed.
  • Keep the Recent label sticky and leave a partial row visible to signal more content.
  • Render every active thread with production provider marks, hierarchy, status, workspace, branch, and attention-time metadata.
  • Vertically center each provider tile against its thread title and metadata block.
  • Preserve highlighted descendants by expanding collapsed ancestors.
  • Render the real production compact-home, recents, prompt box, and overflow-fade components in Ladle with populated fixtures.

No compact drawer, panel, route-feedback, or server-cache behavior changes in this layer.

How you verified

  • Original geometry and alignment evidence used Chrome for Testing 151.0.7922.71 at 393×852 CSS px, DPR 2, against exact base f4bbc2fe81a9b7639ff9a7396e172bddd89109e4 and feature head df613809d7080cbc145913355958478de5733245. The current exact head is 0eb3bef25c3589f2b3f40cdcb80b20cff131512a.
  • Measured the production compact-home subtree itself: 393×852; production composer subtree: y=672, h=180; scroll viewport: y=318, h=534; 23 production recent rows rendered.
  • Measured provider-tile center alignment on representative parent, child, and ordinary rows: the prior head placed every tile 12px above its title/metadata center; the final head measures 0px center delta before and after client navigation.
  • Hard reload and thread navigation back to the compact home preserved the alignment; no console errors.
  • Scrolled that viewport to 360px and measured the Recent heading at y=318, exactly pinned to the viewport's top edge.
  • On the exact current head, the viewport has no product scroll listener, idle timeout, data-scrollbar-scrolling state, or transient-scrollbar class; the browser owns scrollbar presentation.
  • Verified collapsed parents whose only activity came from a child: the glyph and accessible label report the same aggregated state. Child-only pending, plan, runtime, and unsubmitted-draft states have regression coverage.
  • On the exact current head, a realistic hidden child draft produced Thread has unsubmitted draft on both the parent link and production status glyph; the child stayed collapsed and the recents subtree contained zero nested interactive pairs.
  • The hierarchy toggle is now a sibling of the thread link; the production recents subtree contained zero nested a button or button a pairs.
  • Compact-home geometry now uses useLayoutEffect, not useEffect. Across 143 requestAnimationFrame samples from first real content, the scroll viewport stayed at y=310 with no post-paint geometry jump.
  • Remote CI passed all required tests, checks, package smokes, and version gates on the exact final head. No local CI-equivalent command was run.
Before — main After — compact production home
Before: main compact home Exact final head: compact production home after removing imperceptible scrollbar bookkeeping
After — sticky header while scrolled
After: Recent header remains sticky after scrolling

Child-only draft aggregation

Feature head 62c4c6d40 — collapsed parent reflects its hidden child draft
Feature head: production compact recents show a draft glyph on a collapsed parent whose hidden child owns the draft

BB-Thread-ID: thr_wftu7bh9ez

AGENT GENERATED

@brsbl
brsbl force-pushed the bb/mobile-pwa-compact-home-thr_wftu7bh9ez branch from 04ae90c to 0eb3bef Compare September 1, 2026 04:41
@brsbl
brsbl merged commit 7364dd0 into main Sep 1, 2026
15 checks passed
@brsbl
brsbl deleted the bb/mobile-pwa-compact-home-thr_wftu7bh9ez branch September 1, 2026 05:47
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.

1 participant