Fork me on GitHub
#reagent
<
2023-01-09
>
Sam Ritchie17:01:11

Just about done with the interactive docs for my Reagent wrapper around the Leva declarative GUI library: https://leva.mentat.org/ this library lets you bind some atom or cursor bi-directionally with an interactive GUI that supports lots of different input types. everything is documented at https://leva.mentat.org/ via an interactive #C035GRLJEP8 notebook. I’d love feedback from the Reagent crew! if anyone is interested in testing this out, please let me know if it feels ergonomic, if the docs are helpful, etc.

p-himik18:01:19

Pretty cool! A few things I noticed: • Dragging the panel works weird. E.g. if you drag it somewhere and click on the title bar, it'll jump. Sometimes outside the boundaries of the window • The number input doesn't work well with floats. It's not only that it doesn't accept it (it's fine if only integers are intentionally accepted), but it changes the model to a floating point while rendering a rounded integer. Unless you focus the field again and de-focus it (enter 3.1, de-focus, focus, de-focus, check the model and the input between all steps) • Following from the above, focusing and de-focusing some things can lead to model changes even if there was no other user input

👌 2
Sam Ritchie18:01:03

that’s great feedback, the jump especially is odd and I hadn’t noticed it

Sam Ritchie18:01:02

I must have changed something since https://mathbox.mentat.org/dev/mathbox/examples/math/pq_knot.html is not doing the jump. I’ll look into it, thanks @U2FRKM4TW

Sam Ritchie18:01:18

@U2FRKM4TW okay, figured out 1, it’s a bug in the underlying library if you set any position. working on the others. asking the maintainers of Leva about the others, those are definitely problems

👍 2