Skip to content

refactor(voice): drop the floating call look's unreachable null fallbacks - #42

Merged
Tarquinen merged 1 commit into
devfrom
simplify/pr37
Nov 12, 2026
Merged

Tarquinen merged 1 commit into
devfrom
simplify/pr37

Conversation

@Tarquinen

Copy link
Copy Markdown
Member

Follow-up to #37. No behaviour change.

FloatingCallSurfaceLook kept geometry and restArea as nullable state with a fallback in every reader (frame, shape, bloom, content layout and so on). The surface always sets both before anything reads them, so the fallbacks can't run. They now come in through the constructor and are non-null.

The per-terminal map of derivedStateOf for the touch kind is now a plain function, wrapped once at the call site in remember(look, terminal) { derivedStateOf { … } }.

  • scripts/check.sh :feature:voice :feature:session :app passes (VM).
  • Emulator, lab demo call: the card opens mid-stream with captions streaming, drags up to full, back steps full → card → orb → normal app back, the orb drags and throws, a tap opens it, dragging down returns it to the orb, and landscape and back both work.

…acks

FloatingCallSurfaceLook (added in #37) kept geometry and restArea as nullable state with a
fallback in every reader, but the surface always sets both before anything reads them. They
now come in through the constructor and are non-null, so the nine fallbacks go. The per-terminal
map of derivedStateOf for the touch kind becomes a plain function wrapped in one
remember(look, terminal) { derivedStateOf { } } at the call site.

No behaviour change. Verified: scripts/check.sh :feature:voice :feature:session :app on the
VM; on an emulator with the lab demo call, the card opens mid-stream with captions, drags up
to full, back steps full -> card -> orb -> app back, the orb drags and throws, tap opens it,
drag down returns it, rotation to landscape and back.
@Tarquinen
Tarquinen merged commit da0f709 into dev Nov 12, 2026
3 checks passed
Tarquinen added a commit that referenced this pull request Nov 12, 2026
No conflicts. The overscroll files now match dev's #43, and FloatingCall keeps #42's cleanup with the assistant's two internal helpers.
@Tarquinen Tarquinen mentioned this pull request Nov 12, 2026

This branch was previously deployed

1 inactive deployment
release — 7cd464b3 Deployed Nov 11, 2026 by Tarquinen via check #125
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