Fork me on GitHub
#portal
<
2022-10-10
>
pfeodrippe06:10:25

Hi, great project, Chris o/ For the JVM, am I able to call the server from a button click using the Hiccup viewer? I see that we have a handler function available in the browser and I’m able to call SCI from it (but it’s as if the state were always empty from the browser POV).

pfeodrippe06:10:20

If I am not able to, I guess I can hack a little bit and create a small server and use the HTML viewer to do a fetch to this server.

djblue21:10:29

Interactivity is something I want to support in Portal natively but haven't gotten around to making something that I would want to support long term. I think your solution works for now, but I do see a future where it's natively supported and a little easier.

pfeodrippe21:10:01

Yes, it works for my use case in the JVM, not general at all. Thanks, man o/

💯 1
pfeodrippe16:10:02

Reveal-like sticker (sticks to a Portal window, not to your screen in this case) using a small server + some watchers for Portal (the entire server and system sticker code should be visible on the left!). I'm planning to use it to introduce new people to Clojure and to the system (in https://diataxis.fr/ jargon, this would be a Tutorial), I have seen that people take a long time to appreciate the REPL (or never reach there) and they feel anxious that they don't understand what's going on, Portal seems an excellent way to build small UIs with the accompanying text (the context) that we need (the flexibility in that you can choose any viewer for any small part is just tremendous). Particular to this system, it leverages Pathom 2 and Malli, so I have been able to generate Malli examples from Portal, have documentation about a given attribute (just a qualified keyword), navigate from one attribute to the applicable ones, and analyze Pathoms queries so we can check if an attribute is reachable from another one. Basically Portal as a https://dl.acm.org/doi/pdf/10.1145/358896.358899#:~:text=If%20it%20is%20to%20be,generaliza%2D%20tion%2C%20and%20specialization.. Appreciate this project, Chris, thank you very much o/

💯 3