From af994ced09068ab7caca6c991b59594e31f6c77b Mon Sep 17 00:00:00 2001 From: Elaine Vegeris Date: Mon, 20 Oct 2025 22:37:10 -0400 Subject: [PATCH 1/3] feat: update the manifest model to include the setting for work objects --- internal/shared/types/app_manifest.go | 6 ++++++ internal/shared/types/app_manifest_test.go | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/internal/shared/types/app_manifest.go b/internal/shared/types/app_manifest.go index 1b010ff0..77146518 100644 --- a/internal/shared/types/app_manifest.go +++ b/internal/shared/types/app_manifest.go @@ -76,6 +76,12 @@ type AppFeatures struct { ManifestShortcutsItems []ManifestShortcutsItem `json:"shortcuts,omitempty" yaml:"shortcuts,flow,omitempty"` ManifestSlashCommandsItems []ManifestSlashCommandsItem `json:"slash_commands,omitempty" yaml:"slash_commands,flow,omitempty"` Search *Search `json:"search,omitempty" yaml:"search,flow,omitempty"` + RichPreviews *RichPreviews `json:"rich_previews,omitempty" yaml:"rich_previews,flow,omitempty"` +} + +type RichPreviews struct { + EntityTypes []string `json:"entity_types,omitempty" yaml:"entity_types,flow,omitempty"` + IsActive bool `json:"is_active,omitempty" yaml:"is_active,flow,omitempty"` } type AssistantView struct { diff --git a/internal/shared/types/app_manifest_test.go b/internal/shared/types/app_manifest_test.go index d6435a80..c68d5572 100644 --- a/internal/shared/types/app_manifest_test.go +++ b/internal/shared/types/app_manifest_test.go @@ -179,6 +179,17 @@ func Test_AppManifest_AppFeatures(t *testing.T) { }, want: `{"app_home":{},"bot_user":{"display_name":"kubrick"},"search":{"search_function_callback_id":"movie_search","search_filters_function_callback_id":"movie_filters","enable_ai_answers":true}}`, }, + "includes Work Objects settings when provided": { + features: AppFeatures{ + BotUser: BotUser{ + DisplayName: "business_bot", + }, + RichPreviews: &RichPreviews{ + EntityTypes: []string{"slack#/entities/file"}, + }, + }, + want: `{"app_home":{},"bot_user":{"display_name":"business_bot"},"rich_previews":{"entity_types":["slack#/entities/file"]}}`, + }, } for name, tt := range tests { t.Run(name, func(t *testing.T) { From e9d48b7467b021c66c7b1e6ad95b4aafd8e1e5f8 Mon Sep 17 00:00:00 2001 From: Elaine Vegeris Date: Tue, 21 Oct 2025 10:51:54 -0400 Subject: [PATCH 2/3] update --- internal/shared/types/app_manifest.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/shared/types/app_manifest.go b/internal/shared/types/app_manifest.go index 77146518..c16e2b49 100644 --- a/internal/shared/types/app_manifest.go +++ b/internal/shared/types/app_manifest.go @@ -81,7 +81,6 @@ type AppFeatures struct { type RichPreviews struct { EntityTypes []string `json:"entity_types,omitempty" yaml:"entity_types,flow,omitempty"` - IsActive bool `json:"is_active,omitempty" yaml:"is_active,flow,omitempty"` } type AssistantView struct { From c8987e565eaad999e768592f2c915df23c3cfc62 Mon Sep 17 00:00:00 2001 From: Elaine Vegeris Date: Tue, 21 Oct 2025 13:08:18 -0400 Subject: [PATCH 3/3] Revert "update" This reverts commit e9d48b7467b021c66c7b1e6ad95b4aafd8e1e5f8. --- internal/shared/types/app_manifest.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/shared/types/app_manifest.go b/internal/shared/types/app_manifest.go index c16e2b49..77146518 100644 --- a/internal/shared/types/app_manifest.go +++ b/internal/shared/types/app_manifest.go @@ -81,6 +81,7 @@ type AppFeatures struct { type RichPreviews struct { EntityTypes []string `json:"entity_types,omitempty" yaml:"entity_types,flow,omitempty"` + IsActive bool `json:"is_active,omitempty" yaml:"is_active,flow,omitempty"` } type AssistantView struct {