feat(settings): add team appearance setting to hide agent features (#411)

* feat(settings): add team appearance setting to hide agent features

Add an Appearance subpage under Team Settings allowing team owners to toggle appearance.hideAgent for the team. Return appearance.hideAgent in the user-metadata API, and conditionally hide the AGENTS.md button, agent chatbot sidebar, and chatbot trigger button in the WebUI.

* refactor(settings): add strongly typed TeamSettingsResponse to remove explicit any

Introduce TeamSettingsResponse and TeamAppearanceSettings in @shumai/dtos, type TeamService.getSettings and updateSettings, and eliminate the explicit any cast in AppearanceSettings.tsx.
This commit is contained in:
Yiling-J
2026-09-17 18:31:43 +08:00
committed by GitHub
parent 7af3647913
commit e2f741eda6
18 changed files with 458 additions and 43 deletions
+7 -1
View File
@@ -1429,5 +1429,11 @@
"search_emoji": "Search emoji",
"reaction_you": "You reacted with {emoji}",
"reaction_you_and_others": "You and {others} reacted with {emoji}",
"reaction_others": "{others} reacted with {emoji}"
"reaction_others": "{others} reacted with {emoji}",
"appearance_settings": "Appearance",
"appearance_settings_description": "Manage visual appearance and interface display settings for your team.",
"hide_agent": "Hide Agent",
"hide_agent_description": "Hide the AGENTS.md button, agent-chat sidebar, and chatbot trigger button across the entire team.",
"appearance_settings_updated": "Appearance settings updated",
"failed_update_appearance_settings": "Failed to update appearance settings"
}
+7 -1
View File
@@ -1429,5 +1429,11 @@
"search_emoji": "搜索表情",
"reaction_you": "你回应了 {emoji}",
"reaction_you_and_others": "你和 {others} 回应了 {emoji}",
"reaction_others": "{others} 回应了 {emoji}"
"reaction_others": "{others} 回应了 {emoji}",
"appearance_settings": "外观",
"appearance_settings_description": "管理团队的视觉外观与界面显示设置。",
"hide_agent": "隐藏 Agent",
"hide_agent_description": "在整个团队中隐藏 AGENTS.md 按钮、Agent 聊天侧边栏和触发按钮。",
"appearance_settings_updated": "外观设置已更新",
"failed_update_appearance_settings": "更新外观设置失败"
}