This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-10
Channels
- # ai (2)
- # beginners (3)
- # boot (113)
- # bristol-clojurians (2)
- # cider (77)
- # clara (43)
- # cljs-dev (48)
- # cljsrn (9)
- # clojure (319)
- # clojure-austin (2)
- # clojure-czech (4)
- # clojure-denmark (4)
- # clojure-france (4)
- # clojure-italy (4)
- # clojure-russia (2)
- # clojure-serbia (10)
- # clojure-spec (79)
- # clojure-uk (64)
- # clojurescript (109)
- # clr (3)
- # conf-proposals (21)
- # core-async (19)
- # cursive (26)
- # datascript (11)
- # datomic (19)
- # devcards (1)
- # emacs (25)
- # figwheel (9)
- # hoplon (31)
- # jobs (7)
- # jobs-discuss (14)
- # leiningen (10)
- # lumo (11)
- # off-topic (37)
- # om (40)
- # onyx (4)
- # perun (8)
- # planck (3)
- # rdf (4)
- # re-frame (40)
- # ring (11)
- # ring-swagger (2)
- # rum (21)
- # spacemacs (2)
- # specter (50)
- # untangled (93)
- # yada (13)
I want to ask your advice on the best way to monitor for changes introduced to the datomic DB that did not originate locally. presumably there would be a periodic polling of the DB but should the polling loop reside in the UI or what? Perhaps I can monitor the Datomic log and look for newness and if I find it, then perform some kind of refresh of the UI.
@fragamus Websockets + track what the UI is interested in on server + Datomic tx log + server websocket push of novelty
I'm pushing constant updates to the https://github.com/untangled-web/untangled-ui project. I'm trying to flesh out some examples for contributors. I'll try to keep the README up to date and informative about how to contribute. I'm making some devcards to demonstrate some possible plans of attack.
@therabidbanana I wrote the new defmutation, FYI...will release soon
defmutation
with remote and action support is on clojars in 0.7.1-SNAPSHOT. See mutations-spec
.
love to hear feedback and verification that it is right. Should make Cursive mutation navigation and docstrings work
as in the untangled-in-the-large video about components. Refactoring that source at some point too
@tony.kay Checking out untangled-ui
master, but getting this: Invalid :refer, var untangled.client.mutations/defmutation does not exist
Is the released clojar up-to-date? I’m fetching untangled-client-0.7.1-20170210.055224-4.pom
hello guys
I’ve found in the untangled doc this sentence =>
Using InitialAppState
This is probably the easiest method to code, and the easiest to keep straight during development because the data is co-located with the queries and UI bits. The only disadvantage is that you cannot easily initialize parts of the graph that do not have a UI representation (which is probably rare).
I can’t understand why you can’t initialize parts of the graph that do not have UI
can someone explain it to me ?
@pithyless same problem here for untangled-ui
@baptiste-from-paris you can't initialize other parts because once you use InitialAppState
it's going to take over the control of the initial app state, that will be built in a similar way that you root query is built, so, if there isn't a component telling to put some data there, you won't have other place to do it. makes sense?
and what about the ui
prefix tag ?
@baptiste-from-paris in InitialAppState it makes no difference, if you want to start some ui
prefix there it's just going to work, the only place where ui
prefix matters in when calling a remote, in those cases it will be elided, otherwise it works as any other keywords
ok ok thx
@pithyless @baptiste-from-paris looking at it...was working late, may have messed up 🙂
yes I figured this out when I checked your local time ^^
no problem
by the way, in your tuto you are giving an example with d3.js
any recommandations for using d3 with om ?
Untangled is using stock Om for everything UI...state management decisions are all we're making
ahah, was not using clojure at that time, but I’ll check
yes but d3 has it’s own diff algo right ?
ok, that’s why you have to turn shouldComponentUpdate
to false
ok ok, but IQuery
u/InitialAppState
should be the same
the other Untangled/Om state management stuff can be leveraged to do the data from above, sure
right that’s great, other than that, have you find other special cases with d3 ?
cljs map
which I have to #js
`
right but my customer heavily use data viz...
*want to use ^^
and I don’t have to have js
and cljs
for the same project
*don’t want
Hey all. Some time ago @ethangracer moved on to a new job, and he had gathered up "Companies using Untangled" along with some quotes we could use on the website. If any of you are willing to let us add you and your comments to our website please email me at <mailto:[email protected]|[email protected]>
Sorry 😬
Found the testimonials!
so, if you'd already given Ethan one, let me know if you want to update it. Otherwise if you're newer, go ahead and email me 🙂
argh...can anyone tell me a set of rules for defining macros in cljc files that actually work right with :require
😞
I seem to get all sorts of erratic behavior...like I can reset autobuild and they suddenly start working
@jasonjckn @mitchelkuijpers Did either of you have permission for us to use your company name/plug on a website?
@pithyless @baptiste-from-paris untangled-ui should work now
ok, thx
I'm thinking it might be nice to allow/encourage people to add components that render with other CSS toolkits into the namespaces of untangled-ui. E.g. in the buttons
namespace, perhaps have the default ui-button
be the one that uses the framework, then allow bootstrap-button
, etc. Another approach would be to make rendering into an internal multimethod where one could set some global like *ui-framework*
to :bootstrap
and, if available, the component would just naturally use the alternate rendering.
Here are my musings: https://github.com/untangled-web/untangled-ui/blob/0f79e5883e0e4a0865c9144197f91239b854c8c5/src/guide/untangled/components/pluggable_css_exploration_cards.cljs
Basically, I'm strongly leaning towards allowing people to add support for their fav CSS framework, but either in a namespace or with function name prefixing. My conclusion is that trying to make a unified API will lead to more complexity and headaches than it is worth. I'm guessing people will rather just make their own library in general, but I'm open to having the components here. There is probably quite a bit of code re-use that can happen for more complex components (e.g. like image library).
but for simple things like button, it just doesn't make a lot of sense. There's nothing really to re-use since the attribute maps and possible DOM wrapping vary so much
I would prefer to stick to one “css” framework before starting to support a bunch of them. It’d make more sense to get a rich set of components out of the door
Yeah. I think with any of the frameworks the goal is that you can customize to suit your needs anyway, so as long as it's obvious how to do that I don't see a reason to make the framework choice itself customizable.