Skip to content

fix: 2.2 QA round 2 (calculator, local route, window mode, rearrange controls) - #338

Merged
raiseCatError merged 75 commits into
devfrom
codex/22-qa-round2
Nov 29, 2026
Merged

raiseCatError merged 75 commits into
devfrom
codex/22-qa-round2

Conversation

@raiseCatError

Copy link
Copy Markdown
Owner

QA round 2 fixes from the owner's 2.2 QA pass.

  • Calculator: floating, freely resizable window; coloured keys; the whole expression with a live answer; history; scientific keys; Soulver-style notes with plain English and Apple Pencil (Scribble). On by default.
  • Connect: a receiver that can see the Mac locally (Wi-Fi or AWDL) no longer ends up on the saved remote address.
  • Window mode: freeform float resize, pane tabs and dividers stay clear of the trays, Trackpad dots and focus after pane switches, live Mac cursor in panes while the Trackpad is in use.
  • Rearrange Controls (hold the gear): wiggle, drag to reorder tray icons and Command shortcuts.
  • Stage Peek: the gallery no longer cuts text at both edges.

Draft: local builds were blocked by low disk space, so CI is the first compile.

…ific keys and notes

The calculator is a floating window: move it by its title bar and resize it freely from its corner. Keys are coloured. The keypad builds the whole expression (80 × 5) with a live answer under it, keeps the calculation above its answer after =, and lists every calculation in a history. Expand adds scientific keys. The keyboard button opens a Soulver-style notes sheet: type or write with Apple Pencil (Scribble) one calculation or plain-English question per line, and its answer appears under it with a shimmer. A new expression engine (CalculatorExpression) reads operators, functions, percentages, variables and plain English. The calculator is now on by default, once also for settings saved while it was off.
One Connect sent a local Bonjour token and a Remote knock at once, and the knock over the tunnel usually won, so a receiver at home still connected over Remote. When the Mac is visible locally (Wi-Fi or AWDL) the knock now waits 3 s for the local dial. The Mac also moves a Remote session for that peer onto the local route when its local token arrives. Also keeps the Trackpad cursor position in Window mode when the Trackpad goes idle.
Session Actions (hold the gear) offers Rearrange Controls. The tray icons wiggle; drag one to reorder it and it snaps into place. Tapping a modifier with a palette (Command) opens its shortcuts to reorder them too. Done saves to the active profiles. Nothing reaches the Mac while rearranging.
Laid out to the peek's offered width, a narrower container cut text off at both edges. The Displays header can also stack its actions one per line.
…ckpad cursor

Floats resize from every edge and corner, width and height independently, up to the whole picture. Pane tabs step below any control covering their row, dividers stop before a pane's tabs would go under the trays, panes keep their minimum after the screen turns, and a float's title pill never rests under the controls. While a Trackpad pane is in use the Mac reports the real cursor (and moves the saved pointer with it), and the receiver follows it in every pane without the display-layout opt-in. The Trackpad keeps its focus when its tab moves, and its touch trail tests touches in its own view's coordinates.
Connect: drop the Mac-side move of a Remote session onto the local route; switching transports tears Remote down before the local dial is proven, with no fallback. The receiver's local head start alone keeps new connections local.

Calculator: continuing from an answer uses the exact answer (3 ÷ 7 = × 7 = is 3; a committed −2 squares to 4), AC starts the next operator from 0, = reuses a signed operand, ² and ³ are postfix, adjacent numbers such as 2.3.4 are an error, spelled-out numbers and factorials can't overflow Int, and only lines that read sum/total are left out of it.

Window mode: drops on a pane's tab row count where the row is shown, edits that keep the split tree keep the saved ratios instead of rotation-fitted ones, and the pane showing the Mac's full-size cursor gets no second small arrow.
Notes are one text view: Return adds a line, the placeholder shows only while empty, and each line's answer sits beside it (tap to copy, shimmer when it appears). A rail above the keyboard has the maths symbols and a Hide Keyboard button. Variables work with any name, x included (once x is assigned, 2x and 2 * x multiply; let and := work too). Lines also answer time zones (3pm PST in London, time in Tokyo), relative times (5 hours from now, 90 minutes after 3pm, in 10 days), dates (days until Christmas, what day is 4 July 2027), unit conversions (length, mass, volume, temperature, speed, area, time, data, energy, pressure), number bases and percent questions. Keys are round again; the keypads resize only proportionally, the notes freely, and each view keeps its own frame.
… tab-row drops, echo marks, calculator edge cases)
…s and commas, drop band, echo seed, float corners)
…es clipping and copy, units with digits, float top edge, locale decimals)
…mmas, pane tabs, split ratios, Trackpad focus)
…Codex round 7)

