Skip to content

Conversation

@benceruleanlu
Copy link
Member

@benceruleanlu benceruleanlu commented Oct 15, 2025

Summary

Refactor and cleanup WorkflowTabs scroll/overflow handling to improve stability, ensure proper watcher disposal, and keep the active tab in view more reliably.

note: honestly a nit, can drop if review is too annoying

Changes

  • What:
    • Replace ScrollPanel ref with containerRef and query .p-scrollpanel-content within the container.
    • Add computed scrollContent to centralize access to the scrollable element.
    • Add ensureActiveTabVisible({ waitForDom }) option to skip nextTick when not needed.
    • Rework watchers with explicit WatchStopHandles and onCleanup to stop previous watchers and dispose overflowObserver correctly when scrollContent changes.
    • Update arrow enable logic by watching arrivedState.left/right together and setting leftArrowEnabled/rightArrowEnabled immediately.
    • Only measure and re-ensure visibility when overflowing; call scrollState.measure() and ensureActiveTabVisible({ waitForDom: false }) after arrows update.
  • Breaking: None
  • Dependencies: None

Review Focus

  • Correctness of watcher lifecycle and cleanup when scrollContent changes
  • Arrow enablement behavior at scroll boundaries
  • Reliability of ensureActiveTabVisible across tab selection and overflow changes
  • Regressions in scroll performance and tab visibility

Screenshots (if applicable)

N/A

┆Issue is synchronized with this Notion page by Unito

@github-actions
Copy link

github-actions bot commented Oct 15, 2025

🎭 Playwright Test Results

Some tests failed

⏰ Completed at: 10/17/2025, 05:52:57 PM UTC

📈 Summary

  • Total Tests: 497
  • Passed: 463 ✅
  • Failed: 1 ❌
  • Flaky: 3 ⚠️
  • Skipped: 30 ⏭️

📊 Test Reports by Browser

  • chromium: View Report • ✅ 454 / ❌ 1 / ⚠️ 3 / ⏭️ 30
  • chromium-2x: View Report • ✅ 2 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • chromium-0.5x: View Report • ✅ 1 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • mobile-chrome: View Report • ✅ 6 / ❌ 0 / ⚠️ 0 / ⏭️ 0

🎉 Click on the links above to view detailed test results for each browser configuration.

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Oct 15, 2025
@christian-byrne christian-byrne added the claude-review Add to trigger a PR code review from Claude Code label Oct 17, 2025
@github-actions github-actions bot removed the claude-review Add to trigger a PR code review from Claude Code label Oct 17, 2025
Base automatically changed from codex/fix-issue-6057-in-comfyui to main October 17, 2025 07:37
@christian-byrne
Copy link
Contributor

christian-byrne commented Oct 17, 2025

Did I merge in wrong order? Seems to be a conflict now.

@benceruleanlu
Copy link
Member Author

benceruleanlu commented Oct 17, 2025

Did I merge in wrong order? Seems to be a conflict now.

no the order is correct, I believe it's because it was a squash merge

fixing conflicts now fixed

@benceruleanlu benceruleanlu force-pushed the bl-workflow-tabs-cleanup branch from 76625a8 to 8812a0f Compare October 17, 2025 17:36
@github-actions
Copy link

github-actions bot commented Oct 17, 2025

🎨 Storybook Build Status

Build completed successfully!

⏰ Completed at: 10/17/2025, 05:37:54 PM UTC

🔗 Links


🎉 Your Storybook is ready for review!

Copy link
Contributor

@christian-byrne christian-byrne left a comment

Choose a reason for hiding this comment

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

LGTM, great PR

@christian-byrne christian-byrne merged commit 8dee207 into main Oct 17, 2025
25 of 26 checks passed
@christian-byrne christian-byrne deleted the bl-workflow-tabs-cleanup branch October 17, 2025 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

perf:memory size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants