I (or actually.. @Artem Kobzar 🙏🏼) added WASM support to my HumanReadable library. Also, following the example of several others here, I created a web demo (Using JS still 😉), interactively demonstrating what the library can do using Compose Web.
Not optimized for mobile, but demo available at https://jacobras.github.io/Human-Readable/
kodee happy 9
👀 2
🚀 2
K 1
🐕 12
p
Piotr Krzemiński
05/14/2024, 12:13 PM
@Jacob Ras 👏
just one small remark unrelated to WASM support itself: the demo doesn't refresh the contents if one chooses another language
j
Jacob Ras
05/14/2024, 12:14 PM
Yeah, I should pass the language as a key to the `remember`s 🤓
👍 1
r
rocketraman
05/14/2024, 12:55 PM
Also its not possible to type in specific times in the demo -- you can paste in entire values so its probably some kind of validation when the value is partial preventing it from being entered
p
Piotr Krzemiński
05/14/2024, 1:28 PM
I noticed that the demo app often crashes, then it just freezes. I got one case where e.g. some kind of linguistic form is not supported for Polish (saw in the JS console:
r_: Plural form 'many' not provided
), then it's an exception coming from the business logic (not like a framework's failure), so it would be good to properly surface it in the UI
(nevertheless, love the lib!)
j
Jacob Ras
05/14/2024, 3:37 PM
@rocketraman yeah, that's my quick-'n-dirty input validation. I'll improve it 🙂