Rearrange Controls is now a sheet of reorderable lists (Control Tray,
Function Tray, each modifier and chord) with a back button and Done on
every page, replacing the in-place wiggle overlay whose palettes and
chords opened over the trays and had no way back. Rearranging portrait
no longer reorders a landscape that had no order of its own.

The calculator flicks to the left or right edge like a floating window
(WorkspaceFloatMotion.decide) and comes back from its strip, its button
or VoiceOver. Its button sits beside the Main Tray on iPhone and beside
Settings on the iPad rail, so the top lane and other rails no longer
move for it. The resize grip no longer covers the = key.

Codex round 7 on the round 6 fixes: decimal commas only drop dots where
dots group thousands and the rail types the locale's decimal mark;
sparse checkpoints instead of a state per notes line; time answers are
never reused and a new locale, calendar or time zone redoes the sheet;
pane tabs report their own width.
… notes numbers)

Rearrange Controls keeps input from the Mac until its sheet has gone,
and a shake doesn't open Settings over it. Stashing leaves the hardware
key guard to the notes editor, which won't raise the keyboard for a
stashed window. The stash strip is short, keeps off controls and folds,
and the window comes back flush with its edge after a rotation; a
cancelled drag lets go cleanly. On iPad the calculator leads the
Function rail when the Settings group would need another lane; on
iPhone it sits beside a Function group when the Main Tray is hidden.
Notes keep saved states across stride changes and read numbers the
locale's way (",5", "1 250,5"). Pane tabs scroll within narrow rows.
The Rearrange pages and the shortcut editor all have Done.
…bstacles, launcher placement, prose commas)

- Rearrange sheet closes when rearranging stops being possible and ends
  rearranging if the overlay goes away; shake is ignored while rearranging.
- Closing the calculator no longer clears the notes key gate before the text
  view resigns; only the first responder clears it.
- Stashed strip avoids arrow keys, palettes and the calculator button using a
  free-gap search; it re-anchors on bounds changes. Move and resize keep
  separate start frames.
- iPad: the calculator takes a place only if every other control keeps its
  frame; with no Main rail it floats beside the gear. iPhone: with the tray
  collapsed it sits beside the gear.
- Notes: a comma is a decimal mark only between digits, at the start, or after
  an operator.
…cher beside gear, iPad obstacles, operator commas)

- A stashed calculator comes back through one path (strip, pull, button,
  VoiceOver) that places it against every obstacle the strip avoids.
- Closing or stashing mid-drag clears the drag state; a queued cancellation
  only ends its own drag.
- iPhone: with no tray shown the launcher sits beside the gear's drawn
  footprint. iPad: the floating launcher is used only when clear of the
  Function rail and is reported as occupied; the stash strip also avoids
  palette keys, Two-Hand Assist and the wheel's hit area.
- Notes: a leading decimal comma after any operator or opener the calculator
  reads, with any spaces.
- QA checklist: timing checks for the input hand-offs.
…nd x/mod commas)

- iPad, no Main rail: the calculator floats in the first clear spot (beside
  the gear, the other end of its edge, then the opposite edge), clear of every
  Function chip and the gear; it joins the Function rail only if that keeps
  the picture's size and the gear clear. It never widens the Strip.
- Notes: a leading decimal comma after a root sign, or after x/mod between
  numbers.
… sheets

Measured (Mac, optimised build): CalculatorLanguage.normalize recompiled ~46
phrase regexes on every line, about 465 µs of a line's ~520 µs. Compiled
once, it takes 47 µs. A 500-line sheet now evaluates in 147 ms instead of
449 ms; editing its last line costs 1.1 ms instead of 3.9 ms.

