fulcro

Book: http://book.fulcrologic.com, Community Resources: https://fulcro-community.github.io/, RAD book at http://book.fulcrologic.com/RAD.html
Jakub Holý 2021-01-04T16:40:44.054600Z

Hello! I have remade https://blog.jakubholy.net/2020/troubleshooting-fulcro/#_frontend_fulcro into a more mindmap-like experience, where child nodes in the troubleshooting tree are collapsed by default and you must click to expand them. I believe this will make it clearer as you will see all the children of a node at once, one per line, and can click on the one that is most relevant to your problem. What do you think about it? Is it better or worse than the static version? (Simply disable JavaScript to see the original, static version.) Or perhaps I should add an "expand all" button to the top? Thank you!

👍 2
2021-01-04T18:51:58.056Z

has anyone had any luck building 1.0.15 of workspaces? getting an odd error TBD, classpath indexing is gone

tony.kay 2021-01-04T19:30:47.056300Z

you using my fork or the original?

tony.kay 2021-01-04T19:30:58.056600Z

that’s a shadow-cljs change I think

tony.kay 2021-01-04T19:31:06.056900Z

so one way is to downgrade shadow

👍 1
thheller 2021-01-04T19:32:18.057300Z

https://github.com/nubank/workspaces/pull/50 dunno if there is a new version out yet?

tony.kay 2021-01-04T20:10:24.057900Z

@thheller I have not had time to patch my fork for F3, but I thought I saw a PR on the nubank one.

tony.kay 2021-01-04T20:10:51.058500Z

it would be a trivial port from the nubank one if there is one

2021-01-04T20:25:10.058600Z

I think it’s a great way to simplify the process - nice addition! I would recommend standardizing all the headings some that they represent the problem the user is having. E.g. “Data in the client DB is missing or wrong” is great. The heading “Fulcro Inspect” doesn’t describe the problem the user is having so it’s less clear if my problem is contained under that branch.

JAtkins 2021-01-04T20:43:33.060Z

@tony.kay Quirky behavior: com.fulcrologic.fulcro.algorithms.normalized-state/sort-idents-by returns a seq, not a vector of idents. If you want I can pr either a doc or fn fix.

tony.kay 2021-01-04T20:45:00.060300Z

cool @jatkin

tony.kay 2021-01-04T20:45:05.060500Z

do it

JAtkins 2021-01-04T20:45:25.060900Z

which? I can wrap in vec or add it to the docstring

❤️ 1
tony.kay 2021-01-04T20:45:30.061100Z

to vec

👍 1
JAtkins 2021-01-04T20:55:08.061400Z

Done

tony.kay 2021-01-04T21:51:06.061600Z

Released in 3.4.12

fjolne 2021-01-04T22:04:12.063Z

@mss @tony.kay these versions work fine:

{thheller/shadow-cljs        {:mvn/version "2.11.4"}
 com.github.awkay/workspaces {:mvn/version "1.0.1"}}

exit2 2021-01-04T22:20:12.064500Z

How do I use fs/mark-complete with an ident that is a function (i.e. :ident (fn [] [:COMPONENT/by-id :foo])

exit2 2021-01-04T22:20:28.064800Z

logging.cljc:50  [ 55.154s] [fulcro.ui.form-state] FORM NOT NORMALIZED: [:COMPONENT/by-id :foo]

JAtkins 2021-01-04T22:22:10.065100Z

Initial guess: your problem is you aren't using the FS join in your query (`fs/form-config-join`).

exit2 2021-01-04T22:24:26.065300Z

Yeah that’s usually the case, but this form has that

JAtkins 2021-01-04T22:24:43.065500Z

If that's not the issue more info is required. Lambda idents aren't very special - they work basically the same as normal idents

exit2 2021-01-04T22:24:57.065700Z

and its also doing the whole post mutation in fs/add-form-config* etc..

JAtkins 2021-01-04T22:30:20.065900Z

What's going on with your state? given the message I would assume the form state is present, but just not normalized (it's a reach, I know 🙂) ... in that case your root issue would be the fs/add-form-config*? Are you using the ident? (e.g. (fs/add-form-config* s Class (comp/get-ident Class {})))

JAtkins 2021-01-04T22:31:02.066100Z

could be the wrong path though. given that the FS data is there, you probably already are using the ident properly

tony.kay 2021-01-04T22:33:04.066800Z

@mss Try 1.0.3 snapshot of awkay/workspaces. I just merged in the fix from mainline nubank

tony.kay 2021-01-04T22:33:12.067Z

if it works I’ll push a formal release

Jakub Holý 2021-01-04T22:42:07.067100Z

Great idea, thanks!

2021-01-04T22:50:33.067700Z

seems to be working for me!

tony.kay 2021-01-04T22:55:41.067900Z

great, thanks

tony.kay 2021-01-04T22:56:25.068100Z

1.0.3 released to clojars