mirror of
https://github.com/stablyai/orca.git
synced 2026-10-31 17:17:38 +00:00
* fix(mobile): wall hosts that cannot serve the page instead of opening native screens * refactor(mobile): drop the native-route state and the shell fallback prop; unknown routes say unavailable * test(mobile): read the nullable page route refusal in its policy test * refactor(mobile): every build is the OTA shell; drop the native/OTA build switch The owner retired the native-screen fallback with no emergency native build, so EXPO_PUBLIC_MOBILE_SHELL, mobileShellBuildKind, shellSwitchDecision, the Metro cache-key suffix and both release workflows' shell input go. Every host route mounts the shell; a route naming no screen the shell could open gets the existing refusal screen instead of a native screen. Claude-Session: https://claude.ai/code/session_6cea92f6 * refactor(mobile): drop the dead web route, flag-era comments and the one-value shell kind The host route files no longer switch, so their comments say what they do now: a route naming no screen shows the unavailable screen. app/h/[hostId]/web.tsx duplicated index.tsx and nothing linked to it, so it and its stack entry go (the bundle sweep is re-measured: 77 scripts at 15 routes). Diagnostics print the bridge protocol on its own instead of a shell kind that has one value. Claude-Session: https://claude.ai/code/session_6cea92f6
13 lines
595 B
TypeScript
13 lines
595 B
TypeScript
import { MobileSessionSurface } from './MobileSessionSurface'
|
|
import { useMobileSessionController } from './use-mobile-session-controller'
|
|
|
|
/**
|
|
* The session screen as a component rather than a route module: the page's route file mounts it, and
|
|
* the native route file, which mounts the shell, cannot be imported by the page. Its params are read
|
|
* below this file, by the controller's foundation hook and the notification pane hook.
|
|
*/
|
|
export function MobileSessionRouteScreen() {
|
|
const controller = useMobileSessionController()
|
|
return <MobileSessionSurface controller={controller} />
|
|
}
|