An unchanged sheet (each redraw, every frame of a window drag) is returned
as is (0.9 µs instead of 3-4 ms). A time answer ("time in Tokyo") stays
current for one second from when it was worked out, so typing below it no
longer redoes the whole sheet each keystroke (500 lines: 1.5 ms instead of
about 400 ms).
…tes sheet, exact text reuse, operator commas)

- iPad, no Main rail and no clear floating spot: the calculator joins the
  Function rail (never overlapping a chip) instead of an overlapping spot.
- Notes: time answers in one evaluation share one moment; reuse compares lines
  byte for byte (canonically equivalent spellings can read differently);
  thousands grouping works in UTF-16 so a combining mark can't stop it; a
  leading decimal comma after modulo, and after a bracket before x or mod
  (x only when it names no value).
…ds before a decimal comma)

- iPad, no Main rail and no clear spot: the Function rail only if every chip
  stays on screen, the picture keeps at least half its size and the gear stays
  clear; otherwise the floating spot overlapping the least.
- Notes: a decimal comma after the words x, mod and modulo (after a name too),
  never inside another word; x as a name no longer changes it, so arithmetic
  and unit conversions agree.
- Test: exact-text reuse across a saved state.
…combining marks in operator words)

- iPad, no clear floating spot: first a short slide (up to a cell, either
  axis) inside the safe area to a place clear of every chip and the gear;
  only then the least-overlapping spot.
- Notes: a combining mark belongs to the word before x/mod/modulo.
…ash only where the strip can be tapped)

- iPad: the calculator floating beside the gear shows no Strip caption, like
  the floating gear, so it stays inside the safe area.
- A flick (or Move to Edge) toward an edge with no tappable place for the
  strip waits at the other side edge instead, or stays on screen.
…y, pane menu bar room, live drag frame, short stash bounds)

- Notes: a time answer is reused for at most a second and never across a
  minute boundary on the clock (dates change at midnight).
- Pane menu bar: beside the tabs only with room for the whole bar on every
  receiver (tabs now measure only their own width), else its own row.
- The calculator reports its live frame while dragged, so the arrow keys and
  workspace keep clear of where it is.
- Stash bounds shorter than a touch target have no tappable place.
…agged calculator clipped to its bounds, stash keeps the chosen size)

- Pane menu bar: on its own row it searches for a clear run below the tabs, like the tabs do,
  with the 44 pt menu button counted, instead of reusing the title row's clear span.
- Calculator drag: only the part inside the bounds is drawn, takes touches and is reported;
  nothing is reported (not the old frame) when none of it is inside.
- Calculator stash: anchoring through a rotation, the flick stash, Move to Edge and restore
  keep the chosen size; fitting to the bounds happens as it is drawn.
- LocalCalculatorTourTests: print the accessibility tree when the panel does not open
  (CI keeps no result bundle).
- Checklist: three physical checks for these.
- A dragged calculator is never drawn or reported below the on-screen
  keyboard's top, including a keyboard raised during the drag.
- A standing preview that fits is a plain column; a longer one scrolls
  in a column only as wide as its faces, so a swipe beside it scrolls
  the list.
- The axis comment names compact iPad windows, whose phone-style trays
  also stand on their side in landscape.
The owner preferred the horizontal strip after trying the standing
landscape preview. This undoes the preview axis from f626470 and the
column layout from 6b7df97. Per-orientation ordering and the
calculator drag clip are unchanged.
New installs no longer show the calculator button; it is added from
Edit Function Tray as in 2.1. The one-time switch-on for settings saved
before pre-release 2.2 is removed, so any saved choice, on or off,
loads unchanged.
…pdating

Auto-Pan: the Overview pane's edge follow is now one shared rule
(EdgeAutoPan) used by window and Full Desktop panes and floats on the
Mac (relative pointer only), and by Mirror and Extend's zoomed picture
on the receiver. Settings > Gestures > Auto-Pan: On (default), Off, or
Custom per view. The receiver tells the Mac what to follow with an
additive workspaceRequest autoPan field; without it the Mac keeps the
old behaviour (Overview only). A followed pane's view is kept until the
receiver asks for another, and echoed with asked so the next pinch
starts from what is shown.

