Fork me on GitHub
#untangled
<
2017-07-04
>
tony.kay01:07:54

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

tony.kay01:07:53

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.kay01:07:28

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

tony.kay04:07:38

@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.kay04:07:18

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

tony.kay05:07:33

@claudiu OK, template ready

tony.kay05:07:04

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.

claudiu06:07:00

@tony.kay wow, thank you 🙂

tony.kay06:07:29

Just fixed README for server tests

tony.kay06:07:24

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.kay06:07:45

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 🙂

claudiu06:07:17

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

tony.kay06:07:11

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.kay06:07:19

along with more of the bootstrap helpers

claudiu06:07:19

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.

tony.kay06:07:36

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!

claudiu07:07:16

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

tony.kay08:07:33

(with some minor tweaks) Login is: <mailto:[email protected]|[email protected]> or <mailto:[email protected]|[email protected]> Password is letmein

tony.kay08:07:49

So, uberjar and heroku now tested as well.

mitchelkuijpers08:07:53

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

tony.kay08:07:39

any problems?

mitchelkuijpers08:07:59

We had some dependency problems but nothing to worry about

mitchelkuijpers08:07:09

Guava is always fun...

mitchelkuijpers08:07:32

And we moved completely to untangled/om-css

mitchelkuijpers08:07:45

Really loving how not magic it is

mitchelkuijpers08:07:04

And just printing a style tag is insanely powerfull for SSR

tony.kay08:07:08

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

tony.kay08:07:45

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

tony.kay08:07:40

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

adambrosio08:07:07

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

tony.kay08:07:34

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

tony.kay08:07:17

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

adambrosio08:07:55

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

tony.kay08:07:00

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

tony.kay08:07:20

or maybe switch namespaces at the REPL

tony.kay08:07:09

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

adambrosio08:07:10

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

adambrosio08:07:48

the old handler hook stuff makes me cringe

tony.kay08:07:47

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

tony.kay08:07:02

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

claudiu09:07:57

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.kay09:07:05

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

claudiu21:07:44

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.kay21:07:58

possibly not

tony.kay21:07:16

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

tony.kay21:07:33

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