* Allow Embeds editing without editing

* Add focalboard to embed after it being in props

* Fix tests

* change to boards

* remove extra gunk

* Fix tests

* Add Feature Flag

* update boardsunfurl

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Hossein
2021-10-13 10:51:27 -04:00
коммит произвёл GitHub
родитель be203d9bf3
Коммит 6521b0dfe3
4 изменённых файлов: 30 добавлений и 12 удалений

Просмотреть файл

@@ -49,6 +49,9 @@ type FeatureFlags struct {
// Enable different treatments for first time users, possible values = ("none", "tips_and_next_steps")
DownloadAppsCTA string
// Enable Boards Unfurl Preview
BoardsUnfurl bool
}
func (f *FeatureFlags) SetDefaults() {
@@ -66,6 +69,7 @@ func (f *FeatureFlags) SetDefaults() {
f.AddChannelButton = "by_team_name"
f.PrewrittenMessages = "none"
f.DownloadAppsCTA = "none"
f.BoardsUnfurl = true
}
func (f *FeatureFlags) Plugins() map[string]string {

Просмотреть файл

@@ -9,6 +9,7 @@ const (
PostEmbedOpengraph PostEmbedType = "opengraph"
PostEmbedLink PostEmbedType = "link"
PostEmbedPermalink PostEmbedType = "permalink"
PostEmbedBoards PostEmbedType = "boards"
)
type PostEmbedType string