What's New: once after updating to a release with notes, never after a
fresh install or a new build of the same release; kept per release and
reachable from Settings > About (iOS) and Settings > System (Mac).
Shown only on Home with no session (iOS) or at an interactive launch
with no device connected (Mac).
- A followed pane's camera is kept against the zoom the receiver asked
  for (assignment.requestedZoom), never an earlier followed view, so a
  refresh between follows can't drop or rewind it; one queued copy at a
  time; asked is echoed with the composed zoom.
- Only right-angle panes follow (free angles have empty corners), and a
  pointer pushed to a turned Full Desktop pane's edge stays on its own
  display.
- Mirror/Extend: any absolute input ends Auto-Pan eligibility; the view
  above an open keyboard is the area followed; the view moves before
  the pointer is laid out.
- Receiver preferences schema 27, so an older build that saves keeps
  autoPan.
- What's New yields to update gates, sender approval and invitations
  (iOS), and on the Mac shows only with no session, receiver role,
  pairing or approval pending, and steps aside if one arrives.
- The followed view is used only for the same window as the state.
- Hardware pointer press and drag end receiver auto-pan eligibility.
- Mirror/Extend follow only at right-angle rotations.
- Mac What's New waits for pairing prompts, not pairing messages.
- Reading What's New from Settings marks the release seen.
- Followed display panes keep their camera across display reconnects.
- Pane camera state goes out after 30 ms instead of 80 ms.
- Saves keep calculatorDefaultRevision=1 so earlier 2.2 builds keep the hidden default.
- A followed view anchors only the display it describes (current id), not another tab's.
- The followed camera's state goes out right after the frame that draws it (30 ms coalesced).
- Mirror/Extend follow only Trackpad mode; an input-mode change ends eligibility.
- Mac What's New waits while Sparkle checks for or installs an update.
- What's New copy: arrangement approval and Use Less Data say when they apply.
- State echoes the followed view the last composed frame drew, never a camera not yet drawn;
  a pending view waits for a frame that is delivered.
- Window mode panes follow only Trackpad's relative pointer (the existing trackpadPoints flag),
  not a Direct Touch precision move.
- A display known by UUID matches only the id it has now.
- Apple Pencil hover, contact and fallback touches end Mirror/Extend follow eligibility.
- The compose pass itself notices a newly drawn followed view and schedules the state, whichever
  path set it; the drawn record carries the view epoch, so an old crop never pairs with a new turn.
- The receiver matches a followed view to the pane source when the state arrives; a later tab
  switch or display id reuse never inherits it.
- A followed view report carries the request's view epoch (`view`); the receiver takes it only
  for the epoch it last sent for that pane, so a report about another source never anchors it.
- A failed composition keeps a waiting followed view dirty until a frame draws it.
- PROTOCOL.md: Trackpad-only pane following and the `view` echo.
…vice as used

A connection or fixture session could set hasConnectedBefore before Home's onAppear evaluated
What's New, so a fresh install's first launch left the release pending and a later launch showed
it over Home (hosted Duo UI tests: Explore Demo covered in 9 tests).
…inter

Round 33 let a pane's view follow only moves that carry trackpadPoints, but the receiver
sets that flag only on the Desktop Trackpad tab (or with video off). Over an ordinary window
or Full Desktop pane, Trackpad mode's moves go in canvas pixels without it, so panes and
floats never followed; only the Overview pane did.

The receiver now marks Trackpad mode's relative moves in Window mode with "autoPan": true
on the pointer message, and the Mac lets a pane's view follow trackpadPoints or that mark.
Direct Touch's precision move stays unmarked and never moves a view. Which views follow is
still the workspace request's autoPan, so older and Android receivers (no request field)
keep Overview-only following whatever a pointer message says, and an older Mac ignores the
key. PROTOCOL.md 6.10 Auto-Pan addendum updated.
…resentation; Display Scaling

