Skip to content

sessions: keep artifact details stable on hover and refresh - #344336

Merged
Benjamin Christopher Simmonds (benibenj) merged 3 commits into
mainfrom
agents/fix-hover-effect-artifact-list
Oct 26, 2026
Merged

Benjamin Christopher Simmonds (benibenj) merged 3 commits into
mainfrom
agents/fix-hover-effect-artifact-list

Conversation

@benibenj

Copy link
Copy Markdown
Contributor

Summary

  • Keep artifact list icons and labels vertically centered when row actions appear on hover/focus or switch to a rerun spinner.
  • Remove transient “Loading details…” and “Loading activities…” labels that move existing content during refresh. Preserve errors, sign-in messages, empty states, and accessible loading state via aria-busy.
  • Add regression coverage for hover, rerun spinners, initial loading, and stable panel/list geometry across refreshes.

Reported directly during development; no linked issue.

Validation

  • npm run build-fast -- --client-only — passed after rebasing onto current main.
  • ./scripts/test.sh --run src/vs/sessions/contrib/chat/test/browser/artifactIntegrationPresentation.test.ts --reporter dot — passed, 96 tests.
  • npm run eslint -- src/vs/sessions/contrib/chat/browser/artifactDetailsModel.ts src/vs/sessions/contrib/chat/browser/artifactActivitiesModel.ts src/vs/sessions/contrib/chat/browser/artifactStateLists.ts src/vs/sessions/contrib/chat/test/browser/artifactIntegrationPresentation.test.ts — passed.
  • npm run stylelint -- src/vs/platform/artifactIntegrations/browser/media/artifactDetailsList.css — passed.
  • git diff --check — passed.
  • Code OSS 1.144.0 on macOS, driven with dbgjs, fake PR/CI data, and the development login bypass: reproduced the original 3px shift; verified 0px vertical movement during hover, rerun spinner, completion, keyboard row navigation, and action focus.
  • Automated Electron tests verify repeated detail refreshes and delayed activity history loading leave existing panel/row geometry unchanged. No live GitHub authentication, remote CI rerun, or full integration/smoke suite was used.

How to test

  1. Open a recorded PR artifact’s details and expand its checks list.
  2. Hover and focus a failed check with a rerun action, then start a rerun.
  3. Confirm its icon and label stay in place while the action appears or displays a spinner.
  4. Refresh artifact details or expand activity history while existing data is visible; confirm no transient loading label appears or displaces the content.

Center row content when item actions appear, and omit transient loading labels without hiding errors or sign-in requirements. Cover hover, rerun spinners, and refresh geometry with regression tests.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 26, 2026 16:14
@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 015968af Current: 0fe29e7c

Changed (2)

sessions/artifactIntegrations/PullRequestCheckRowActions/Light
Before After
before after
sessions/artifactIntegrations/PullRequestCommentRowActions/Light
Before After
before after

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.

🟡 Changes recommended

Main details and activity history lose accessible loading feedback without an equivalent busy state.

2 open issues
What changed in this PR

This PR stabilizes artifact details in the Agents Window so hover actions, rerun spinners, and background refreshes do not shift existing content.

Changes:

  • Vertically centers row content when actions appear.
  • Removes transient loading labels and adds aria-busy to state-list panels.
  • Adds regression coverage for loading states and stable row/panel geometry.
File Description
src/​vs/​sessions/​contrib/​chat/​test/​browser/​artifactIntegrationPresentation.test.ts Tests loading messages, refresh geometry, hover actions, and rerun spinners.
src/​vs/​sessions/​contrib/​chat/​browser/​artifactStateLists.ts Exposes list loading through aria-busy.
src/​vs/​sessions/​contrib/​chat/​browser/​artifactDetailsModel.ts Suppresses loading text and avoids premature empty-list messages.
src/​vs/​sessions/​contrib/​chat/​browser/​artifactActivitiesModel.ts Removes transient activity-loading text while retaining errors.
src/​vs/​platform/​artifactIntegrations/​browser/​media/​artifactDetailsList.css Centers content in rows with actions.

Review effort: Balanced

Expose activity-history and main/contribution loading through the details view models and aria-busy, without adding visible loading messages or moving existing rows.

Co-authored-by: Copilot <[email protected]>
@benibenj
Benjamin Christopher Simmonds (benibenj) merged commit 6b4f857 into main Oct 26, 2026
49 checks passed
@benibenj
Benjamin Christopher Simmonds (benibenj) deleted the agents/fix-hover-effect-artifact-list branch October 26, 2026 18:51
@vs-code-engineering vs-code-engineering Bot added this to the 1.145.0 milestone Oct 26, 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.

5 participants