ricokahler / sanity-super-pane

The Sanity Desk Tool Pane with Super Powers
sanity-super-pane.vercel.app
MIT License
101 stars 12 forks source link

Unify structure options with native form builder #39

Open ricokahler opened 3 years ago

ricokahler commented 3 years ago

Hey @ricokahler I went to try this out in my project - what I'd like to see is the same formatting - or at least the same options - for functions that configure the results super pane. In this case using a GROQ with existing $id parameter.

S.listItem(id)
    .title('Normal List per Band')
    .child(
      createSuperPane(S)
      .schemaType('product')
      .title('Product List')
      .filter(`_type == "product" && references($id)`)
      .params({ id })
      ),

vs

S.listItem(id)
    .title('Normal List per Band')
    .child(
      createSuperPane('product', S)
      ),

I could also make great use of exposing the bulk actions menu to custom document actions as you've mentioned above!

Originally posted by @BenjaminWalsh in https://github.com/ricokahler/sanity-super-pane/issues/2#issuecomment-925880607

ricokahler commented 3 years ago

hi @BenjaminWalsh 👋

I think this is a great idea! I'm slightly busy atm but we're happily accepting PRs if you want to propose something and/or implement anything.