say hi to the new, shiny UI of the YAML-to-Kotlin ...
# github-workflows-kt
p
say hi to the new, shiny UI of the YAML-to-Kotlin script-generator! 😄 https://github-workflows-kt.colman.com.br/ a super-quick and hacky version, just to get started with something
K 1
🎉 2
thanks @LeoColman for hosting it!
a
congrats!
p
TODO: • make it a bit nicer, at least wider text fields! I’m planning to tinker with MUI • add a note that the data is sent to the backend but it’s not logged there • sync the script-generator logic with the newest version of the library • once more mature, share it in the docs
a
YAML goes on the left, Kotlin comes out on the right?
p
yes
try a minimal input:
Copy code
name: Test
on:
    push:
a
this file doesn’t seem to work
p
yeah, way too complex for the current logic of the script generator (CC @jmfayard)
the script-generator needs to be updated to be in sync with the newest version of the library
a
I’m not a very good web-dev, but I would guess that the
.gradle
directory shouldn’t be there?
p
I’m fairly sure it’s just the way the source maps have the path encoded
a
ahh I see, so the files aren’t really there, but they are in the source map so Chrome shows them anyway?
p
yes, e.g. such path exists in the source maps (
script-generator/web/build/resources/ui.js.map
):
Copy code
"<webpack://ui/../../../../../../../.gradle/daemon/8.1.1/Z:/BuildAgent/work/b2fef8360e1bcf3d/core/commonMain/src/kotlinx/serialization/descriptors/SerialDescriptor.kt>"
FTR, this UI is built with React with an intent to further use MUI, but I’m also thinking about using Compose for Web. If anyone would like to play with it, feel free to do so, just let me know so that we don’t duplicate the work
j
that’s awesome
a
Worth adding the Monaco Editor? https://github.com/microsoft/monaco-editor
p
I thought of it as well, but I'm planning to migrate to Compose for Web so I'll use the editor component a bit later