bolt-js icon indicating copy to clipboard operation
bolt-js copied to clipboard

How to document `optional` field from housing Block and how it applies to Block Elements within?

Open rinormaloku opened this issue 1 year ago • 11 comments

Currently multi_external_select (link), requires you to select at least one option, otherwise, it fails the validation.

We worked around that by providing a default option none and people can remove it and add the options related to the content they are filling in.

However, it would be a better UX if the field is optional.

rinormaloku avatar Feb 02 '24 12:02 rinormaloku

This is a feature request for the Block Kit select menus themselves, yes? Perhaps adding a required, or min_selected_items, field to enable this behaviour?

filmaj avatar Feb 02 '24 16:02 filmaj

Yes, specifically for the one retrieving options externally.

Both suggestions sound good to me.

rinormaloku avatar Feb 02 '24 17:02 rinormaloku

I have raised this internally with the relevant engineering team. As I hear updates, I will report them back here.

filmaj avatar Feb 05 '24 17:02 filmaj

This change will improve the UX drastically. Thank you Filmaj!

rinormaloku avatar Feb 05 '24 17:02 rinormaloku

@rinormaloku one thing to try: can you put the multi-select menu inside an Input Block and set the Input Block's optional field to true?

filmaj avatar Feb 06 '24 17:02 filmaj

@leartbeqiraj1 can you try this out and report back?

rinormaloku avatar Feb 06 '24 17:02 rinormaloku

I gave it a go and indeed that does work, though it wasn't until a fellow Slack colleague pointed this out to me that I realized this was even an option! Something to improve in our documentation.. will need to think about how to tackle that.

filmaj avatar Feb 06 '24 17:02 filmaj

I just tested it and I can verify that it works. Thanks a lot @filmaj and @rinormaloku

leartbeqiraj1 avatar Feb 06 '24 18:02 leartbeqiraj1

👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized.

github-actions[bot] avatar Mar 11 '24 00:03 github-actions[bot]

As this issue has been inactive for more than one month, we will be closing it. Thank you to all the participants! If you would like to raise a related issue, please create a new issue which includes your specific details and references this issue number.

github-actions[bot] avatar Mar 25 '24 00:03 github-actions[bot]

I'm reopening this as this is still outstanding to improve in our documentation.

filmaj avatar Mar 25 '24 12:03 filmaj