Skip to content

refactor(desktop-shared, shared): update Compose Material3 usage and fix type inference - #729

Merged
haiphucnguyen merged 1 commit into
mainfrom
feature/improvements
Sep 23, 2026
Merged

haiphucnguyen merged 1 commit into
mainfrom
feature/improvements

Conversation

@haiphucnguyen

Copy link
Copy Markdown
Collaborator

Summary

Related Issue(s)

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 📝 Documentation
  • ♻️ Refactor (no functional change)
  • 🧪 Tests
  • 🔧 Chore / tooling / CI

What Changed & Why

  • Updated OnboardingWizardDialog.kt to use Compose Material3 components and styles.
  • Replaced AppColors.primaryTextButtonColors() with ButtonDefaults.textButtonColors(contentColor = LocalContentColor.current).

How to Test

./gradlew test

Screenshots / Recordings (if applicable)

Checklist

  • I have read the CONTRIBUTING guide
  • My branch is up to date with main
  • I ran ./gradlew spotlessApply and ./gradlew detekt locally
  • I ran ./gradlew test and all tests pass
  • I added/updated tests for my changes (if applicable)
  • I added/updated documentation (if applicable)
  • My commits are signed off (DCO) — git commit -s
  • This PR is focused on a single feature/fix

Additional Notes

…fix type inference

- Updated `OnboardingWizardDialog.kt` to use Compose Material3 components and styles.
- Replaced `AppColors.primaryTextButtonColors()` with `ButtonDefaults.textButtonColors(contentColor = LocalContentColor.current)`.
- Fixed type inference issue in `ChatRequestTransformers.kt` by removing unnecessary casting.
Copilot AI lite review requested due to automatic review settings September 23, 2026 16:41

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.

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review effort: Lite
Findings: None

What changed in this PR

Updates Compose Material3 onboarding UI styling and simplifies tool-request ID handling.

Changes:

  • Applies shared Material3 theme tokens and components.
  • Updates onboarding controls, icons, dividers, and buttons.
  • Removes an unnecessary nullable cast.
File Description
shared/​src/​main/​kotlin/​io/​askimo/​core/​providers/​ChatRequestTransformers.kt Simplifies tool-request ID handling.
desktop-shared/​src/​main/​kotlin/​io/​askimo/​ui/​onboarding/​OnboardingWizardDialog.kt Aligns onboarding UI with shared Material3 styling.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@haiphucnguyen
haiphucnguyen merged commit 082a391 into main Sep 23, 2026
9 of 11 checks passed
@haiphucnguyen
haiphucnguyen deleted the feature/improvements branch September 23, 2026 16:44
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