reveal

sheluchin 2022-04-07T11:20:36.242479Z

Is there any way for an action to take an additional argument? e.g. if I want an action on maps that calls (get *v <additional-kw-arg>), is that possible?

vlaaad 2022-04-07T11:38:15.627559Z

Where do you want to pass this extra arg?

sheluchin 2022-04-07T11:45:03.214679Z

Anywhere 🤷‍♂️ I guess Reveal forms would be one way to do it. I'm looking for a workflow where I can click some element in the Reveal window -> pick the action -> add an additional argument. Background: what I'm trying to do is make an action to use with https://github.com/wilkerlucio/pathom3/blob/main/src/main/com/wsscode/pathom3/interface/eql.cljc#L79-L82=, whereby a selected map is used as the entity map and I can give it an attribute to look up.

vlaaad 2022-04-07T15:13:27.810309Z

Sounds like a job for a tree view

vlaaad 2022-04-07T15:14:18.043629Z

Have a look at tree-view

sheluchin 2022-04-07T15:18:49.529769Z

Thank you, I'll check out how it might apply.

vlaaad 2022-04-07T15:27:42.220249Z

but that works if you have an enumeration of all possible attrs…

sheluchin 2022-04-07T15:33:56.132579Z

I think it's doable with https://pathom3.wsscode.com/docs/indexes/#index-io > for given attribute set (with empty, one or more items), which attributes are directly reachable (one resolver distance) from that set. So get the entity map keys and figure out possible attrs from there. I think it's a little more advanced than I want to try right now, but I'll put it on my list and will get to it at some point.