Add an option to not show broadcast message (type: banner) in the CLI
Context
On May 18, 2023 we enabled a broadcast message alerting users of the Code Suggestion beta. During the brief period this broadcast message was live, we received feedback regarding broadcast messages appearing in the CLI.
Current State
According to documentation, it's "expected" that broadcast messages (type = banner) appear in the CLI.
- With the code suggestions announcement, we learned that not all announcements we may use this feature make sense to display in the CLI. This could be because:
- the message is not appropriate (marketing)
- the message not formatted correctly (links, too long, etc)
- the message results in more noise during workflows
MVC Solution
Because not all broadcast message banners are appropriate/responsive to be displayed in the CLI we should introduce a way to control if a broadcast message appears in the CLI or not.
This solution should be "backwards compatible" -- keep the behaviour as is (show in CLI by default) but this option added will allow it to not display in CLI if engaged with.
- Add new cli column(probably a boolean column, although broacast_type looks like it was meant to handle this type of thing, I think it may only fit for UI types and this is more of an added mode)
- Set the default of this new column to be true
- Add UI pieces for the form.
- Modify this code to observe new field.
Edited by Roy Liu