Fork me on GitHub
#reagent
<
2017-10-25
>
gadfly36114:10:09

Hey all, just wanted to share an early cut of a library i am working on. Re-surface: add structure to your reagent / re-frame apps at the page-level. https://github.com/gadfly361/re-surface

shaun-mahood15:10:36

I love the demo - it kind of feels like an actual client meeting 🙂

shaun-mahood15:10:41

Have you been using it for any projects yet or is it brand new?

gadfly36115:10:54

@shaun-mahood brand new. I plan to use it in some projects though. The part that i am mostly interested in is seeing if describing a page by just data buys you what i hope it buys you. One thing in particular, all of the different possible page states will be enumerated and hopefully that means it should be easier to test / cycle through them ... as well as avoid random states by mistake.

shaun-mahood15:10:00

From my brief look at it I think it's promising - at the very least it moves things from CSS into reagent which is a pretty huge win IMO. I'll be trying it on my next frontend project (though I've been working way more backend this year so that may be a while).

ajs17:10:36

This is great! Looking forward to reading the code to see exactly what's going on.

ajs17:10:58

Normally I just rely on CSS-fu

gadfly36117:10:10

Awesome, let me know if you have any questions. Also, CSS-fu is a good thing to rely on if you have it! (I do not 😆)

jsa-aerial20:10:41

Do you know if this will play well with re-com? Thanks

gadfly36120:10:46

@U06C63VL4 I haven't tried it with re-com yet, but you should be able to put arbitrary components inside of re-surface so long as they don't affect the z-axis. So things like re-com's layers might get interesting. Looks like they are using really big z-indicies ... so likely work fine. (As an aside, re-surface is still settling on the z-indicies used, right now i am using low ones that increment by 1 ... however, i will like end up creating large gaps to allow people to put things in between as they see fit, just haven't figured out the best approach there).

jsa-aerial21:10:34

Thanks for info/heads up

gadfly36115:10:54

@shaun-mahood brand new. I plan to use it in some projects though. The part that i am mostly interested in is seeing if describing a page by just data buys you what i hope it buys you. One thing in particular, all of the different possible page states will be enumerated and hopefully that means it should be easier to test / cycle through them ... as well as avoid random states by mistake.

kasuko15:10:12

Is there a way that I can create view functions that follow the same optional props style that reagent uses?