Skip to content

Unwrap AppSettingsDesign#130

Merged
Goooler merged 1 commit into
trunkfrom
unwrap-app-settings
Apr 23, 2026
Merged

Unwrap AppSettingsDesign#130
Goooler merged 1 commit into
trunkfrom
unwrap-app-settings

Conversation

@Goooler
Copy link
Copy Markdown
Owner

@Goooler Goooler commented Apr 23, 2026

Refs #119.

@Goooler Goooler requested a review from Copilot April 23, 2026 14:24
@Goooler Goooler force-pushed the unwrap-app-settings branch from dd2d709 to 0bdfe71 Compare April 23, 2026 14:26
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

Note

Copilot was unable to run its full agentic suite in this review.

Refactors the App Settings UI by removing the old Design wrapper and moving state/side-effects into a dedicated AppSettingsViewModel (refs #119).

Changes:

  • Added AppSettingsViewModel to own settings state and apply changes to stores/PackageManager.
  • Reworked AppSettingsScreen into a ViewModel-driven Compose screen (AppSettingsContent + collectAsStateWithLifecycle).
  • Simplified AppSettingsActivity to a Compose setContent host.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
app/src/main/kotlin/com/github/kr328/clash/settings/vm/AppSettingsViewModel.kt New ViewModel to manage settings state and apply platform side-effects (auto-restart, hide icon).
app/src/main/kotlin/com/github/kr328/clash/settings/ui/AppSettingsScreen.kt Replaces AppSettingsDesign with a ViewModel-backed Compose screen and stateless content composable.
app/src/main/kotlin/com/github/kr328/clash/settings/AppSettingsActivity.kt Drops DesignActivity loop/event handling; hosts Compose screen directly.

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

@Goooler Goooler force-pushed the unwrap-app-settings branch from a14944f to 5fa996e Compare April 23, 2026 14:39
@Goooler Goooler requested a review from Copilot April 23, 2026 14:39
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

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


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

@Goooler Goooler merged commit e45869d into trunk Apr 23, 2026
3 checks passed
@Goooler Goooler deleted the unwrap-app-settings branch April 23, 2026 14:51
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