What's New treated a session connecting like a pairing prompt: when Auto-Connect reached the
Mac, the sheet closed (unread) and only came back on Home with no session. Now a session that
connects by itself starts behind it and shows when the person closes it; input to the Mac and
the session's own prompts (Mirror unavailable, the mobile-data question) wait until it has
gone. A pairing, an invitation, an approval or an update still puts it away unread; it comes
back on Home with no session or at the next launch. Only closing it marks it read. The rules
are in WhatsNewPresentation and tested. The Mac had the same rule (no session at all) and
now only steps aside for pairing, approvals, control requests, receiving and update checks.

Presentation: iPhone and iPad use a large title that folds into the bar as the list scrolls
and a Continue bar the list scrolls under; the Mac window is sized to its content, shows the
app icon and version once, and has a trailing default Continue button. Highlights get large
rows; the rest a compact Also New list. Copy checked against v2.1.0: Thunderbolt (a label)
and Use Less Data (introduced by its own prompt) dropped; Beta and optional stay marked.

Desktop Size is called Display Scaling in Settings, search and docs; stored values and the
desktopSize wire field are unchanged. Debug-only MEOW_WHATS_NEW_PREVIEW shows the real sheet
for layout checks; a Duo UI test uses it in portrait and landscape.
- A presentation given up after 1 s counts as interrupted (never marked read), and each new
  presentation starts with the interrupted flag clear.
- Once the first offer passes while a session is in use, the notes wait for Home instead of
  popping up over that session later in the launch.
- The pairing sheet, the session invitation, the required-update cover and the update alert
  wait until What's New has finished stepping aside, so none is dropped mid-dismissal.
- A shake doesn't queue Settings behind What's New.
- Mac: over a connected device the window is shown but not made key, so typing never lands in
  it; the Debug preview hook marks nothing seen.
- Highlight tiles stop growing past 58 pt at accessibility sizes; Also New rows read with a
  pause; the Duo UI test checks the last row against the Continue bar itself.
- QA only (Debug): MEOW_WHATS_NEW_RESET=1 forgets the read release at launch.
…fer; Mac keeps focus when asked for

The mobile-data or Mirror-unavailable question at the start of an Auto-Connect session no longer
cancels the launch offer: What's New comes once it is answered. Over a connected device, only
the Mac's automatic launch offer comes up without focus; opening What's New from Settings
always takes focus.
…onnection status

Auto-Pan now covers every input that moves the Mac pointer over a zoomed view:
- Relative moves (Trackpad mode and Direct Touch precision movement) are followed in
  Mirror/Extend and, via the pointer autoPan flag, in Window mode.
- A finger or mouse/trackpad pointer that points where it is (Classic/Natural Touch drags,
  press-and-hold placement, click-and-drag, hover) scrolls the view while held in the edge
  band it moved toward (EdgeAutoScroll), keeping the Mac pointer under it. Mirror/Extend
  move the local zoom; Window-mode panes, floats and Overview move the pane's view through
  the two-finger pan path (WorkspaceModel.edgeScroll), clamped so no empty space shows,
  without focusing the pane. Never for taps, local controls, float moves, fitted or
  free-angle pictures, Apple Pencil, or with input off. Same On/Off/Custom setting.

Active Connection: a read-only route (AWDL, LAN, USB, Thunderbolt, Remote) in iOS Settings >
Connections and the Mac Receiver overview, from the live path. ReceiverTransportState ties
each path to the established connection and notifies StreamReceiver.connectionPath; cleared
on disconnect. The Mac labels each device's route Active Connection.

No new protocol fields. Docs: PROTOCOL.md 6.10 Auto-Pan addendum, RECEIVER_CONTROLS.md,
What's New and Settings copy, QA checklist Round 9 with coverage matrix and exclusions.
…essment

The owner physically tested 9000102 (Mac and iPhone) and accepted Round 9
and the What's New design; features are frozen. Records what that does
and doesn't cover (the iPad never had 9000102), the gaps that block the
submission (upgrade from 2.1.0, the release-signed candidate) apart from
the recommended ones, the owner's waiver of the Codex review, and the
compatibility evidence for the four additive Auto-Pan fields with Android
2.0.0 and older Apple clients. The fields still need the owner's approval.
@raiseCatError
raiseCatError marked this pull request as ready for review November 29, 2026 12:00
@raiseCatError
raiseCatError merged commit a7c01a2 into dev Nov 29, 2026
7 checks passed
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