Skip to content

launcher: pass badgeLabel through for external plugin items - #3152

Draft
wbartcollins wants to merge 1 commit into
AvengeMedia:masterfrom
wbartcollins:plugin-badge-label
Draft

launcher: pass badgeLabel through for external plugin items#3152
wbartcollins wants to merge 1 commit into
AvengeMedia:masterfrom
wbartcollins:plugin-badge-label

Conversation

@wbartcollins

Copy link
Copy Markdown

Both launcher row widgets (SpotlightResultRow and ResultItem) check item.badgeLabel before falling back to the generic "Plugin" type chip, and transformBuiltInLauncherItem already forwards the field — but transformPluginItem never copied it, so items returned by external launcher plugins can't customize their badge and always show "Plugin".

This forwards badgeLabel for external plugin items the same way the built-in transformer does. Behavior is unchanged for plugins that don't set it (empty string falls through to the existing type-label switch).

Use case: a plugin listing projects across several machines can put the machine name in the badge instead of the redundant "Plugin" label.

SpotlightResultRow and ResultItem both check item.badgeLabel before
falling back to the generic "Plugin" type label, and
transformBuiltInLauncherItem already forwards it — but
transformPluginItem never copied the field, so external launcher
plugins could not customize their badge. Forward it the same way the
built-in transformer does.
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.

1 participant