Skip to content

feat(mobile): manage bot routines and conversation actions - #389

Merged
nixuuu merged 1 commit into
feat/mobile-parity-3-1from
feat/mobile-parity-3-2
Nov 9, 2026
Merged

nixuuu merged 1 commit into
feat/mobile-parity-3-1from
feat/mobile-parity-3-2

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Mobile bot details now pause, activate and delete routines and cancel reminders. Sidebar bot menus add pin/unpin and movement, preserve editing/archive/delete, and expose archived conversations. Actions respect the available home and live connection; routine deletion explains its effect and asks for confirmation.

Bot creation starts with model selection. Web and mobile share pure duplicate-name validation and shorthand colour normalization through packages/domain. A pending approval card opens the bot's approval-policy picker through the existing update route; changing policy does not answer the card, and the gateway remains authoritative.

Validation:

  • On the final top branch, bun install, bun run gen:check, bun run typecheck, bun run lint, bun run format:check, foreground bun run check:tmp and apps/web's bun run build passed. Full suite: 1868 passed, 162 skipped, zero failures, 21587 assertions across 330 files; no test temp entries left. The web build reports a chunk-size warning. All layers were rebased onto acd4a9f1 (including fix(computers): resync linked thread views when their stream stalls #386/fix(interactions): show the request countdown in the card header #387) before the full checks. Final fingerprint generation was repeated on every layer after squashing review fixes; the final tree matches the tested tree.
  • Mobile TypeScript, repository lint and formatting passed during implementation. Existing gateway integration suites cover bot routines, lifecycle and approval enforcement; no new UI or trivial unit tests.
  • No dependencies or native configuration changed.

Production runtime fingerprints, before → after this layer:

Platform Before After
iOS 2a0ef03a2a0fda8e7fad2e3df8609803d2edbda3 2a0ef03a2a0fda8e7fad2e3df8609803d2edbda3
Android c5c880ae8d0f5d7bc867fcbaf8f756b2ca56a07d c5c880ae8d0f5d7bc867fcbaf8f756b2ca56a07d

Generated with bunx [email protected] fingerprint:generate --platform <ios|android> --build-profile production --json --non-interactive.

Copy audit (docs/copy.md §8): read-only routine/reminder rows → “Pause routine”, “Activate routine”, “Delete routine” and “Cancel reminder”; each action names its object. Delete confirmation repeats the verb and explains queued/active runs and irreversibility. Silent duplicate-name rejection → shared “A bot with this name already exists. Choose another name.” Errors state the failure and recovery; titles use sentence case and bot/routine terminology. No humour, new glossary terms or icon-only meaning. Visual short/typical/long-name audit remains manual and unverified.

Manual QA still required; installed simulator clients cannot execute this checkout. Use an existing compatible client after the JS changes are available. Repeat light/dark at phone (~390 dp) and Fold (~720 dp) widths, with short, typical and 80-character names:

  1. Open bot details on a live home. Pause/reactivate a routine, cancel a reminder, cancel and confirm routine deletion. Disconnect its home and verify all mutations become unavailable.
  2. Sidebar Bots → ellipsis and long press. Pin/unpin, edit, archive, expand Archived, unarchive and delete. Check pin order, confirmation preferences, stale settings retry and move entry. Verify read-only home behavior.
  3. Create bot. Choose the first model, enter an existing name with case/space variations, enter #abc, then save. Verify duplicate feedback and normalized colour. Retry an unconfirmed creation unchanged.
  4. Open a pending approval → Change approval policy. Pick a policy, verify the existing countdown stays in the header, then separately answer the card. Repeat offline and after expiry.
  5. Inspect compact menus, reserved row action space, wrapped schedule metadata and keyboard interaction for clipping, seams or layout shifts. Web's shared validation also needs a creation/edit smoke check.

Keep this PR and the entire stack in draft; do not merge individual layers.

@nixuuu
nixuuu added this pull request to stack #391 November 9, 2026 09:41
@nixuuu
nixuuu marked this pull request as ready for review November 9, 2026 09:45
@nixuuu
nixuuu deleted the branch feat/mobile-parity-3-1 November 9, 2026 09:56
@nixuuu nixuuu closed this Nov 9, 2026
@nixuuu
nixuuu deleted the feat/mobile-parity-3-2 branch November 9, 2026 09:56
@nixuuu
nixuuu restored the feat/mobile-parity-3-2 branch November 9, 2026 09:56
@nixuuu nixuuu reopened this Nov 9, 2026
@nixuuu
nixuuu force-pushed the feat/mobile-parity-3-2 branch from 4ed840a to 02cea7b Compare November 9, 2026 10:39
@nixuuu
nixuuu merged commit d74524d into dev Nov 9, 2026
25 of 33 checks passed
@nixuuu
nixuuu deleted the feat/mobile-parity-3-2 branch November 9, 2026 12:50
nixuuu added a commit that referenced this pull request Nov 22, 2026
## Change

On tablets and unfolded phones, deleting a bot from the sidebar could
leave its conversation open in the right pane with “Reconnecting…”. The
sidebar menu and bot settings now share one deletion flow. After the
gateway confirms deletion, the bot leaves the sidebar and the right pane
returns to the conversation chooser if that bot was open. On narrow
screens the app returns to the Bots list. Deleting a different bot keeps
the current conversation open.

## Verification

- Mobile typecheck, lint on edited files, and `git diff --check` passed.
- Six local scenarios passed using the Expo Router stack reducer and a
stubbed deletion response. These covered narrow and wide navigation,
deleting a different bot, switching during deletion, request failure,
and an ended pairing.
- The Android emulator was occupied. On-device verification of the
split-pane interaction is pending.
- GitHub CI runs the repository checks. UI copy is unchanged.

Fixes: #389
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