Skip to content

Conversation

@vinceglb
Copy link
Owner

No description provided.

# Conflicts:
#	sample/shared/src/nonWebMain/kotlin/io/github/vinceglb/filekit/sample/shared/ui/screens/debug/DebugScreen.nonWeb.kt
@vinceglb vinceglb merged commit 5da7508 into main Jan 15, 2026
3 checks passed
@vinceglb vinceglb deleted the fix/issue-415-platformfile-div branch January 15, 2026 19:13
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fe73924895

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

*/
public fun PlatformFile(base: PlatformFile, child: String): PlatformFile =
PlatformFile(base.toKotlinxIoPath() / child)
public expect fun PlatformFile(base: PlatformFile, child: String): PlatformFile

Choose a reason for hiding this comment

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

P1 Badge Provide Android actual for PlatformFile(base, child)

The new expect fun PlatformFile(base, child) is declared in nonWebMain, but Android depends on nonWebMain (see build-logic/convention/ConfigureKotlinMultiplatform.kt where androidMain depends on nonWebMain) and there is no Android actual implementation. As a result, Android builds will fail with an “expected/actual mismatch” when compiling the Android target, and the / operator on PlatformFile can’t be resolved for Android. This breaks ./gradlew assemble for Android consumers until an Android actual is added.

Useful? React with 👍 / 👎.

Comment on lines +58 to +62
val folderPicker = rememberDirectoryPickerLauncher(directory = null) { folder ->
scope.launch {
folder?.let {
debugPlatformTest(folder)
}

Choose a reason for hiding this comment

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

P2 Badge Restore button state after directory picker completes

The debug screen now launches the directory picker, but the callback only runs debugPlatformTest and never resets buttonState or updates files. Since onPrimaryButtonClick still sets buttonState to Loading, the UI remains stuck in the loading state after any pick/cancel, and the results list stays empty. This is a regression from the previous file picker behavior and makes the debug UI appear broken after one use.

Useful? React with 👍 / 👎.

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