Skip to content

fix(overflow-items,actions-panel): flaky visibility recalculations (#DS-5130)#1634

Merged
artembelik merged 13 commits into
mainfrom
fix/DS-5130
Jun 23, 2026
Merged

fix(overflow-items,actions-panel): flaky visibility recalculations (#DS-5130)#1634
artembelik merged 13 commits into
mainfrom
fix/DS-5130

Conversation

@artembelik

Copy link
Copy Markdown
Contributor

No description provided.

@artembelik artembelik self-assigned this Jun 15, 2026
Copilot AI review requested due to automatic review settings June 15, 2026 12:48
@artembelik artembelik requested a review from lskramarov as a code owner June 15, 2026 12:48
@artembelik artembelik added the bug Something isn't working label Jun 15, 2026
@github-actions

Copy link
Copy Markdown

🚨 E2E tests failed

Review the report for details.


💡 Comment /approve-snapshots to approve snapshot changes.

@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit fb62aed):

https://koobiq-next--prs-1634-rxcuo2dj.web.app

(expires Sun, 28 Jun 2026 10:32:29 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c9e37e518febda70d0317d07e8ceb35ac43c534c

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

This PR addresses flaky overflow/visibility recalculations in KbqOverflowItems (and a related KbqActionsPanel overlay-container sizing case) by changing how available space is measured and by expanding unit/e2e coverage for resize-driven recalculation scenarios.

Changes:

  • Switched overflow measurement to getBoundingClientRect() and captured available container size once per recalculation to avoid circular shrink/hide feedback loops.
  • Added/expanded unit tests and Playwright e2e scenarios covering orientation changes, debounce behavior, dynamic items, left-margin sizing, and additional resize-observer targets.
  • Refactored KbqActionsPanel overlay max-width syncing into a helper and added resize-related e2e/spec coverage.

Reviewed changes

Copilot reviewed 7 out of 11 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
packages/components/overflow-items/overflow-items.ts Updates sizing logic and stabilizes the hide-loop by snapshotting available size.
packages/components/overflow-items/overflow-items.spec.ts Adds unit coverage for resize-observer targets, debounce, orientation changes, and visibility manager behavior.
packages/components/overflow-items/e2e.ts Adds new e2e demo scenarios (margin-left, debounce, additional targets, dynamic add/remove).
packages/components/overflow-items/e2e.playwright-spec.ts Adds Playwright coverage for live resize, debounce, additional targets, margins, vertical alwaysVisible edge cases, and dynamic items.
packages/components/actions-panel/actions-panel.ts Extracts max-width syncing and applies it before subscribing to resize updates.
packages/components/actions-panel/actions-panel.spec.ts Adds tests for array class inputs, default config provider, open-twice behavior, and overlayContainer maxWidth syncing.
packages/components/actions-panel/e2e.playwright-spec.ts Adds dark-theme screenshot coverage and a new container-resize overflow behavior test.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/components/actions-panel/actions-panel.ts
Comment thread packages/components/overflow-items/overflow-items.ts Outdated
Comment thread packages/components/actions-panel/e2e.playwright-spec.ts
Comment thread packages/components/actions-panel/e2e.playwright-spec.ts Outdated
Comment thread packages/components/actions-panel/e2e.playwright-spec.ts Outdated
Comment thread packages/components/actions-panel/e2e.playwright-spec.ts Outdated
Comment thread packages/components/actions-panel/actions-panel.spec.ts
@artembelik

Copy link
Copy Markdown
Contributor Author

/approve-snapshots

@github-actions

Copy link
Copy Markdown

🔄 Updating snapshots.

@github-actions

Copy link
Copy Markdown

🚨 Failed to update snapshots.

@github-actions

Copy link
Copy Markdown

🚨 E2E tests failed

Review the report for details.


💡 Comment /approve-snapshots to approve snapshot changes.

@github-actions

Copy link
Copy Markdown

🚨 E2E tests failed

Review the report for details.


💡 Comment /approve-snapshots to approve snapshot changes.

@github-actions

Copy link
Copy Markdown

🚨 E2E tests failed

Review the report for details.


💡 Comment /approve-snapshots to approve snapshot changes.

@github-actions

Copy link
Copy Markdown

🚨 E2E tests failed

Review the report for details.


💡 Comment /approve-snapshots to approve snapshot changes.

@artembelik artembelik marked this pull request as draft June 22, 2026 07:49
@github-actions

Copy link
Copy Markdown

🚨 E2E tests failed

Review the report for details.


💡 Comment /approve-snapshots to approve snapshot changes.

@artembelik

Copy link
Copy Markdown
Contributor Author

/approve-snapshots

@github-actions

Copy link
Copy Markdown

🔄 Updating snapshots.

@github-actions

Copy link
Copy Markdown

🚨 Failed to update snapshots.

@github-actions

Copy link
Copy Markdown

🚨 E2E tests failed

Review the report for details.


💡 Comment /approve-snapshots to approve snapshot changes.

@artembelik

Copy link
Copy Markdown
Contributor Author

/approve-snapshots

@github-actions

Copy link
Copy Markdown

🔄 Updating snapshots.

@github-actions

Copy link
Copy Markdown

🚨 Failed to update snapshots.

@github-actions

Copy link
Copy Markdown

🚨 E2E tests failed

Review the report for details.


💡 Comment /approve-snapshots to approve snapshot changes.

@artembelik

Copy link
Copy Markdown
Contributor Author

/approve-snapshots

@github-actions

Copy link
Copy Markdown

🔄 Updating snapshots.

@github-actions

Copy link
Copy Markdown

✅ Snapshots updated!

@artembelik artembelik marked this pull request as ready for review June 22, 2026 13:17
@artembelik artembelik requested a review from Copilot June 22, 2026 13:20

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

Copilot reviewed 10 out of 12 changed files in this pull request and generated 3 comments.

Comment thread packages/components/breadcrumbs/e2e.playwright-spec.ts Outdated
Comment thread packages/components/actions-panel/actions-panel.ts
Comment thread packages/components/actions-panel/actions-panel.ts
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment thread packages/components/top-bar/__screenshots__/01-dark.png
Comment thread packages/components/actions-panel/actions-panel.spec.ts
@artembelik artembelik merged commit 49d6ff9 into main Jun 23, 2026
8 checks passed
@artembelik artembelik deleted the fix/DS-5130 branch June 23, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants