Skip to content

Conversation

@TadeasKriz
Copy link
Contributor

No description provided.

Copy link

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 fixes Compose recomposition issues and improves the visual styling of the first-run conference selector dialog.

  • Wraps the single-conference auto-selection in LaunchedEffect to prevent repeated execution during recomposition
  • Replaces manual Column styling with Surface composable for proper Material Design theming
  • Removes unused imports that were added but not utilized

Reviewed Changes

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

File Description
MainComposeView.kt Wraps single-conference selection in LaunchedEffect to ensure it only executes once and uses first() instead of get(0)
FirstRunConferenceSelector.kt Refactors dialog styling to use Surface composable and adds explicit text color for better theming

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


import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.isSystemInDarkTheme
Copy link

Copilot AI Oct 29, 2025

Choose a reason for hiding this comment

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

The isSystemInDarkTheme import is unused and should be removed. The code uses MaterialTheme.colorScheme for theming instead.

Suggested change
import androidx.compose.foundation.isSystemInDarkTheme

Copilot uses AI. Check for mistakes.
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.Dialog
import co.touchlab.droidcon.domain.entity.Conference
import co.touchlab.droidcon.ui.theme.DroidconTheme
Copy link

Copilot AI Oct 29, 2025

Choose a reason for hiding this comment

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

The DroidconTheme import is unused and should be removed. The dialog relies on MaterialTheme which is already provided by the parent composable hierarchy.

Suggested change
import co.touchlab.droidcon.ui.theme.DroidconTheme

Copilot uses AI. Check for mistakes.
@KevinSchildhorn
Copy link
Contributor

Screenshot_20251030_110140 Screenshot_20251030_110257

Looks Good

Copy link
Contributor

@KevinSchildhorn KevinSchildhorn left a comment

Choose a reason for hiding this comment

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

Just doing this as a test

Copy link
Contributor

@KevinSchildhorn KevinSchildhorn left a comment

Choose a reason for hiding this comment

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

LGTM

@TadeasKriz TadeasKriz merged commit e01757e into main Oct 30, 2025
1 check passed
@TadeasKriz TadeasKriz deleted the tk/RND-463 branch October 30, 2025 15:45
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