Skip to content

New gallery UI implementation #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 37 commits into
base: main
Choose a base branch
from
Open

New gallery UI implementation #56

wants to merge 37 commits into from

Conversation

eymar
Copy link
Collaborator

@eymar eymar commented Apr 2, 2025

Highlights:

  • Added a new module "gallery-demo" to see and test the changes without full publication. It doesn't use the storytale gradle plugin. It can be run using ./gradlew :gallery-demo:wasmJsBrowserDevelopmentRun
  • web-specific configuration in the gradle plugin is not compatible with Kotlin 2.1.20 - I left a TODO for now. It won't work for now.
Screenshot 2025-04-02 at 12 07 42

@@ -30,8 +30,14 @@ dependencyResolutionManagement {
}
}

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.9.0"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added for hot-reload on jvm/deskop: https://github.com/JetBrains/compose-hot-reload

@eymar eymar requested a review from JSMonk April 2, 2025 12:06
@@ -0,0 +1,122 @@
import org.jetbrains.compose.reload.ComposeHotRun
Copy link
Member

Choose a reason for hiding this comment

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

I have a small question related to this module. We have the example one, which contains an example of the demo. Was it intentional to create a new one instead of re-using the example?

operator fun provideDelegate(thisRef: Any?, property: KProperty<*>) = also {
story.nameToParameterMapping.getOrPut(property.name) {
StoryParameter(property.name, type) { remember { mutableStateOf(defaultValue) } }
StoryParameter(property.name, type) { mutableStateOf(defaultValue) }
Copy link
Member

Choose a reason for hiding this comment

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

I'd like to know (just for my education with Compose). Why don't we need remember here?

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