Repository navigation
Split mobile host screen layers - #17181
Merged
Merged
Conversation
Greptile SummaryThe PR decomposes the mobile host route into focused state, synchronization, catalog, action, controller, and presentation modules while retaining the existing route entry point.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| mobile/app/h/[hostId]/index.tsx | Replaces the monolithic host-screen implementation with the extracted controller and view while retaining the route export and placeholder behavior. |
| mobile/src/host-screen/use-host-screen-controller.ts | Composes host state, lifecycle, synchronization, catalog, actions, derived workspace sections, and responsive presentation data. |
| mobile/src/host-screen/use-host-screen-state.ts | Centralizes the existing host-screen state variables and long-lived refs used by the extracted hooks. |
| mobile/src/host-screen/use-host-worktree-catalog.ts | Extracts worktree fetching, snapshot admission, refresh lifecycle, cache updates, and reconnect-aware resynchronization. |
| mobile/src/host-screen/use-host-view-settings.ts | Extracts local view-state updates and patch-oriented desktop synchronization. |
| mobile/src/host-screen/use-host-worktree-actions.ts | Extracts navigation, activation, pinning, deletion, host removal, and new-workspace actions without an established behavioral change. |
| mobile/src/host-screen/host-screen-view.tsx | Introduces the composition boundary for the extracted header, workspace list, and overlays. |
| mobile/src/host-screen/host-screen-header.tsx | Extracts host connection status, navigation controls, search, and phone/tablet toolbars. |
| mobile/src/host-screen/host-workspace-list.tsx | Extracts catalog-state presentation and the sectioned workspace list. |
| mobile/src/host-screen/host-screen-overlays.tsx | Extracts filter, picker, confirmation, action-sheet, and new-workspace modal presentation. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
Route[Host route] --> Controller[useHostScreenController]
Controller --> State[Host screen state]
Controller --> Identity[Host identity]
Controller --> Settings[View settings sync]
Controller --> Catalog[Worktree catalog]
Controller --> Actions[Workspace actions]
Controller --> View[HostScreenView]
View --> Header[HostScreenHeader]
View --> List[HostWorkspaceList]
View --> Overlays[HostScreenOverlays]
Reviews (3): Last reviewed commit: "Merge branch 'ra/max-lines-bottom-14-rel..." | Re-trigger Greptile
…om-3-mobile-browser
…-bottom-4-prune-resolved
…-bottom-5-pane-tree-ops
…bottom-6-mobile-troubleshoot
…lines-bottom-7-external-manager
…es-bottom-8-attach-services
…s-bottom-9-hosted-review-creation
…ax-lines-bottom-10-automation-dispatch-events
… ra/max-lines-bottom-11-settings-navigation
…-lines-bottom-12-daemon-init
…ottom-13-gitlab-item-dialog
…lines-bottom-14-relay-dispatcher
…nes-bottom-15-mobile-host-screen
…5-mobile-host-screen # Conflicts: # mobile/.oxlintrc.json # src/renderer/src/hooks/automation-dispatch-completion.ts
|
Too many files changed for review (123 files, 100 file limit). Bypass the limit by tagging |
nwparker
changed the base branch from
ra/max-lines-bottom-14-relay-dispatcher
to
main
August 30, 2026 03:16
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
* Split speech session lifecycle * Split terminal output scheduler pipeline * Split mobile browser pane modules * Prune resolved max-lines suppressions * Split pane tree equalization logic * Extract mobile troubleshoot screen styles * Split external automation manager * Split main window service attachments * Split hosted review creation checks * Split automation dispatch event handling * Split settings navigation metadata * Split daemon initialization lifecycle * Split GitLab item dialog * Split relay dispatcher layers * Split mobile host screen * Retarget mobile view settings source test * Fix F3-speech for stablyai#17123 * Fix F1-cycle for stablyai#17131 * Fix F4-navtest for stablyai#17157 * Fix F2-allowlist for stablyai#17161
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.
Summary
Preservation audit
Validation
pnpm tccd mobile && pnpm typecheckcd mobile && pnpm lintcd mobile && pnpm test— 479 files, 3,863 passed, 3 skippedpnpm test src/renderer/src/app-shell/workspace-view-cross-client-sync.test.tsx— 14 passedpnpm run check:code-quality:changedpnpm check:max-lines-ratchet— 71 grandfathered suppressionspnpm test config/scripts/check-max-lines-ratchet.test.mjs— 15 passedgit diff --checkRendered native validation was not run because the booted simulator has no Orca or Expo development build installed; this is a behavior-preserving extraction with styles, copy, and native JSX elements unchanged.
CI state
The replacement run passes mobile verification, typecheck, review, and 7/8 generic test shards, including the repaired shard 4/8 source pin. Two ancestor issues inherited from #17174 remain red:
import/no-cyclewarnings inpane-terminal-output-scheduler.tschild_processimport todaemon-launched-child.tswithout updating the boundary test allowlistThis branch does not touch either ancestor-owned surface.
Stacked on #17174.