Skip to content

feat(mobile): add turn activity settings and request countdowns - #236

Merged
nixuuu merged 1 commit into
devfrom
feat/mobile-parity-1
Nov 6, 2026
Merged

nixuuu merged 1 commit into
devfrom
feat/mobile-parity-1

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Stage 1 of 4, mobile parity round 2: pickers, settings and approvals.

Changed

  • Model picker: rows show only the model name. The descriptions ("Most capable for complex work") are gone, as on the web.
  • Settings → Threads → Turn activity (this device), as on the web:
    • "While working": Expanded or Collapsed; "After the turn": Collapse or Keep open, each with a reset button that reserves its space.
    • The thread timeline's "Working for …" fold follows them until you tap it. The rule (workFoldOpen) moves to @canopy/domain/work-fold and is shared with the web.
    • Stored per phone in device-preferences.json in the app's documents folder, parsed at the boundary.
  • Request countdowns on cards with a known deadline (Interaction.expires_at, BotApproval.expires_at): "Expires in m:ss", amber in the last 25 s, "Expiring…" at zero until the gateway marks the request expired. Uses the phone's clock and tabular digits; nothing moves when it ticks.
  • Expiry: an expired thread request leaves the list, as on the web. A bot card you saw waiting stays for the visit with "Expired. The bot no longer needs an answer." and no actions. A late answer the gateway refuses shows "This request expired. No answer was sent."
  • docs/mobile.md, docs/settings-map.md.

Checked

  • Gates: bun install, gen:check, typecheck, lint, format:check, expo lint in apps/mobile are clean. check:tmp and the web build ran on the top of the stack.
  • Android emulator (Canopy_Fold), light and dark, unfolded width and phone width (display override), against a throwaway gateway with a scripted worker:
    • a permission card counting down, turning amber, then "Expiring…";
    • Turn activity: default (open while working, collapsed after), Keep open (folds stay open, also after an app restart), reset button;
    • model picker without descriptions.
  • Not checked on the device: a bot approval countdown (needs a bot harness with a known deadline) and a question card countdown (same component as the permission card).

Copy audit (§8)

  • "Turn activity", "This device", "While working", "After the turn", "Expanded", "Collapsed", "Collapse", "Keep open" and their descriptions: taken from the web.
  • "Reset ‹setting› to default": the web's label, verb first.
  • "Expires in m:ss", "Expiring…", "Expired. The bot no longer needs an answer.", "This request expired. No answer was sent.": the web's text. State is never shown by colour alone.

Model picker rows show only names. Settings → Threads → Turn activity sets the work fold per phone, with the rule now shared with the web in @canopy/domain/work-fold. Approval and question cards show the countdown for known deadlines; expired bot cards drop their actions.
@nixuuu
nixuuu added this pull request to stack #240 November 6, 2026 07:36
@nixuuu
nixuuu marked this pull request as ready for review November 6, 2026 07:44
@nixuuu
nixuuu merged commit 0810050 into dev Nov 6, 2026
11 checks passed
@nixuuu
nixuuu deleted the feat/mobile-parity-1 branch November 6, 2026 07:44
nixuuu added a commit that referenced this pull request Nov 6, 2026
Reset buttons sat at the far right of a setting, after its control. As
on the web, they now sit on the control's inner side: before an inline
control, and before a full-width control below the title, with their
space reserved, so nothing moves when a reset appears. Turn activity
uses the same reserved reset instead of adding a button on change.

Fixes: #253
Fixes: #236
nixuuu added a commit that referenced this pull request Nov 6, 2026
Mobile settings put the reset button at the far right of a setting,
after its control. On the web the reset sits on the control's inner
side, with its space reserved, so nothing moves when it appears.

**Change**
- `SettingsRow` (`apps/mobile/src/features/settings/SettingsGroup.tsx`):
- an inline control (switch, or wide layout) shows the reset before it;
- a full-width control below the title shows the reset to its left, in
the same row;
  - a row without a control keeps the reset in the title row.
  - The reset (`ResetSetting`) keeps its space while hidden, as before.
- Turn activity: the "While working" and "After the turn" resets use the
same reserved `ResetSetting` before the segmented control. They no
longer add a button to the title row only when changed.

**Checked:** `typecheck`, `lint`, `format:check`, `expo lint`. The
device check is on a preview APK on a Galaxy Z Fold, since the Mac
emulators are out of disk space.

**Copy audit (§8):** no UI text changes.

Fixes: #253
Fixes: #236
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