Skip to content

Polish: fixes from #8 in the desktop look - #26

Merged
Tarquinen merged 6 commits into
mainfrom
polish/pr8-fixes
Nov 10, 2026
Merged

Tarquinen merged 6 commits into
mainfrom
polish/pr8-fixes

Conversation

@Tarquinen

Copy link
Copy Markdown
Member
  • Code blocks get a small flat copy button (desktop style), in transcripts and the markdown file viewer; swipes starting on it still scroll the block.
  • A soft canvas fade behind the composer, so the transcript no longer runs hard into it.
  • Browser bar buttons and drawer rows are now 48 dp touch targets.
  • The nested agent file viewer uses the standard back arrow.
  • Android names for two experiments: Background Call Shortcut and Session Live Updates, plus What's New copy without the Dynamic Island.

…te experiments

Background Action Button Call is now Background Call Shortcut (Android has no Action
button; iOS's summary stays). Session Live Activity / Follow runs on the Lock Screen is now
Session Live Updates / Follow runs in a live notification, with its What's New entry. The
Voice Calls What's New line about the Dynamic Island now names the call's notification,
which carries Mute and End on the Lock Screen too. Copy divergences approved by Dan and
noted in docs/parity/settings.md.

Verified: scripts/check.sh (VM), Settings › Experimental and What's New on the emulator.
Transcript rows showed around the floating composer's rounded corners, beside it and under
the navigation bar, where iOS fades them under its soft scroll edge. A canvas gradient now
fades rows out from 20 dp above the composer's top to solid canvas 16 dp below it, reading
the composer's height and the IME/navigation insets in the draw phase. It takes no touches
and is hidden from TalkBack.

Verified: scripts/check.sh (VM); session-lab long transcript in light and dark on the emulator.
The viewer's Back still drew chevron.left in a Material IconButton; it now uses
OpenCodeTopBarBackButton, the arrow every other screen's top bar uses.

Verified: scripts/check.sh (VM); a nested agent file on the emulator.
Drawer rows were 44 dp (iOS 44 pt), below Android's 48 dp minimum. Rows touch, so the target
can't grow past the row: the row height is now 48 dp (the Catch Up finished row follows it),
with the same flat highlight. The in-app browser's controls (back to session, bar buttons,
address, reply capsule) are 48 dp too. The drawer search circle already was.
DrawerSpacingTests asserts 48 dp, noted in docs/parity/drawer.md.

Verified: scripts/check.sh (VM); drawer and browser on the emulator.
Android divergence approved by Dan, following the desktop app's markdown-copy-button
(packages/session-ui): a 24 dp ghost square 6 dp in from the code block's top-right corner,
always shown on touch, with a 48 dp target. A tap sends CopyTextTapped with the block's
source (no fences), which plays the tap haptic and writes the clipboard; the glyph
cross-fades to a check for 2 s (desktop COPY_FEEDBACK_MS). TalkBack reads “Copy code”, then
“Copied”. The square is filled with the block's colour so long lines pass under it.

MarkdownBand gains an optional corner action. The sideways drag now belongs to the whole
block (scrollable on the block, horizontalScroll(enabled = false) on the content), so a swipe
that starts on the button still scrolls the code and cancels the tap; the drawer seam still
covers the block. The Markdown file viewer (TranscriptMediaProviders) now handles
CopyTextTapped too.

Verified: scripts/check.sh (VM); session-lab markdown checkpoint on the emulator: tap shows
the check and pastes the raw source; a swipe from the button scrolls the long line both
ways without copying or opening the drawer.
… pills

The bottom scroll edge started 20 dp above `scrollEdgeBridge.composerHeight`'s top,
but that height covers the whole composer column: the resting orb's room, call
cards, the pill row (background-work/subagents capsule, queued pill, Jump to Latest
while pills show), banners and the capsule. So on a phone the fade reached up over
the floating Jump to Latest arrow and the subagents button.

The composer capsule now reports its own top in the window (`surfaceTopInWindow`),
and the fade starts exactly there and reaches solid canvas one composer corner
radius (12 dp) below, eased so a row beside the corner is mostly covered within the
first few dp. Rows stay unfaded down to the composer; the pills, the arrow and the
orb room keep normal content behind them.

Verified: scripts/check.sh :feature:session passes on the VM; on the emulator
(session-lab long and background-work with history) in light and dark, with the
Jump to Latest arrow, the "1 subagent · 2 shells" capsule, and the keyboard open.
@Tarquinen
Tarquinen merged commit 8befa30 into main Nov 10, 2026
3 checks passed
Tarquinen added a commit that referenced this pull request Nov 11, 2026
No behaviour change. Inlines CodeCopyButton's single-use constants
object, flattens its feedback LaunchedEffect, drops the unused BoxScope
receiver on MarkdownBand(action:), trims narrating KDocs on
SessionBottomScrollEdge and surfaceTopInWindow, folds the duplicate
48 dp comment in TuningTests into the existing one, and shortens the
parity rows #26 lengthened.

Verified: vm check :feature:transcript :feature:session :feature:drawer;
before/after emulator shots of the markdown session (light, dark, and
the Copied state) are pixel-identical apart from the status-bar clock;
the Copy code TalkBack node is unchanged.
Tarquinen added a commit that referenced this pull request Nov 12, 2026
refactor(transcript): simplify the #26 polish fixes

This branch was previously deployed

1 inactive deployment
release — 85666eda Deployed Nov 10, 2026 by Tarquinen via check #90
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