Skip to content

Add back button to AI customization section screens#310881

Merged
joshspicer merged 8 commits intomainfrom
agents/add-back-button-to-screens-6ffcd805
Apr 17, 2026
Merged

Add back button to AI customization section screens#310881
joshspicer merged 8 commits intomainfrom
agents/add-back-button-to-screens-6ffcd805

Conversation

@joshspicer
Copy link
Copy Markdown
Member

Adds a "Back" button at the top of each section screen (Agents, Skills, Instructions, Prompts, Hooks, MCP Servers, Plugins, Models) in the AI Customizations editor that returns the user to the overview/home page.

This is a little redundant with the sidebar home button — trying it out to see how it feels.

Changes

  • aiCustomizationManagementEditor.ts — added a .content-back-bar with an arrow-left button at the top of content-inner, wired to showWelcomePage(). Hidden during welcome / editor / detail views via updateContentVisibility.
  • media/aiCustomizationManagement.css — made .content-inner a flex column, styled the new bar/button, and switched the four section content containers from height: 100% to flex: 1; min-height: 0 so they share space with the bar.

Note: this will change screenshots of blocksCi: true fixtures (LocalHarness, AgentsTabNarrow, McpServersTab, McpServersTabNarrow) — expected since visible UI is added.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 17, 2026 01:09
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.

Pull request overview

Adds an in-content “Back” control to the AI Customization Management editor’s section pages so users can return to the overview/welcome screen without relying on the sidebar home button.

Changes:

  • Added a new .content-back-bar with a back button in createContent(), wired to showWelcomePage(), and toggled via updateContentVisibility().
  • Updated the editor content layout CSS to make .content-inner a flex column and to allocate remaining space to section containers via flex sizing.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.ts Creates and shows/hides the new back bar/button and hooks it up to showWelcomePage().
src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css Adds styling for the back bar/button and switches section containers to flex sizing so the bar can sit above them.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 1

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 17, 2026

Screenshot Changes

Base: 27bc1e25 Current: 9bf3cf91

Changed (33)

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/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

Added (6)

chat/aiCustomizations/aiCustomizationManagementEditor/AgentsItemEditor/Dark

current

chat/aiCustomizations/aiCustomizationManagementEditor/AgentsItemEditor/Light

current

chat/aiCustomizations/aiCustomizationManagementEditor/McpServerDetail/Dark

current

chat/aiCustomizations/aiCustomizationManagementEditor/McpServerDetail/Light

current

chat/aiCustomizations/aiCustomizationManagementEditor/PluginDetail/Dark

current

chat/aiCustomizations/aiCustomizationManagementEditor/PluginDetail/Light

current

joshspicer and others added 6 commits April 17, 2026 08:04
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The .editor-header has align-items: center and contains a multi-line title
(name + filename), causing the 26px back button to drift down when centered
in the taller row. Pin it to flex-start so it sits at top of the padding
box, exactly where the section back arrow sits.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@joshspicer joshspicer marked this pull request as ready for review April 17, 2026 17:35
@joshspicer joshspicer enabled auto-merge (squash) April 17, 2026 17:35
@joshspicer joshspicer merged commit 5027dde into main Apr 17, 2026
26 checks passed
@joshspicer joshspicer deleted the agents/add-back-button-to-screens-6ffcd805 branch April 17, 2026 18:31
@vs-code-engineering vs-code-engineering Bot added this to the 1.117.0 milestone Apr 17, 2026
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.

3 participants