Skip to main content

Overview

Tuturuuu Meet ships a native Flutter call implementation in apps/mobile/lib/features/meet/** backed by Cloudflare SFU (flutter_webrtc), the apps/meet-realtime room Durable Object WebSocket, Bearer-auth API routes under apps/web/src/app/api/v1/workspaces/[wsId]/meetings/**, and a nonce-authenticated InAppWebView collaboration bridge (apps/meet/src/features/call/components/native-collaboration.tsx). Web Meet (packages/meet-core/src/features/call/**, apps/meet/**, packages/realtime/src/meet/**) covers a broader set of classroom, engagement, AI, moderation, and guest-join workflows. This document records the current parity matrix, defines a shell-compliant mobile Meet concept aligned with AGENTS.md and apps/mobile/AGENTS.md, and sequences delivery into eight implementation slices.

Parity summary

Secondary web-only tools outside the 20 core rows (live-icebreaker, live-game, forms, breakouts under packages/meet-core/src/features/call/tools/live-activities/** and packages/realtime/src/meet/room-forms.ts, room-breakouts.ts) are also absent on mobile and follow the Activities Hub pattern defined in Slices 6–7.

Web vs. Mobile Parity Matrix

Mobile Meet Experience Concept

Current shell compliance gaps

AGENTS.md and apps/mobile/AGENTS.md establish four hard shell invariants for Flutter routes inside ShellPage:
  1. Single top navbar: Shell-contained screens inherit the shell background, top navbar title/actions, and header clearance, with no Back button in any top navbar.
  2. Floating bottom navbar owns Back: In-app Back lives exclusively in the shell’s floating dock (ShellDockBackZone) and deduped Android system Back (ShellPage._handleBackNavigation).
  3. No duplicate app bars or inner top SafeArea: Never stack a nested AppBar, body topbar, or second top SafeArea inside the shell body.
  4. Dock clearance & root-navigator boundary: Scrollable and pinned body content consumes shell-provided bottom MediaQuery.paddingOf(context).bottom clearance; explicit full-screen or canvas-owned flows open above the shell on the root navigator.
The current mobile Meet implementation breaks three of these rules:
  • apps/mobile/lib/features/meet/view/meet_native_room_page.dart mounts an inner Scaffold + SafeArea + MeetRoomContentHeader below the shell top navbar, producing a duplicate topbar and double top safe-area inset.
  • Its active-call GridView.builder and bottom control Wrap ignore shell-provided bottom MediaQuery clearance, creating overlap with the floating bottom dock.
  • apps/mobile/lib/features/meet/view/meet_collaboration_page.dart opens with Navigator.of(context).push and renders a nested Scaffold(appBar: AppBar(...)) inside the shell instead of opening above the shell on the root navigator.

Target shell architecture

1. Meetings Hub (Routes.meet)

  • Top navbar (shell-owned): Title Meet; ShellChromeActions registers New meeting (in-dock primary on compact phones), Join by code / QR (opens code entry + mobile_scanner sheet), Search, and Refresh.
  • Floating bottom navbar (shell-owned): ShellMiniNav provides leading Back (Routes.apps) and the Meet root destination.
  • Body: AppPageListView(kind: AppPageKind.root) inherits the shell background and floating-dock bottom clearance. Meeting cards include quick Join, Share, Edit, and Delete actions.

2. Pre-Join Lobby & Ended Review (Routes.meet?room=<code>)

  • Top navbar (shell-owned): ShellTitleOverride sets the room title and optional status subtitle (such as Waiting for host or Call ended). No inner Scaffold, no MeetRoomContentHeader, and no inner top SafeArea.
  • Floating bottom navbar (shell-owned): ShellChromeActions(onBack: _leave) keeps Back in ShellDockBackZone and Android system Back.
  • Body: Responsive lobby layout (AppPageListView on phones, two-column split on tablets) showing self video preview, mic/camera/audio-route toggles, editable display name (or guest name + Turnstile challenge), and primary Join button with full bottom dock clearance. Ended Review keeps AppPageListView for notes, transcript, recording playback, follow-up actions, rating, and costs.

3. Active Call Stage (Routes.meet?room=<code>, admitted)

  • Single top navbar (shell-owned):
    • ShellTitleOverride owns the room title (editable inline via onTitleSubmitted for hosts), live subtitle (remaining time + active recording/Room Mira indicator), and showAvatar: false.
    • ShellChromeActions.actions owns compact trailing actions: Participants (with waiting-room badge), Share/QR, and Settings. No top-bar Back button and no body topbar.
  • Single floating bottom navbar (shell-owned ShellDockActionGroup):
    • Published through ShellChromeActions(actionGroup: ..., onBack: _leave) so Meet reuses the shell’s single floating dock material and geometry without mounting a second control bar.
    • Leading Back zone (ShellDockBackZone): Owned by the floating dock; triggers host leave/end sheet or participant leave.
    • Center dock pill (actions): Four high-frequency controls — Microphone, Camera, Chat & Mira (with unread/review badge), and Activities (with active-tool badge), plus the shell-managed More button.
    • Trailing primary circle (primary): Leave / End call (destructive: true), swapping to Stop sharing while screen capture is active so stopping capture stays one tap away.
    • Dock More sheet (more sections):
      1. Media: Switch camera, Audio output route, Share screen, Room Mira voice audio, Notification sound.
      2. Interaction: Raise hand, Reactions, Pinned Join QR, Follow & Summon.
      3. Room: Recording start/stop, Call settings, Estimated costs.
  • Stage viewport & clearance:
    • Modeled on MeetPhoneCallLayout (packages/meet-core/src/features/call/components/meet-phone-call-layout.tsx): primary spotlight tile (active speaker or remote shared screen), draggable 104dp self-PiP corner tile, and a compact horizontal secondary strip (next participants + Mira presence + +N overflow).
    • Non-blocking floating banners inside the stage viewport handle Room Mira active notice, Follow/Summon prompt or leader bar, live recording badge, and Pinned Join QR chip — positioned above MediaQuery.paddingOf(context).bottom so the floating dock never obscures tiles or controls.

4. Sheets & Full-Screen Canvases

  • Adaptive Bottom Sheets (showAdaptiveSheet(..., useRootNavigator: true)): Used for Chat & Private Mira, Participants & Admission, Activities Hub, Polls, Live Q&A, Flashcards, Quiz Arena, Timer, Upskii Presenter card, Follow & Summon target picker, Share & Short Links, and Settings. Sheets handle IME insets cleanly and dismiss via BackButtonListener / Navigator.maybePop.
  • Full-Screen Surfaces above the shell (Navigator.of(context, rootNavigator: true).push(..., fullscreenDialog: true)): Used for MeetCollaborationPage (Yjs Document, Co-Programming, Excalidraw Whiteboard) and fullscreen Present QR mode, following AssistantLiveCallScreen.show (apps/mobile/lib/features/assistant/view/assistant_live_call_screen.dart). Opening above the shell avoids stacking nested app bars inside ShellPage, keeps WebRTC audio/video alive underneath, and displays a compact return-to-call pill.

Ordered Implementation Slices

Slice 1 — Shell Compliance, Spotlight Stage & Dock Integration (M)

  • Scope: Remove the nested Scaffold, SafeArea, and MeetRoomContentHeader from MeetNativeRoomPage. Bind room title, countdown/status subtitle, and host rename (room.title.update) to ShellTitleOverride. Move active-call controls into ShellChromeActions.actionGroup (ShellDockActionGroup) with floating-dock Back ownership and bottom MediaQuery clearance. Push MeetCollaborationPage via Navigator.of(context, rootNavigator: true) with fullscreenDialog: true. Replace the flat participant grid on compact phones with a spotlight + self-PiP + secondary strip stage, and handle presence.delta in MeetCallController.
  • Files: apps/mobile/lib/features/meet/view/meet_native_room_page.dart, meet_room_content_header.dart (remove), meet_collaboration_page.dart, meet_participant_tile.dart, apps/mobile/lib/features/meet/data/meet_call_controller.dart; new meet_call_dock_group.dart, meet_stage_view.dart.
  • Server / API dependencies: None; consumes existing presence.delta and room.title.update on apps/meet-realtime.
  • Test plan: ShellPage widget harness tests asserting a single top navbar, zero inner AppBar/top SafeArea, floating-dock Back + Android system Back behavior, compact (390×844) and 1.5× text-scale dock clearance, root-navigator collaboration open/dismiss, and unit tests for presence.delta upsert/remove ordering.
  • Scope: Decouple room joins from WorkspaceCubit.currentWorkspace so signed-in invitees join any authorized room by code natively (removing the forced ?openInBrowser=1 workaround on shared links). Extend resolveMobileDeepLink for canonical /meet/<wsId>/meetings/<meetingId> and ttr.gg/meet/<code> URLs. Add Join-by-code and QR scan (mobile_scanner) to MeetPage. Build a native Share sheet backed by ttr.gg short links, staff vanity slugs, copy link, and root-navigator fullscreen Present QR (qr_flutter). Add the stage Pinned Join QR chip/card honoring joinQrVisible and joinQrAutoHide.
  • Files: apps/mobile/lib/core/router/deep_links.dart, apps/mobile/lib/core/config/meet_endpoints.dart, apps/mobile/lib/data/repositories/meet_repository.dart, apps/mobile/lib/features/meet/view/meet_portal_page.dart, meet_page.dart, meet_room_sheets.dart; new meet_share_sheet.dart, meet_stage_join_qr.dart, meet_join_code_sheet.dart; server route apps/web/src/app/api/v1/meetings/[meetingId]/realtime-token/route.ts.
  • Server / API dependencies: Add Bearer-auth workspace-agnostic POST /api/v1/meetings/[meetingId]/realtime-token using getMeetCallAccessForUser; verify resolveMeetShortLinkContext on apps/web/src/app/api/v1/workspaces/[wsId]/meetings/[meetingId]/short-links/** accepts mobile Bearer auth; verify Universal/App Link domain association for ttr.gg/meet/* (requires release-authority approval if DNS/well-known routes change).
  • Test plan: Unit tests for resolveMobileDeepLink across meet.tuturuuu.com, tuturuuu.com/meet, canonical meeting paths, ttr.gg/meet/*, and openInBrowser opt-outs; repository tests for short-link CRUD and cross-workspace token resolution; widget tests for Pinned Join QR minimize/auto-hide and Present QR dismissal.

Slice 3 — Participants Moderation, In-Call Settings & Media Controls (M)

  • Scope: Expand participants management with bulk admit/decline all (admission.decideAll), promote co-host (participant.promote), video/screen mute & room.mediaOverride, room-wide permission toggles, roster search/filter, guest/external badges, and attendance view. Open Call Settings to every participant with self display-name rename (participant.rename), audio output route picker (speaker/earpiece/Bluetooth), bandwidth/video quality preference, connection diagnostics (media.quality.read), and sound toggle; expose host activity-access mode, default activity, and public/event-mode controls.
  • Files: apps/mobile/lib/features/meet/data/meet_call_controller.dart, meet_native_media.dart, apps/mobile/lib/features/meet/view/meet_room_sheets.dart; new meet_participants_sheet.dart, meet_settings_sheet.dart, meet_media_quality_sheet.dart.
  • Server / API dependencies: Existing WS messages cover moderation, rename, settings, and media.quality.read; add Bearer-auth GET /api/v1/meetings/[meetingId]/attendance if the attendance roster/export is surfaced on mobile.
  • Test plan: Signaling unit tests for all new WS commands/replies; widget tests checking role gating (host vs. co-host vs. speaker vs. viewer) on controls; device test pass for iOS/Android Bluetooth and speakerphone route switching.

Slice 4 — Guest Join & Unauthenticated Lobby Parity (M)

  • Scope: Permit unauthenticated users opening a Meet deep link or Join-by-code flow to enter the Meet lobby without signing in. Implement guest display-name entry, cloudflare_turnstile human verification when required, waiting-room status, guest.eventRejoinRequired recovery, and optional sign-in upgrade from the lobby.
  • Files: apps/mobile/lib/core/router/app_router.dart, app_router_access_redirects.dart, apps/mobile/lib/features/meet/data/meet_guest_session.dart, meet_call_controller.dart, apps/mobile/lib/features/meet/view/meet_guest_lobby_page.dart, meet_native_room_page.dart.
  • Server / API dependencies: Public (cookie-free) mobile endpoints under /api/v1/meetings/[meetingId]/public-info and /api/v1/meetings/[meetingId]/guest/** mirroring apps/meet/src/app/api/meet-call/[meetingId]/public-info and /guest/**, returning a short-lived guest realtime token after Turnstile/rate-limit checks.
  • Test plan: Router redirect tests verifying unauthenticated /meet?room=<code> opens the guest lobby instead of forcing sign-in; Turnstile failure/retry and rate-limit tests; waiting-room admit, deny, remove, and guest.eventRejoinRequired unit/widget tests.

Slice 5 — Room Chat Enhancements & Full Mira Parity (L)

  • Scope: Add chat file attachments (attachmentIds), participant avatars, guest/external identity badges, unread badge count on the dock Chat button, idempotent clientMessageId, and /mira command suggestions. Add host Room Mira on/off control, starting/stopping Room Mira live voice sessions from mobile (reusing AssistantLiveRecorder and MeetRoomAudio), Private Mira live voice & opt-in tutor-chat sharing chip, Mira account/memory/audience settings, and Mira draft preview cards.
  • Files: apps/mobile/lib/features/meet/data/meet_personal_chat.dart, meet_room_assistant.dart, meet_room_audio.dart, new meet_live_voice_controller.dart, apps/mobile/lib/features/meet/view/meet_room_sheets.dart, meet_personal_chat_panel.dart, meet_room_mira_notice.dart, new meet_chat_attachments.dart, meet_mira_settings_sheet.dart.
  • Server / API dependencies: Bearer-auth routes under apps/web/src/app/api/v1/meetings/[meetingId]/ (or workspace-scoped equivalents) mirroring apps/meet /files, /mira-room, /meet-live/[meetingId], /meet-live/memory, and /meet-mira/account, enforcing resolveSessionAuthContext and Mira AI data consent.
  • Test plan: Consent-gate refusal/retry tests across private, room, and voice Mira paths; attachment MIME/size validation tests; unread counter & chat-open reset tests; MeetRoomAudio interruption/mute recovery tests.

Slice 6 — Native Activities Hub: Timer, Polls, Live Q&A, Follow & Summon (L)

  • Scope: Add a shell-compliant Activities Hub sheet triggered from the dock and implement native Flutter surfaces for the highest-frequency live meeting tools: unified Room & Personal Timer (classTimer / classTimer.command), Polls (ballot, live results, host composer, stage poll toast), Live Q&A (question composer, upvoting, answers, host on-screen pin banner), and Follow & Summon (navigation / navigation.request handling forced host summons, consent prompts, leader status bar, and target selection).
  • Files: New apps/mobile/lib/features/meet/activities/ (meet_activities_sheet.dart, meet_timer_controller.dart, meet_timer_sheet.dart, meet_polls_sheet.dart, meet_qa_controller.dart, meet_qa_sheet.dart, meet_navigation_controller.dart, meet_follow_banner.dart, meet_summon_sheet.dart); updates to meet_call_controller.dart and meet_native_room_page.dart.
  • Server / API dependencies: Timer, Live Q&A, and Follow & Summon run on the existing apps/meet-realtime WebSocket protocol; Polls requires a Bearer-auth /api/v1/meetings/[meetingId]/polls route mirroring apps/meet/src/app/api/meet-call/[meetingId]/polls/route.ts.
  • Test plan: Protocol tests for classTimer, liveQa.*, polls.changed, and navigation (forced vs. consent, activity deep-open); compact-viewport widget tests with IME keyboard open for poll and Q&A creation.

Slice 7 — Learning & Creation Activities: Whiteboard, Flashcards, Quiz Arena, Assessments & Upskii (L)

  • Scope: Extend NativeCollaboration and MeetCollaborationPage (root-navigator fullscreen) to support the Tuturuuu Whiteboard (Excalidraw saved board + pen-board fallback with guest view-only enforcement) and Mira code-fix diffs in Co-Programming. Add native Flutter sheets for Flashcards, Quiz Arena (join, timed answers, live leaderboard), Live Assessments, and Upskii Presenter (item title, QR code, strict https://app.upskii.com origin-checked external launch, and host picker for linked Upskii accounts).
  • Files: apps/meet/src/features/call/components/native-collaboration.tsx, apps/web/src/app/api/v1/meetings/[meetingId]/collaboration/route.ts, apps/mobile/lib/features/meet/view/meet_collaboration_page.dart, apps/mobile/lib/features/meet/data/meet_collaboration_policy.dart; new apps/mobile/lib/features/meet/activities/ (meet_flashcards_sheet.dart, meet_quiz_arena_sheet.dart, meet_assessment_sheet.dart, meet_upskii_sheet.dart).
  • Server / API dependencies: Extend /api/v1/meetings/[meetingId]/collaboration with whiteboard ticket/list/link actions; add Bearer-auth /api/v1/meetings/[meetingId]/quiz-arena and Upskii content catalog route (reusing @tuturuuu/internal-api/upskii-content); Flashcards, Assessments, and Upskii presentation state use existing WS messages (liveActivity.*, upskii.*).
  • Test plan: Bridge security tests (meet_collaboration_policy_test.dart) verifying nonce/origin/action allowlist for whiteboard; strict Upskii URL-origin and redirect-param rejection unit tests; widget tests for Quiz Arena countdown/scoring and Flashcards deck state.

Slice 8 — Recording Controls, Live Per-Speaker Transcription & Post-Call Follow-ups (M)

  • Scope: Add host and permitted-participant recording start/stop controls with a live recording stage indicator and saved-recording audio playback in MeetEndedReview. Add per-speaker live transcription consent prompt and opt-in audio chunk upload (transcription.consent / transcription.state + self-capture routes) gated on confirmed device echo cancellation. Extend MeetEndedReview with manual follow-up task creation, AI follow-ups view, post-call meeting rating, and host notes-visibility controls.
  • Files: New apps/mobile/lib/features/meet/data/meet_recording_controller.dart, meet_transcription_controller.dart; updates to apps/mobile/lib/features/meet/view/meet_ended_review.dart, meet_review_transcript.dart, meet_native_room_page.dart, apps/mobile/lib/data/repositories/meet_repository.dart.
  • Server / API dependencies: Existing Bearer routes /api/v1/workspaces/[wsId]/meetings/[meetingId]/record, /recordings/**, and /review cover recording control and playback; add Bearer-auth routes mirroring apps/meet /transcript-consent, /meet-ai/[wsId]/[meetingId]/self/*, /meet-ai/[wsId]/[meetingId]/followups, and /rating.
  • Test plan: Controller tests for recording state transitions, transcription consent opt-in/out, upload retry + durable stop fence on call exit; widget tests for MeetEndedReview playback controls, rating submit, and follow-up task creation.