untangled

NEW CHANNEL: #fulcro
tony.kay 2017-07-04T01:18:54.889671Z

OK, the template is updated for the combo lib: https://github.com/awkay/untangled-template

tony.kay 2017-07-04T01:19:53.897554Z

I’m going to continue working on it some more and add in some of the bootstrap helpers, sessions, a few routes, and maybe HTML5 routing

tony.kay 2017-07-04T01:20:28.902880Z

oh, and a couple of the client tests are failing, but that is known..just didn’ get to them yet

tony.kay 2017-07-04T04:18:38.405418Z

@currentoor On UUIDs instead of tempids: I did think of something that loses: generality. The forms support, for example, only sends deltas. It uses tempids (the type) on the entities to figure out which ones are “new”. The assumption in Untangled is that non-persisted entities have tempids, so using your own UUID scheme might lose some functionality.

tony.kay 2017-07-04T04:19:18.410711Z

that said, the tempids contain a UUID, so you could remap from a tempid with that UUID to just that UUID 🙂

tony.kay 2017-07-04T05:57:33.256204Z

@claudiu OK, template ready

tony.kay 2017-07-04T05:59:04.270772Z

I have not tested: - Deployment to heroku - Generation of the uberjar, or running it from it - I have not added how to run the server tests from a browser to the README (but it works) Full HTML5 routing, logins, session support, and “remembered desired page” after login all implemented.

claudiu 2017-07-04T06:03:00.314070Z

@tony.kay wow, thank you 🙂

tony.kay 2017-07-04T06:07:29.361687Z

Just fixed README for server tests

tony.kay 2017-07-04T06:08:24.371398Z

Make sure you run it from it’s own server so that login has something to talk to. I just remembered I have not tested the “unhappy paths” either. If the server is down, I don’t know what the UI will do.

tony.kay 2017-07-04T06:08:45.375205Z

It has a fallback, but I didn’t try it. I also didn’t try a failed login. But I need to quit for now 🙂

claudiu 2017-07-04T06:14:17.436569Z

Oky. Will test and see how it goes. 🙂 Thank you so much for taking the time to update the template.

tony.kay 2017-07-04T06:16:11.458147Z

sure. I wanted to get to it. I’m glad I did. This is a much better showpiece than before. I’ll touch it up some more soon and make it prettier with perhaps a bit more functionality (like new user working)

tony.kay 2017-07-04T06:16:19.459590Z

along with more of the bootstrap helpers

claudiu 2017-07-04T06:23:19.538743Z

awesome. Don't know about other devs. For me the simplest way to get started and learn something new is to play around with a working app. A side-effect of doing this is when learning react/redux what that I also picked up some good patterns that colleagues that just read the docs seemed to have missed.

1👍
tony.kay 2017-07-04T06:46:36.829512Z

So, everyone, I’m intentionally not taking a job at the current time, and I’m spending a lot of my coding time on Untangled. I’m hoping that those of you that like Untangled might help support my efforts. Anything helps. I’ve started a Patreon account at https://www.patreon.com/untangledfw. If you use Untangled at work, you might see if your company would be interested in sponsoring the continued work. Thanks!

1👍
claudiu 2017-07-04T07:16:16.277311Z

awesome 🙂 untangled is really awesome. Quite excited about how much better it can get with you working fulltime 🙂

tony.kay 2017-07-04T08:10:09.278141Z

Heroku deploy worked: https://untangled-template.herokuapp.com/

tony.kay 2017-07-04T08:10:33.286374Z

(with some minor tweaks) Login is: <mailto:tony@nowhere.com|tony@nowhere.com> or <mailto:joe@nowhere.com|joe@nowhere.com> Password is letmein

tony.kay 2017-07-04T08:26:49.624877Z

So, uberjar and heroku now tested as well.

mitchelkuijpers 2017-07-04T08:27:53.647842Z

We just upgraded to the new untangled, awesome stuff @tony.kay

tony.kay 2017-07-04T08:28:39.664800Z

any problems?

mitchelkuijpers 2017-07-04T08:28:59.671797Z

We had some dependency problems but nothing to worry about

mitchelkuijpers 2017-07-04T08:29:09.675340Z

Guava is always fun...

mitchelkuijpers 2017-07-04T08:29:32.684127Z

And we moved completely to untangled/om-css

mitchelkuijpers 2017-07-04T08:29:45.688823Z

Really loving how not magic it is

mitchelkuijpers 2017-07-04T08:30:04.696434Z

And just printing a style tag is insanely powerfull for SSR

tony.kay 2017-07-04T08:31:08.720095Z

Yeah, the improvements that @timovanderkamp made are pretty nice there. I should add that to the template

tony.kay 2017-07-04T08:32:45.755874Z

Just tested template’s “unhappy path” on server being down. That worked.

tony.kay 2017-07-04T08:35:40.819030Z

The unhappy path of bad credentials works ok…it should give better feedback

adambros 2017-07-04T08:37:07.850450Z

@tony.kay do you mind if i update template to use the modular server stuff? or was there a reason you didnt?

tony.kay 2017-07-04T08:38:34.881457Z

@adambros Hm. I didn’t because the easy server stuff was …well, easy 😉

tony.kay 2017-07-04T08:39:17.896376Z

you could add another ns that does it, then it would demo both

adambros 2017-07-04T08:39:55.910508Z

how would you switch between? and which would be the default?

adambros 2017-07-04T08:41:23.942493Z

^

tony.kay 2017-07-04T08:42:00.956379Z

I’d leave easy the default. I don’t know: -Dmodular?

tony.kay 2017-07-04T08:42:20.963650Z

or maybe switch namespaces at the REPL

tony.kay 2017-07-04T08:43:09.981797Z

then it could have its own go, reset, etc.

adambros 2017-07-04T08:45:10.026298Z

so i get the easy server is easy 😑, but shouldnt we be pushing towards the modular way anyway?

adambros 2017-07-04T08:45:48.040473Z

the old handler hook stuff makes me cringe

tony.kay 2017-07-04T08:46:47.062543Z

You are probably right. It isn’t as pretty, for sure.

tony.kay 2017-07-04T08:47:02.067914Z

Could you make it in a new ns, and then we can compare?

adambros 2017-07-04T08:47:05.068857Z

sure

tony.kay 2017-07-04T08:47:08.069799Z

thanks!

claudiu 2017-07-04T09:22:57.865988Z

Don't know how much work it is to maintain. A javascript template project that I liked went with feature/X branches derived from master. https://github.com/kriasoft/react-starter-kit ex: feature/redux, feature/apollo, etc.. 🙂

tony.kay 2017-07-04T09:24:05.890634Z

at the moment, trying to keep maintenance to a minimum, so I don’t want to fork off too many things 🙂

claudiu 2017-07-04T09:26:39.948940Z

🙂

claudiu 2017-07-04T21:09:44.928627Z

in untangled template is it expected behaviour to have [untangled-template.server:55] - Read session for key 1499201867886 printed multiple times on refresh (on dev & jar) ?

tony.kay 2017-07-04T21:09:58.930404Z

possibly not

tony.kay 2017-07-04T21:10:16.932868Z

I don’t know how much the wrap-session stuff accesses the store

tony.kay 2017-07-04T21:10:33.935099Z

you can remove those message loggings. I have already done so on my version that Im improving

claudiu 2017-07-04T21:18:36.996445Z

ok 🙂