← Back to Roadmap

Priority 0A: Unified Dashboard Codebase (Mobile + Web)

P0A — Critical 5-7 days Frontend lead

The Problem

Mobile and web share ZERO code. Two completely separate codebases, different frameworks, different component libraries. As web dashboard evolves rapidly, mobile falls behind immediately.

Current State

Web (packages/web/)Mobile (packages/mobile/)
FrameworkNext.js 15 + React 19Expo 53 + React Native 0.79
StylingTailwind 4React Native StyleSheet
BuildViteMetro
NavigationNext.js App RouterReact Navigation 6
UI librarycustom componentsNone (custom)
Shared codeNone

Web Screens

Dashboard, SessionCard, SessionDetail, Terminal, ProjectSidebar, CIBadge, PRStatus, ActivityDot, DynamicFavicon

Mobile Screens

HomeScreen, OrchestratorScreen, SessionDetailScreen, CommandsScreen, SettingsScreen, TerminalScreen, SpawnSessionScreen

How Competitors Solve This

ToolApproachStack
GooseElectron desktop + web. Single React codebase.React 19 + Radix + Tailwind + Electron Forge + Vite
1codeElectron desktop. Single React codebase serves desktop + web.React 19 + Radix + electron-vite + electron-toolkit
emdashDesktop app (Electron/Tauri). Single codebase.Electron or Tauri
1code (mobile)PWA — Progressive Web App from same codebaseSame React app, installable on phone
Key insight: No major competitor maintains a separate React Native mobile app. They either use Electron (desktop + web from same code) or PWA (mobile web installable on phone). A PWA approach means zero separate mobile codebase.

Recommended Approach: Shared Package + PWA

Don't try to merge React Native and Next.js. Instead:

Audit shared vs unique components

Map which components exist in both codebases and which are platform-specific:

ComponentWebMobileShareable?
Session CardSessionCard.tsxHomeScreen (inline)Yes — data + logic
Session DetailSessionDetail.tsxSessionDetailScreen.tsxYes — data + logic
TerminalTerminal.tsx + DirectTerminal.tsxTerminalScreen.tsxPartial — API layer
Project SidebarProjectSidebar.tsxOrchestratorScreen.tsxYes — data + logic
CI BadgeCIBadge.tsx—Yes (missing from mobile)
PR StatusPRStatus.tsx—Yes (missing from mobile)
Spawn Session—SpawnSessionScreen.tsxYes (missing from web)

Create packages/shared/

Extract into a shared package:

  • Types: All TypeScript interfaces (Session, Agent, Project, etc.)
  • API client: Shared HTTP/WebSocket client for talking to AO backend
  • Hooks: useSession(), useSessions(), useProject(), useAgentStatus()
  • State management: Shared store (zustand or similar)
  • Utils: Time formatting, status colors, log parsing
packages/shared/
├── src/
│   ├── types/          # SessionConfig, AgentStatus, etc.
│   ├── api/            # AO API client (REST + WebSocket)
│   ├── hooks/          # React hooks (framework-agnostic)
│   ├── store/          # Zustand stores
│   └── utils/          # Formatters, parsers
├── package.json        # @composio/ao-shared
└── tsconfig.json

Migrate web dashboard to use @composio/ao-shared

Replace inline types, API calls, and hooks with imports from shared package. Web keeps its own UI components (Radix + Tailwind).

Migrate mobile to use @composio/ao-shared

Replace mobile's inline types and API calls with shared package imports. Mobile keeps its own React Native UI components.

Add PWA support to web dashboard

Make the web dashboard installable on mobile devices:

  • Add manifest.json with app name, icons, theme color
  • Add service worker for offline caching
  • Make responsive layout work on phone screens
  • Add push notifications (replace Expo notifications)

This gives mobile users the full dashboard without maintaining a separate React Native app.

Evaluate deprecating separate mobile app

Once PWA is solid, evaluate if the React Native app is still needed. If PWA covers all use cases:

  • Archive packages/mobile/
  • One codebase, one build pipeline, one set of features
  • Like 1code: desktop app + PWA, no separate native mobile

Alternative: React Native Web

Instead of PWA, you could go the React Native Web route — use Expo Web to share React Native components on web. But this means:

Not recommended. The web dashboard is more mature. Build around it, not against it.

Effort Breakdown

Sub-taskEffort
Audit components0.5 days
Create packages/shared/ with types + API + hooks2 days
Migrate web to shared1 day
Migrate mobile to shared1 day
PWA support1-2 days
Total5-7 days

Acceptance Criteria