Fork me on GitHub
#portal
<
2022-09-13
>
djblue03:09:33

Currently it isn't automated, but the gist of it is you can provide a content-url and content-type to the standalone app domain https://djblue.github.io/portal and it will fetch, parse and render the data awesome

djblue03:09:46

The currently supported datatypes are application/transit+json, application/json, application/edn and text/plain

djblue03:09:33

The next step is adding a portal command that will pretty print a selected value, automatically upload it to a github gist and produce the correctly formatted url 👌

djblue03:09:43

Might not add this directly to portal since it can be done as a user command

djblue05:09:44

One such share command 🙌

🚀 2
hanDerPeder11:09:57

is it possible to inline nav calls?

djblue13:09:35

What do you mean by inline?

hanDerPeder14:09:17

In the inspector you have rows of key value pairs. With value selected pressing ENTER calls nav at shows the result in a new "page". Would be handy if this could be done inline without navigating to a new page. Does that make sense?

hanDerPeder15:09:53

I can nav into :shipment/end-location by pressing ENTER. would be cool if I could expand it inline by pressing E or something

hanDerPeder16:09:44

so toggle-nav might be a good name for this

djblue16:09:25

That's an interesting idea. I wouldn't want this to only work for nav since any function can push stuff into the history stack, any function should be able to be eval'd inline :thinking_face:

djblue16:09:49

A version of Portal in the past had a two panel approach, kinda like REBL, where the right was the current item and the left was the previous item. Is that kinda what you are looking for, a way to keep the context of the previous data structure?

hanDerPeder17:09:08

Would by nice to have nav work the same as expand. In the video :shipment/stops value is a map and :shipment/start-location is a thing that implements Navigable. Would be nice to view the Navigable inline like you can with a map.

djblue17:09:53

I think the UX difficulty I've ran into is getting back to the original value. If the original value is replaced, how would you expect to get it back?

djblue17:09:43

I think that's mostly true but datafy doesn't require you return something which supports metadata

hanDerPeder17:09:51

I think it will be added for you if you use clojure.datafy/datafy as opposed to clojure.core.protocols/datafy

hanDerPeder17:09:43

I'd be happy with best effort, but your call of course

hanDerPeder17:09:48

I could take a stab at it and send a PR if you like. Some pointers on where to look would be nice though 🙂

djblue17:09:34

I'll put together some info later on in the day when I have some more time 👌

👌 1