Skip to content

♻️ Improve UI and dependency injection redundant.#887

Merged
SorrowBlue merged 2 commits intomainfrom
feature/886-improve-ui-and-dependency-injection-redundant
Sep 12, 2025
Merged

♻️ Improve UI and dependency injection redundant.#887
SorrowBlue merged 2 commits intomainfrom
feature/886-improve-ui-and-dependency-injection-redundant

Conversation

@SorrowBlue
Copy link
Copy Markdown
Owner

@SorrowBlue SorrowBlue commented Sep 12, 2025

Fixes #886

@SorrowBlue SorrowBlue requested a review from Copilot September 12, 2025 22:13
@SorrowBlue SorrowBlue self-assigned this Sep 12, 2025
@SorrowBlue SorrowBlue added the type: ♻️refactor 「コードの内部的な改善(機能変更なし)」[Internal improvements to the code (no feature changes)] label Sep 12, 2025
@SorrowBlue SorrowBlue linked an issue Sep 12, 2025 that may be closed by this pull request
@github-actions github-actions Bot added the type: ✨feature 「新しい機能の提案や実装」[Proposals and implementation of new features] label Sep 12, 2025
@SorrowBlue SorrowBlue removed the type: ✨feature 「新しい機能の提案や実装」[Proposals and implementation of new features] label Sep 12, 2025
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 improves UI components and addresses dependency injection redundancy in the ComicViewer Kotlin Multiplatform project. The changes focus on upgrading Compose UI dependencies, streamlining dependency injection patterns, and removing redundant code.

Key Changes:

  • Updated Compose UI libraries and Android dependencies to newer versions
  • Unified dependency injection patterns by removing redundant expect/actual declarations
  • Removed deprecated shared element animations and simplified UI transition code

Reviewed Changes

Copilot reviewed 28 out of 28 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
gradle/libs.versions.toml Updated dependency versions for Compose UI, Core Splashscreen, and Navigation Compose
framework/ui/src/commonMain/kotlin/com/sorrowblue/comicviewer/framework/ui/NotificationManager.kt Added PlatformContext parameter to expect class declaration
framework/ui/src/androidMain/kotlin/com/sorrowblue/comicviewer/framework/ui/NotificationManager.android.kt Updated to use PlatformContext instead of Android Context
framework/ui/src/iosMain/kotlin/com/sorrowblue/comicviewer/framework/ui/NotificationManager.ios.kt Added PlatformContext constructor parameter
framework/ui/src/desktopMain/kotlin/com/sorrowblue/comicviewer/framework/ui/NotificationManager.desktop.kt Added PlatformContext constructor parameter
framework/ui/src/commonMain/kotlin/com/sorrowblue/comicviewer/framework/ui/canonical/PrimaryActionButton.kt Removed shared element animations and improved FAB configuration
framework/ui/src/commonMain/kotlin/com/sorrowblue/comicviewer/framework/ui/animation/Transition.kt Simplified transition animations by removing custom timing specifications
data/storage/device/src/commonMain/kotlin/com/sorrowblue/comicviewer/data/storage/device/impl/DeviceFileClient.kt Removed expect class declaration (moved implementation to platform-specific files)
data/storage/device/src/androidMain/kotlin/com/sorrowblue/comicviewer/data/storage/device/impl/DeviceFileClient.android.kt Removed actual keyword from class declaration
composeApp/src/commonMain/kotlin/com/sorrowblue/comicviewer/app/AppModule.kt Updated Koin module configuration with new annotations

},
content = content,
modifier = modifier
// TODO FloatingActionButtonMenuの余分なPadding対策
Copy link

Copilot AI Sep 12, 2025

Choose a reason for hiding this comment

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

The TODO comment is in Japanese. According to the coding standards, comments should be in English for consistency and maintainability in a multilingual development environment.

Suggested change
// TODO FloatingActionButtonMenuの余分なPadding対策
// TODO: Address the extra padding in FloatingActionButtonMenu

Copilot uses AI. Check for mistakes.
easing = LinearOutSlowInEasing,
),
)
// + materialFadeThroughIn()
Copy link

Copilot AI Sep 12, 2025

Choose a reason for hiding this comment

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

These commented-out code lines should either be removed if they're no longer needed or replaced with proper TODO comments if they represent future functionality. Leaving commented code without explanation reduces code clarity.

Copilot uses AI. Check for mistakes.
easing = FastOutLinearInEasing,
),
)
// + materialFadeThroughOut()
Copy link

Copilot AI Sep 12, 2025

Choose a reason for hiding this comment

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

These commented-out code lines should either be removed if they're no longer needed or replaced with proper TODO comments if they represent future functionality. Leaving commented code without explanation reduces code clarity.

Copilot uses AI. Check for mistakes.
easing = LinearOutSlowInEasing,
),
)
// + materialFadeThroughIn()
Copy link

Copilot AI Sep 12, 2025

Choose a reason for hiding this comment

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

These commented-out code lines should either be removed if they're no longer needed or replaced with proper TODO comments if they represent future functionality. Leaving commented code without explanation reduces code clarity.

Copilot uses AI. Check for mistakes.
easing = FastOutLinearInEasing,
),
)
// + materialFadeThroughOut()
Copy link

Copilot AI Sep 12, 2025

Choose a reason for hiding this comment

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

These commented-out code lines should either be removed if they're no longer needed or replaced with proper TODO comments if they represent future functionality. Leaving commented code without explanation reduces code clarity.

Copilot uses AI. Check for mistakes.
@github-actions github-actions Bot added the type: ✨feature 「新しい機能の提案や実装」[Proposals and implementation of new features] label Sep 12, 2025
@SorrowBlue SorrowBlue merged commit fbeb7fa into main Sep 12, 2025
22 checks passed
@SorrowBlue SorrowBlue deleted the feature/886-improve-ui-and-dependency-injection-redundant branch September 12, 2025 23:40
@SorrowBlue SorrowBlue removed the type: ✨feature 「新しい機能の提案や実装」[Proposals and implementation of new features] label Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: ♻️refactor 「コードの内部的な改善(機能変更なし)」[Internal improvements to the code (no feature changes)]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve UI and dependency injection redundant

2 participants