Skip to content

Rename main project to home#194

Merged
Goooler merged 1 commit intotrunkfrom
rename-main-to-entry
May 6, 2026
Merged

Rename main project to home#194
Goooler merged 1 commit intotrunkfrom
rename-main-to-entry

Conversation

@Goooler
Copy link
Copy Markdown
Owner

@Goooler Goooler commented May 6, 2026

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

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 completes the renaming of the “main” UI feature/module to “home”, aligning navigation routes, ViewModel/screen naming, and theme dimension tokens with the new “home” naming across the app.

Changes:

  • Replaced MainRoute/mainEntries with HomeRoute/homeEntries and updated MainActivity back stack defaults accordingly.
  • Renamed main feature UI/ViewModel packages and composables (MainScreenHomeScreen, MainViewModelHomeViewModel, etc.).
  • Renamed theme dimension fields from main* to home* and introduced the :ui:home module dependency in Gradle.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
ui/src/main/kotlin/com/github/kr328/clash/ui/theme/Theme.kt Renames “main” dimension tokens to “home” to match the feature rename.
ui/home/src/main/kotlin/com/github/kr328/clash/home/vm/HomeViewModel.kt Updates package and ViewModel class name to home/HomeViewModel.
ui/home/src/main/kotlin/com/github/kr328/clash/home/ui/HomeScreen.kt Renames screen composables and updates dimension token usage/imports for the home feature.
ui/home/src/main/kotlin/com/github/kr328/clash/home/ui/HelpScreen.kt Updates package to the new home.ui namespace.
ui/home/src/main/kotlin/com/github/kr328/clash/home/HomeNav.kt Renames navigation route types and entry provider function to HomeRoute/homeEntries.
ui/home/build.gradle.kts Adds Gradle configuration for the new :ui:home module.
settings.gradle.kts Includes :ui:home and removes :ui:main from the build.
app/src/main/kotlin/com/github/kr328/clash/MainActivity.kt Switches app navigation wiring from main routes/entries to home routes/entries.
app/build.gradle.kts Replaces dependency on projects.ui.main with projects.ui.home.

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

@Goooler Goooler merged commit e095fde into trunk May 6, 2026
7 checks passed
@Goooler Goooler deleted the rename-main-to-entry branch May 6, 2026 09:53
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.

2 participants