Skip to content

Let any present widget contribute frontend packs#2443

Merged
tf merged 1 commit into
codevise:masterfrom
tf:widget-packs
Jul 13, 2026
Merged

Let any present widget contribute frontend packs#2443
tf merged 1 commit into
codevise:masterfrom
tf:widget-packs

Conversation

@tf

@tf tf commented Jul 13, 2026

Copy link
Copy Markdown
Member

Generalize the scrolled widget-to-pack mechanism: instead of only ReactWidgetType (insert_point :react) contributing a single pack, collect packs from any present widget whose type responds to packs(entry:, request:, **). This lets widgets at other insert points (e.g. the server-rendered analytics widget) selectively contribute packs, gated by widget presence, and threads the request so packs can depend on it.

ReactWidgetType now implements packs; the editor path collects from all editor-enabled widget types, the frontend path from the entry's present widgets.

REDMINE-21330

Generalize the scrolled widget-to-pack mechanism: instead of only
ReactWidgetType (insert_point :react) contributing a single pack,
collect packs from any present widget whose type responds to
packs(entry:, request:, **). This lets widgets at other insert points
(e.g. the server-rendered analytics widget) selectively contribute
packs, gated by widget presence, and threads the request so packs can
depend on it.

ReactWidgetType now implements packs; the editor path collects from all
editor-enabled widget types, the frontend path from the entry's present
widgets.

REDMINE-21330
@tf tf added this to the v17.2 milestone Jul 13, 2026
@tf tf merged commit f800761 into codevise:master Jul 13, 2026
16 checks passed
@tf tf deleted the widget-packs branch July 13, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant