You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Renames Widget.ComponentPath to Widget.Component and types it as PayloadComponent instead of string
This aligns dashboard widgets with every other component reference in Payload (collections, globals, fields, admin components) - none of them use path in the property name, and all of them are typed as PayloadComponent
Enables new typescript plugin to work for widget paths (the plugin uses PayloadComponent contextual type detection - string-typed properties were invisible to it)
Breaking Change
Widget.ComponentPath has been renamed to Widget.Component.
AlessioGr
changed the title
refactor(dashboard)!: rename widget ComponentPath to Component for consistency
refactor!: rename widget ComponentPath to Component for consistency
Feb 27, 2026
Next to the size is how much the size has increased or decreased compared with the base branch of this PR.
‼️: Size increased by 20% or more. Special attention should be given to this.
⚠️: Size increased in acceptable range (lower than 20%).
✅: No change or even downsized.
🗑️: The out file is deleted: not found in base branch.
🆕: The out file is newly found: will be added to base branch.
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
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.
Widget.ComponentPathtoWidget.Componentand types it asPayloadComponentinstead ofstringPayloadComponentPayloadComponentcontextual type detection -string-typed properties were invisible to it)Breaking Change
Widget.ComponentPathhas been renamed toWidget.Component.Migration
Find and replace in your Payload config:
widgets: [ { slug: 'my-widget', - ComponentPath: './components/MyWidget#MyWidget', + Component: './components/MyWidget#MyWidget', }, ]