Skip to content

feat(phone-app): migrate Main destination search and navigation UI to Jetpack Compose #43

Description

@hungify

What to build

Migrate the Main destination search, route overview, turn-by-turn guidance, watch status, and navigation controls to a declarative Jetpack Compose Material 3 screen.

Acceptance criteria

  • Create MainScreen.kt featuring:
    • Search bar with live autocomplete dropdown/list for PlaceSuggestion items.
    • Travel mode selector (Motorbike/Driving vs Walking).
    • Route overview card showing estimated duration, distance, and destination address.
    • Turn-by-turn steps list rendered via LazyColumn with active step highlighting and auto-scrolling.
    • Watch connection status banner with interactive retry / permission request button.
    • Navigation action button (Start / Stop Navigation) with dynamic status indicator.
    • Settings launcher icon button in the TopAppBar.
  • Connect reactive UI state with MainViewModel flows using collectAsStateWithLifecycle().
  • Update MainActivity to extend ComponentActivity and render MainScreen via setContent { WatchNavigatorTheme { ... } }.
  • Verify location permission request, Huawei Wear Engine auth prompt, and turn streaming workflows.
  • Pass all unit tests in MainViewModelTest and full build verification.

Blocked by

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentFully specified, ready for an AFK agent

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions