Skip to content

Zzx/feature/map nav3#578

Merged
985892345 merged 6 commits into
developfrom
zzx/feature/map_nav3
Jun 7, 2026
Merged

Zzx/feature/map nav3#578
985892345 merged 6 commits into
developfrom
zzx/feature/map_nav3

Conversation

@generalio

Copy link
Copy Markdown
Contributor

map的nav3迁移

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the “map” feature to the new Navigation3-based NavEntry architecture, including bottom-sheet overlays and updated back-handling, and updates other modules’ entry points accordingly.

Changes:

  • Replace legacy route-based Map entry usage with MapNavArgument navigation and add the required module dependency.
  • Refactor Map’s Search / PlaceDetail bottom sheets into NavEntry-driven overlay content using LocalBottomSheetScope.
  • Introduce a cross-subtree ViewModel/argument bridge (MapVmHolder) and migrate back handling to androidx.navigationevent.

Reviewed changes

Copilot reviewed 147 out of 187 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
cyxbs-pages/ufield/src/androidMain/kotlin/com/cyxbs/pages/ufield/ui/activity/DetailActivity.kt Switches “open map” action to the new Map navigation entry point.
cyxbs-pages/ufield/build.gradle.kts Adds dependency on cyxbsPages.map.api so ufield can reference MapNavArgument.
cyxbs-pages/map/src/commonMain/kotlin/com/cyxbs/pages/map/widget/SearchBottomSheet.kt Extracts Search bottom-sheet inner content and switches draggable handling to LocalBottomSheetScope.
cyxbs-pages/map/src/commonMain/kotlin/com/cyxbs/pages/map/widget/PlaceDetailBottomSheet.kt Extracts PlaceDetail bottom-sheet inner content and switches draggable handling to LocalBottomSheetScope.
cyxbs-pages/map/src/commonMain/kotlin/com/cyxbs/pages/map/viewmodel/MapComposeViewModel.kt Minor formatting plus removal of the unused VR jump hook.
cyxbs-pages/map/src/commonMain/kotlin/com/cyxbs/pages/map/ui/SearchCompose.kt Migrates from custom backHandler modifier to NavigationBackHandler.
cyxbs-pages/map/src/commonMain/kotlin/com/cyxbs/pages/map/ui/MapVmHolder.kt Adds a holder to share Map VM / owner / arguments across NavEntry subtrees (for overlay sheets).
cyxbs-pages/map/src/commonMain/kotlin/com/cyxbs/pages/map/ui/MapNavEntry.kt Publishes shared VM scope, migrates back handling, hosts overlay sheet entries, and switches VR jump to AppScheme.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 141 to 143
layoutMap.setOnClickListener {
startActivity(DISCOVER_MAP)
MapNavArgument().navigate()
}
@985892345 985892345 merged commit ce73691 into develop Jun 7, 2026
4 checks passed
@985892345 985892345 deleted the zzx/feature/map_nav3 branch June 7, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants