Skip to content

Commit 1c4bea4

Browse files
committed
Update logo and top bar buttons
1 parent 5ac1dc8 commit 1c4bea4

3 files changed

Lines changed: 13 additions & 23 deletions

File tree

jetbrains_plugin/src/main/kotlin/org/zoocode/jetbrains/extensions/plugin/zoo/ZooCodeButtonProvider.kt

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ class ZooCodeButtonProvider : ExtensionButtonProvider {
3434

3535
override fun getButtons(project: Project): List<AnAction> {
3636
// Note: project parameter kept for future extensibility
37-
// Order matches VS Code: New Task, Marketplace, Settings (visible)
38-
// History, Prompts, MCP, Open in Editor (overflow menu)
37+
// Order matches the top bar: New Task, Marketplace, Settings, Task History
3938
return listOf(
4039
PlusButtonClickAction(),
4140
MarketplaceButtonClickAction(),
@@ -52,33 +51,27 @@ class ZooCodeButtonProvider : ExtensionButtonProvider {
5251
return listOf(
5352
PlusButtonClickAction(),
5453
MarketplaceButtonClickAction(),
55-
SettingsButtonClickAction()
54+
SettingsButtonClickAction(),
55+
HistoryButtonClickAction()
5656
)
5757
}
5858

5959
override fun getOverflowButtons(project: Project): List<AnAction> {
60-
// Remaining buttons go into the overflow menu
61-
return listOf(
62-
HistoryButtonClickAction(),
63-
PromptsButtonClickAction(),
64-
MCPButtonClickAction(),
65-
OpenInEditorButtonClickAction()
66-
)
60+
// The top bar intentionally has no dropdown menu.
61+
return emptyList()
6762
}
6863

6964
override fun getButtonConfiguration(): ButtonConfiguration {
7065
return ZooCodeButtonConfiguration()
7166
}
7267

7368
/**
74-
* Zoo Code button configuration - shows buttons matching VS Code layout.
75-
* Directly visible: New Task, Marketplace, Settings
76-
* In overflow menu: History, Prompts, MCP Servers, Open in Editor
69+
* Zoo Code button configuration for directly visible top-bar actions.
70+
* Directly visible: New Task, Marketplace, Settings, Task History
7771
*/
7872
private class ZooCodeButtonConfiguration : ButtonConfiguration {
7973
override fun isButtonVisible(buttonType: ButtonType): Boolean {
80-
// All buttons are visible, but some are in overflow menu
81-
return true
74+
return buttonType in getVisibleButtons()
8275
}
8376

8477
override fun getVisibleButtons(): List<ButtonType> {
@@ -87,10 +80,7 @@ class ZooCodeButtonProvider : ExtensionButtonProvider {
8780
ButtonType.PLUS, // New Task
8881
ButtonType.MARKETPLACE, // Marketplace
8982
ButtonType.SETTINGS, // Settings
90-
ButtonType.HISTORY, // History (overflow)
91-
ButtonType.PROMPTS, // Prompts (overflow)
92-
ButtonType.MCP, // MCP Servers (overflow)
93-
ButtonType.OPEN_IN_EDITOR // Open in Editor (overflow)
83+
ButtonType.HISTORY // Task History
9484
)
9585
}
9686
}
@@ -180,8 +170,8 @@ class ZooCodeButtonProvider : ExtensionButtonProvider {
180170

181171
init {
182172
templatePresentation.icon = AllIcons.Vcs.History
183-
templatePresentation.text = "History"
184-
templatePresentation.description = "History"
173+
templatePresentation.text = "Task History"
174+
templatePresentation.description = "View task history"
185175
}
186176

187177
/**

jetbrains_plugin/src/main/resources/icons/zoo-logo.svg

Lines changed: 1 addition & 1 deletion
Loading

jetbrains_plugin/src/main/resources/icons/zoo-logo_dark.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)