This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-13
Channels
- # announcements (1)
- # babashka (12)
- # beginners (10)
- # biff (9)
- # calva (2)
- # cherry (21)
- # cider (14)
- # clj-commons (76)
- # clj-kondo (8)
- # clj-on-windows (34)
- # cljs-dev (5)
- # clojure (48)
- # clojure-austin (7)
- # clojure-europe (97)
- # clojure-nl (1)
- # clojure-norway (14)
- # clojure-uk (22)
- # clojurescript (137)
- # conjure (33)
- # cursive (4)
- # datalevin (1)
- # deps-new (4)
- # devcards (2)
- # duct (3)
- # events (1)
- # fulcro (12)
- # graphql (9)
- # hyperfiddle (16)
- # jobs (8)
- # kaocha (1)
- # leiningen (6)
- # lsp (39)
- # malli (38)
- # membrane (20)
- # nbb (68)
- # observability (7)
- # off-topic (49)
- # pathom (11)
- # polylith (8)
- # portal (22)
- # re-frame (6)
- # releases (1)
- # remote-jobs (2)
- # shadow-cljs (24)
- # spacemacs (2)
- # squint (6)
- # xtdb (7)
If you ever wanted to share data in a portal viewer with someone, you can now do so 🙌 https://djblue.github.io/portal/?content-url=https://gist.githubusercontent.com/djblue/9a2cd250e061f62ce527b20648fd8256/raw/e7bd673df60b3c503306956b950bb9589ba480eb/data.clj&content-type=application/edn
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
The currently supported datatypes are application/transit+json
, application/json
, application/edn
and text/plain
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 👌
is it possible to inline nav calls?
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?
I can nav into :shipment/end-location
by pressing ENTER. would be cool if I could expand it inline by pressing E or something
so toggle-nav
might be a good name for this
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:
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?
Would by nice to have nav
work the same as expand. In the video :shipment/stop
s 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.
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?
It's in metadata. https://clojuredocs.org/clojure.datafy/datafy
I think that's mostly true but datafy doesn't require you return something which supports metadata
I think it will be added for you if you use clojure.datafy/datafy as opposed to clojure.core.protocols/datafy
I'd be happy with best effort, but your call of course
I could take a stab at it and send a PR if you like. Some pointers on where to look would be nice though 🙂