Skip to content

Automations view polish - #328883

Merged
benvillalobos merged 19 commits into
mainfrom
bv/auto-ux-feedback
Aug 4, 2026
Merged

Automations view polish#328883
benvillalobos merged 19 commits into
mainfrom
bv/auto-ux-feedback

Conversation

@benvillalobos

@benvillalobos benvillalobos commented Aug 4, 2026

Copy link
Copy Markdown
Member

Fixes #328741
A set of small polish fixes for the Automations custom view and dialog.

  • Fix AutomationsHasItemsContext being set on a scoped context key service; move to the global service in the contribution so the "New Automation" button shows/hides without delay
  • Always show the custom view header divider instead of only on scroll
  • Move automation dialog CSS to a dedicated automationDialog.css file (was orphaned in aiCustomizationManagement.css after Remove Automations section from AI Customizations editor #328654)
  • Fix button and close-button padding in the automation dialog being too close to the border
  • Fix pointer cursor showing on form labels (Schedule, Time, Day of week, Prompt) by changing them from <label> to <span>
  • Fix extra spacing above the chat input in the dialog (interactive-input-part top/bottom padding) and inside the container
  • Truncate long automation card titles with ellipsis instead of word-breaking the "Disabled" badge
  • Use editorWidget.border token for card outlines (was widget.border, which is transparent in many themes); add contrastBorder override for HC themes

benvillalobos and others added 9 commits August 3, 2026 17:47
Previously the bottom border on the custom view header band was transparent
by default and only became visible when the user scrolled down (via the
.scrolled class toggled in customViewNode.ts). This meant the divider
between the header and content was invisible at the top scroll position.

Change the border color to always be visible so the header is consistently
separated from the content regardless of scroll position.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The automation dialog CSS was still living in aiCustomizationManagement.css
after the automations list widget was removed in #328654. Move it to a
dedicated automationDialog.css file next to the dialog service and add the
import there.

Also fix padding issues where Create/Cancel buttons and the close button
were too close to the dialog border (padding: 0 was inherited from the
base dialog override):
- dialog-toolbar-row (close button): 4px/6px → 8px/10px from top/right
- dialog-buttons-row: add 8px top, 10px side, 10px bottom padding

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Schedule, Time, Day of week, and Prompt labels were rendered as <label>
elements without 'for' attributes. Chromium applies cursor: pointer to
<label> elements regardless of author CSS, making them look like links.

Change them to <span> elements since they are purely visual section
headers with no programmatic association to their controls.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
chat.css sets padding: 4px 0 on .interactive-input-part, designed for
the full chat panel. In the compact dialog this adds visible dead space
above the rounded input container (below the Prompt label) and below
the secondary toolbar. Zero out both ends.

Also reduce the 6px bottom padding inside .chat-input-container (between
the picker chips and the container border) to 2px.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
word-break: break-word on the card name container caused the Disabled
badge to word-wrap when titles were long. Replace with ellipsis
truncation on the title text so the badge always stays on one line.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
widget.border is transparent in many themes, making cards invisible.
Switch to editorWidget.border which has concrete defaults across light
and dark themes, and add a contrastBorder override for HC themes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 4, 2026 02:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Polishes the Automations view and dialog styling, action visibility, and form presentation.

Changes:

  • Makes “New Automation” visibility react to global automation state.
  • Relocates and refines dialog styling.
  • Improves card borders, title truncation, and header separation.
Show a summary per file
File Description
aiCustomizationManagement.css Removes relocated dialog styles.
automationsView.ts Adds global item-state tracking and menu gating.
automationsCards.css Updates card borders and title truncation.
automationDialog.css Hosts and refines dialog styles.
automationDialogService.ts Imports the dedicated stylesheet.
automationDialog.ts Replaces form labels with spans.
contextkeys.ts Defines the automation-items context key.
customViewGridPart.css Makes the header divider persistent.

Review details

  • Files reviewed: 8/8 changed files
  • Comments generated: 2
  • Review effort level: Balanced

Comment thread src/vs/sessions/contrib/sessions/browser/media/automationsCards.css
Comment thread src/vs/sessions/contrib/sessions/browser/views/automationsView.ts
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 59ec7e59 Current: 34bdf344

Changed (6)

sessions/customViewNode/CustomViewNodeTitleOnly/Dark
Before After
before after
sessions/customViewNode/CustomViewNodeTitleOnly/Light
Before After
before after
sessions/customViewNode/CustomViewNodeWithDescription/Dark
Before After
before after
sessions/customViewNode/CustomViewNodeWithDescription/Light
Before After
before after
sessions/customViewNode/CustomViewNodeNarrowMaxWidth/Dark
Before After
before after
sessions/customViewNode/CustomViewNodeNarrowMaxWidth/Light
Before After
before after

Added (6)

sessions/automations/automationsView/Populated/Dark

current

sessions/automations/automationsView/Populated/Light

current

sessions/automations/automationsView/Empty/Dark

current

sessions/automations/automationsView/Empty/Light

current

sessions/automations/automationsView/Narrow/Dark

current

sessions/automations/automationsView/Narrow/Light

current

benvillalobos and others added 2 commits August 3, 2026 19:42
… test

The title span needs flex: 1 1 0; min-width: 0 to actually shrink as a
flex item — without it the min-width: auto default prevents ellipsis from
engaging on long unbroken strings.

Also add test coverage for the AutomationsHasItemsContext global context
key fix: verifies the key transitions false → true → false as the
automations observable changes through empty/non-empty/empty states.
Export AutomationsCustomViewContribution to enable direct instantiation
in the test.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@benvillalobos
benvillalobos marked this pull request as ready for review August 4, 2026 02:52
@vs-code-engineering

vs-code-engineering Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@benibenj

Matched files:

  • src/vs/sessions/browser/parts/customViewNode.ts
  • src/vs/sessions/browser/parts/media/customViewGridPart.css

benvillalobos and others added 2 commits August 3, 2026 21:05
Stamp data-view-id on the custom view node element so individual views
can override the scroll-driven divider behavior via CSS. Use this to
always show the header bottom border in the automations view, while
keeping the scroll-driven behavior intact for any other custom views.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
justschen
justschen previously approved these changes Aug 4, 2026
@benvillalobos
benvillalobos enabled auto-merge (squash) August 4, 2026 04:20
benibenj and others added 2 commits August 4, 2026 10:15
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@benvillalobos
benvillalobos merged commit 106a3a4 into main Aug 4, 2026
29 checks passed
@benvillalobos
benvillalobos deleted the bv/auto-ux-feedback branch August 4, 2026 10:17
@vs-code-engineering vs-code-engineering Bot added this to the 1.133.0 milestone Aug 4, 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.

Automations UX: Start Page polish

5 participants