-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Is your feature request related to a problem? Please describe.
having to go back and forth between blockkit builder and code is a bit tedious because of formatting differences between json (which is what blockkit builder accepts) and anything else you might use.
It seems like the entirety of the blockkit you design via the builder is URL-encoded, so we could build a pretty quick helper to generate the link for an array of blockkit blocks.
Describe the solution you'd like
A TS/JS utility that will return the blockkit builder URL provided an array of blockkit blocks:
// if it's a utility function
console.log(toBlockKitBuilderURL([/*array of KnownBlocks*/])
// https://api.slack.com/tools/block-kit-builder?mode=message&blocks=<blahblahblah>
// or using some imaginary class-based blockkit builder tool **nudge nudge**
console.log(Builder.section().section().section().toBlockKitBuilderURL());Describe alternatives you've considered
copy-pasting almost-json into vscode and using the Fix JSON extension to format the contents
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels