Skip to content

Polish AI Customization modal editor styles#318378

Draft
mrleemurray wants to merge 12 commits into
mainfrom
mrleemurray/customizations-modal-polish
Draft

Polish AI Customization modal editor styles#318378
mrleemurray wants to merge 12 commits into
mainfrom
mrleemurray/customizations-modal-polish

Conversation

@mrleemurray
Copy link
Copy Markdown
Contributor

@mrleemurray mrleemurray commented May 26, 2026

This pull request introduces a new "compact header" mode for modal editors, allowing certain editors to opt into a simplified header chrome. It also updates the AI Customization Management Editor to use this new mode, improves layout handling for embedded editors, and refactors the detail views for better composability. The changes span core modal editor infrastructure, CSS, and the AI customization feature area.

Modal Editor Infrastructure Enhancements:

  • Added a compactHeader option to IModalEditorPartOptions, enabling editors to request a simplified modal header (no icon, no border, taller height). Introduced the IModalEditorOptionsProvider interface and a helper type guard for editors to provide these options. (src/vs/platform/editor/common/editor.ts)
  • Updated modal editor part logic to dynamically apply the compact-header class and recalculate layout based on the actual rendered header height, ensuring correct sizing for both default and compact headers. Sidebar and sash positioning now use the measured header height for alignment. (src/vs/workbench/browser/parts/editor/modalEditorPart.ts, src/vs/workbench/browser/parts/editor/media/modalEditorPart.css) [1] [2] [3] [4] [5] [6] [7]

AI Customization Management Editor Updates:

  • The AICustomizationManagementEditorInput now implements IModalEditorOptionsProvider, opting into the compact header mode for a cleaner look. (src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.ts) [1] [2]
  • Improved layout logic for embedded editors to use the actual container size, ensuring correct rendering even when the container is initially hidden. (src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.ts)
  • The split view separator border is now always hidden, as the modal provides its own chrome. (src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.ts)
  • Refactored MCP and plugin detail panes to render the back button into a dedicated "leading slot" in the embedded detail component, improving composability and separation of concerns. (src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.ts, src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.ts) [1] [2] [3] [4] [5]

Code Cleanup:

  • Removed unused color registration and imports related to the sash border, as the modal editor now manages its own borders. (src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.ts) [1] [2]

These changes make modal editors more flexible and allow feature areas like AI customization to provide a more integrated and visually consistent experience.

mrleemurray and others added 10 commits May 22, 2026 13:38
…or border color

Co-authored-by: Copilot <copilot@github.com>
… reflection

Co-authored-by: Copilot <copilot@github.com>
…n styles

Co-authored-by: Copilot <copilot@github.com>
…roved responsiveness

Co-authored-by: Copilot <copilot@github.com>
…iveness

Co-authored-by: Copilot <copilot@github.com>
…or components

Co-authored-by: Copilot <copilot@github.com>
…tor layout handling

Co-authored-by: Copilot <copilot@github.com>
…s in AI Customization Management Editor

Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings May 26, 2026 16:03
@mrleemurray mrleemurray self-assigned this May 26, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 26, 2026

Screenshot Changes

Base: 40a9d568 Current: eb7f8054

Changed (68)

chat/aiCustomizations/aiCustomizationListWidget/InstructionsTabWithItems/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationListWidget/InstructionsTabWithItems/Light
Before After
before after
chat/aiCustomizations/aiCustomizationListWidget/InstructionsTabEmpty/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationListWidget/InstructionsTabEmpty/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/WelcomePage/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/WelcomePage/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/LocalHarness/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/LocalHarness/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/CliHarness/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/CliHarness/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/Sessions/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/Sessions/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/SessionsSkillsTab/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/SessionsSkillsTab/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpServersTab/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpServersTab/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/AgentsTab/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/AgentsTab/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/SkillsTab/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/SkillsTab/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/InstructionsTab/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/InstructionsTab/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/HooksTab/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/HooksTab/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/PromptsTab/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/PromptsTab/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/PluginsTab/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/PluginsTab/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/PluginBrowseMode/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/PluginBrowseMode/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/PromptsTabScrolled/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/PromptsTabScrolled/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpServersTabScrolled/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpServersTabScrolled/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/PluginsTabScrolled/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/PluginsTabScrolled/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpServersTabNarrow/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpServersTabNarrow/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/AgentsTabNarrow/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/AgentsTabNarrow/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/AgentsItemPreview/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/AgentsItemPreview/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/AgentsItemRaw/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/AgentsItemRaw/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/BuiltinSkillItemPreview/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/BuiltinSkillItemPreview/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/BuiltinSkillItemRaw/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/BuiltinSkillItemRaw/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpServerDetail/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpServerDetail/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpServerDetailNarrow/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpServerDetailNarrow/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/PluginDetail/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/PluginDetail/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/PluginDetailNarrow/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/PluginDetailNarrow/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/EmbeddedMcpDetailWorkspace/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/EmbeddedMcpDetailWorkspace/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/EmbeddedMcpDetailUser/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/EmbeddedMcpDetailUser/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/EmbeddedPluginDetailInstalled/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/EmbeddedPluginDetailInstalled/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/EmbeddedPluginDetailMarketplace/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/EmbeddedPluginDetailMarketplace/Light
Before After
before after
chat/aiCustomizations/aiCustomizationWelcomePages/WelcomePage/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationWelcomePages/WelcomePage/Light
Before After
before after

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

mrleemurray and others added 2 commits May 27, 2026 12:53
…n integration in AI Customization Management Editor

Co-authored-by: Copilot <copilot@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants