Skip to content

refactor: expose tooltip open/close via TooltipController#11568

Merged
web-padawan merged 1 commit intomainfrom
refactor/tooltip-controller-open-close
Apr 27, 2026
Merged

refactor: expose tooltip open/close via TooltipController#11568
web-padawan merged 1 commit intomainfrom
refactor/tooltip-controller-open-close

Conversation

@vursen
Copy link
Copy Markdown
Contributor

@vursen vursen commented Apr 24, 2026

Description

Add open(options) and close(immediate) to TooltipController that delegate to the slotted tooltip's state controller, so callers no longer need to reach into the private _stateController. Migrates menu-bar and grid over, and drops the unused setOpened method (plus its tests). Also moves the menu-bar tooltip controller setup from the public class into the mixin, alongside the other controllers.

Prerequisite for #11549.

Type of change

  • Refactor

🤖 Generated with Claude Code

@vursen vursen force-pushed the refactor/tooltip-controller-open-close branch 2 times, most recently from 9444ae2 to e22a0b1 Compare April 24, 2026 16:13
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vursen vursen force-pushed the refactor/tooltip-controller-open-close branch from e22a0b1 to 0b1f3ef Compare April 24, 2026 16:19
@sonarqubecloud
Copy link
Copy Markdown

@vursen vursen requested a review from web-padawan April 24, 2026 16:21
vursen added a commit that referenced this pull request Apr 27, 2026
Adopt the new `TooltipController.open()`/`close()` wrappers from
PR #11568 instead of reaching into `tooltip._stateController`, and
resolve the tooltip controller once at `ready()` rather than per
show/hide. `MenuBarSubmenu` now opts into sharing the parent
menu-bar's controller by pre-assigning `_tooltipController` before
calling `super.ready()`, which keeps menu-bar specifics out of the
generic `ItemsMixin`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@web-padawan web-padawan merged commit 46fad44 into main Apr 27, 2026
10 checks passed
@web-padawan web-padawan deleted the refactor/tooltip-controller-open-close branch April 27, 2026 07:21
vursen added a commit that referenced this pull request Apr 27, 2026
Adopt the new `TooltipController.open()`/`close()` wrappers from
PR #11568 instead of reaching into `tooltip._stateController`, and
resolve the tooltip controller once at `ready()` rather than per
show/hide. `MenuBarSubmenu` now opts into sharing the parent
menu-bar's controller by pre-assigning `_tooltipController` before
calling `super.ready()`, which keeps menu-bar specifics out of the
generic `ItemsMixin`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
vursen added a commit that referenced this pull request Apr 27, 2026
Adopt the new `TooltipController.open()`/`close()` wrappers from
PR #11568 instead of reaching into `tooltip._stateController`, and
resolve the tooltip controller once at `ready()` rather than per
show/hide. `MenuBarSubmenu` now opts into sharing the parent
menu-bar's controller by pre-assigning `_tooltipController` before
calling `super.ready()`, which keeps menu-bar specifics out of the
generic `ItemsMixin`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
vursen added a commit that referenced this pull request Apr 27, 2026
Adopt the new `TooltipController.open()`/`close()` wrappers from
PR #11568 instead of reaching into `tooltip._stateController`, and
resolve the tooltip controller once at `ready()` rather than per
show/hide. `MenuBarSubmenu` now opts into sharing the parent
menu-bar's controller by pre-assigning `_tooltipController` before
calling `super.ready()`, which keeps menu-bar specifics out of the
generic `ItemsMixin`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
vursen added a commit that referenced this pull request Apr 27, 2026
Adopt the new `TooltipController.open()`/`close()` wrappers from
PR #11568 instead of reaching into `tooltip._stateController`, and
resolve the tooltip controller once at `ready()` rather than per
show/hide. `MenuBarSubmenu` now opts into sharing the parent
menu-bar's controller by pre-assigning `_tooltipController` before
calling `super.ready()`, which keeps menu-bar specifics out of the
generic `ItemsMixin`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

2 participants