Repository navigation
feat(mobile): align settings navigation and color themes - #245
Merged
Merged
Conversation
nixuuu
force-pushed
the
feat/mobile-settings-1
branch
from
November 6, 2026 09:10
240f237 to
f3b6528
Compare
nixuuu
marked this pull request as ready for review
November 6, 2026 09:22
nixuuu
force-pushed
the
feat/mobile-settings-1
branch
from
November 6, 2026 09:24
f3b6528 to
57f425e
Compare
nixuuu
added a commit
that referenced
this pull request
Nov 8, 2026
Settings now covers the workspace with an opaque native transition. Back gestures return from a Settings section to its list before dismissing Settings. ### Causes and changes - The wide root stack faded Settings over the thread while also removing/recreating the workspace sidebar. Move workspace routes into `(main)` and present Settings above that complete, stable surface. Android slides from the bottom; iOS uses its native stack transition. Reduced motion disables navigation animation. Wide thread/bot changes still swap in place inside the clipped panel, preserving #234's sidebar protection. - Settings sections lived in component state, so iOS only knew about the outer Settings route. Give sections their own native stack and disable the outer iOS gesture while a section owns Back. Shortcuts anchor the Settings list beneath their section; X dismisses all Settings. - Split view: Back from a selected section returns to the list + General, then closes Settings. Selecting another section replaces the current section, so sidebar browsing does not accumulate history. Documented in `docs/mobile.md`. - Audit: side threads opened from thread details/subagent panels and bot exchanges already push real routes. Bot settings/details sheets already unwind through `onRequestClose`; Android device checks confirm settings → details → chat. Fix the pairing scanner's missing Android Back handling and protect paired/unpaired route history. No dependency changes. ### Device evidence Recorded before and after with T3 device tools on Android 16 phone and unfolded Fold, in light and dark mode. Extracted transition frames show Settings sliding as a solid surface, with no thread/settings text double exposure and no sidebar resize. Before/after recordings and frame sheets are retained in the implementation worktree under `.tmp/mobile-settings/`; they are deliberately not committed and are not hosted GitHub attachments: | Check | Evidence | | --- | --- | | Before, phone/Fold × light/dark | `before-{phone,fold}-{light,dark}.mp4` and corresponding `*-frames.png` | | Final open/close, phone/Fold × light/dark | `final-{phone,fold}-{light,dark}.mp4` and `*-open.png` / `*-close.png` | | Android section → Settings root → thread, button + edge gesture | `after-phone-light.mp4`, `after-fold-light.mp4`, dark counterparts | | iOS General → list → thread, left-edge swipe | `ios-final-swipe.mp4` (fresh simulator dev client) | | Side thread → parent by gesture | `android-nested-back.mp4`, `ios-nested-back.mp4` | | Bot settings → details → chat; scanner → form | `android-nested-back` recording chunks, `android-pairing-back.mp4` | | Reduced motion | `android-reduced-motion.mp4` | Cold starts on Android and iOS were checked after removing unused explicit workspace screen ordering; no route-reconciliation warning remained. Native clients were built locally (private Linux Android SDK/Gradle, arm64, two workers, 3 GB heap; private Mac simulator build with ≥12 GB free at build start). No store/EAS builds. Device recordings/native builds precede an unchanged rebase onto `61882593` (#357). Installation and static checks were repeated afterward; this PR changes no dependencies or workflows. ### Verification and gaps - Passed: `bun install`, `bun run gen:check`, `bun run typecheck`, `bun run lint`, `bun run format:check`, web build, mobile typecheck and `bunx expo lint`. No UI tests added. - Full `bun run check:tmp` did not finish cleanly: it ended with signal 143 during worker tests, after three linked-project failures and one shell timeout. Targeted rerun: shell passed; the same three project assertions failed identically on untouched base `f583c5ca` (10 passed / 3 failed across the three files). Both targeted runs reported nothing left in their temp dir. Separate worker run passed: 264 passed, 19 skipped, 0 failed across 47 files; temp cleanup passed. - The three baseline failures are `add-project.test.ts` (local folder unexpectedly attached) and `linked-projects.test.ts` (owner-scoped origin metadata and shutdown-home merged identity). They are outside the mobile change. Full-suite gate remains unverified/failed; this PR stays draft for that gap. - Device checks used emulators/simulator, not physical hardware. iOS split-width gestures, an actual fold/rotation during navigation, and frame-by-frame predictive-back progress were not separately verified; completed Android edge gestures and Back events were verified. The split behavior uses the same documented native section history on both platforms. Copy audit: no UI text changed. Fixes: #234 Related: #245
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mobile Settings used a different palette and a flat list that left several sections empty. This adds the web section registry and order, phone list-to-section navigation, a two-pane layout from 600 dp, shared theme tokens, and Appearance with System/Light/Dark plus the same seven light/dark previews.
The full web-versus-baseline-mobile inventory below records the fields, actions, BFF routes and RPCs. Subsequent draft layers implement the remaining sections. No gateway access changes in this layer.
Security follow-up: layer 3 now drains port changes safely and persists the phone's replacement routes. The independent refused-move metadata fix is #257, based on origin/dev; it must land before layer 3 exposes move administration to phones. All nine layers were restacked on current dev. Device tokens remain valid until revoked; pairing codes expire.
Validation: install, generated contracts, repository typecheck, lint, formatting and Expo lint pass for this layer. Cumulative Android checks cover light/dark, phone/wide layouts and short/long labels. The final spacing refinements are in layer 9.
Platform choices: Electron-only Desktop and App updates follow remote web visibility; remote updates live under Workers. Native fonts use platform fallbacks. Render math and animated mascots are explicitly unavailable on native.
Copy audit (§8): “Accent color” → “Light theme” / “Dark theme”, matching the web concepts. Checked sentence case, glossary, action verbs, loading/empty/error text, non-color labels and long names. No “soul” copy.
Web → mobile Settings inventory
Source:
packages/ui/src/settings.ts,apps/web/src/lib/features/settings/settings-sections.svelte.ts, all/settingspages and their feature components; baseline mobilee2a4a019. Groups and ordering follow the web registry (Providers is rendered under Connections)./api/settings,/api/settings/user→ GetSettings, UpdateUserSettings; browser preferences local/api/schedules/**→ ListSchedules, CreateSchedule, UpdateSchedule, PreviewSchedule, SetScheduleStatus/api/projects/**, form actions,/api/settings/projects/:id,/api/workspaces/**→ AddProject, ListDirectory, CreateWorkspace, UpdateWorkspace, RemoveWorkspace, UpdateProjectSettings/api/worktrees/**→ GetWorktreeSettings, UpdateWorktreeSettings, ListWorktrees, CleanupWorktrees, RemoveWorktree, RevealWorktree/api/agent-environment/**→ GetAgentEnvironment; Save/DeleteInstructionDocument; SetEnvironmentTags; PreviewAgentEnvironment; ResolveEnvironmentDrift; Save/DeleteLibrarySkill; ResolveSkillDrift; Preview/Add/Check/ApplySkillSource; Preview/Save/DeleteMarketplace; Save/DeleteLibraryPlugin; ResolvePluginDrift/api/providers/**,/api/models→ List/Save/DeleteProviderInstance, SetInstanceWorkers/Worker/Models, GetInstanceWorker, ListModels, RefreshProviders, StartProviderLogin, MoveInstanceToProxy/api/connectors/**→ ListConnectors, SaveConnectorAccount, SetConnectorAccess, DisconnectConnector, DeleteConnectorAccount, TestConnector, SaveConnectorOAuthApp, BeginConnectorOAuth, CompleteConnectorOAuth/api/proxies/**→ ListProxies, SaveProxy, TestProxy, DeleteProxy/api/workers/**,/api/updates/**,/api/settings/user→ GetWorkerSetup, Create/RevokeWorkerEnrollment, Rename/Rotate/Revoke/ArchiveWorker, WorkerSsh, FetchWorkerInstall, SetEnvironmentTags, InstallCli, CheckCliUpdates, SetWorkerCliUpdateSettings, Get/ManageUpdates, UpdateUserSettings/api/network-access,/api/settings/user→ GetNetworkAccess, UpdateNetworkAccess, UpdateUserSettings/api/mobile-devices/**→ GetMobileDevices, CreateMobilePairing/CreateDesktopPairing, RevokeMobilePairing/Device/api/computers/**→ GetComputers, CreateComputerPairing, LinkComputer, ManageComputer, ManageConfigNotice, PreviewMove, StartMove, GetMovesAccess and secret boundaries
Web uses its server-side service token over gRPC; mobile uses its revocable device token over Connect/protobuf on the pinned TLS Network access listener. Both resolve to the same gateway owner. No service token enters mobile. The baseline interceptor denies phones device administration, worker enrollment/rotation/SSH/download, computer/config/move administration, network settings and updates. Owner-scoped core services already implement these actions. Stored secrets are write-only DTOs; clients submit replacements or omit unchanged values. Pairing/enrollment codes are newly issued, short-lived credentials and must only be held in the open form.