sanity-super-pane icon indicating copy to clipboard operation
sanity-super-pane copied to clipboard

Unify structure options with native form builder

Open ricokahler opened this issue 3 years ago • 1 comments

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 avatar Sep 23 '21 17:09 ricokahler

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.

ricokahler avatar Sep 23 '21 17:09 ricokahler