Repository navigation
fix(widgets): give each widget class its own default id - #11116
Merged
Merged
Conversation
`PopupWidget` shared `'info'` with `InfoWidget`, `ToggleWidget` shared `'icon'` with `IconWidget`, and `ScrollbarWidget` used the base `'widget'`. Two of these used together without ids collided in WidgetManager. - `PopupWidget`: `'popup'`; `ToggleWidget`: `'toggle'`; `ScrollbarWidget`: `'scrollbar'` - `ScrollbarWidget` lets `Widget` apply its default props For #11113 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn
[Low impact] The PR appears safe to merge; no actionable issues were found. SummaryGives
Reviews (2) · Last reviewed commit: "fix(widgets): give each widget class its..." · Reviewed by Greptile |
ibgreen
approved these changes
Nov 15, 2026
26 tasks
This was referenced Nov 16, 2026
chrisgervang
added a commit
that referenced
this pull request
Nov 24, 2026
`PopupWidget` shared `'info'` with `InfoWidget`, `ToggleWidget` shared `'icon'` with `IconWidget`, and `ScrollbarWidget` used the base `'widget'`. Two of these used together without ids collided in WidgetManager. - `PopupWidget`: `'popup'`; `ToggleWidget`: `'toggle'`; `ScrollbarWidget`: `'scrollbar'` - `ScrollbarWidget` lets `Widget` apply its default props For #11113 Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn Co-authored-by: Claude <[email protected]> (cherry picked from commit 57a7399)
7 tasks done
Collaborator
Author
|
Released in deck.gl 9.4.2. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For #11113
Background
PopupWidgetdefaults to'info'likeInfoWidget,ToggleWidgetto'icon'likeIconWidget, andScrollbarWidgetfalls back to the base'widget'. Two of these used together without ids collide inWidgetManager. Default ids aren't documented, and nothing reads them outside widget matching.Change List
PopupWidget: default id'popup'ToggleWidget: default id'toggle'ScrollbarWidget: default id'scrollbar'ScrollbarWidget: letWidgetapplydefaultPropsinstead of pre-mergingVerified with
yarn lint,tsc -b modules/widgetsand theheadlesstests forwidgets.Generated by Claude Code
Note
Low Risk
Low risk updates to default widget ID strings that resolve collisions, backed by a new unit test.
Overview
Assigns distinct default IDs to
PopupWidget('popup'),ToggleWidget('toggle'), andScrollbarWidget('scrollbar') to prevent ID collisions inWidgetManagerwhen used without custom IDs.Additionally simplifies
ScrollbarWidget's constructor by delegating default prop resolution to the baseWidgetclass, and adds a test ensuring all exported widget classes have unique default IDs.Reviewed by Cursor Bugbot for commit 48c6491. Bugbot is set up for automated code reviews on this repo. Configure here.