Skip to content

Conversation

@jsjames
Copy link
Contributor

@jsjames jsjames commented Feb 8, 2026

This PR updates the widget-mixin to a composable - as a step necessary to use composition api with widget components.

In composition API, components must be registered globally if referenced by name - hence all widgets are registered globally. Note, there is no performance impact here.

Cleanup of importing components in each of the widgets will happen in later PR now that they are globally registered.

Adds typescript definitions for widget definitions

Removed special title overflow in oh-list-item for divider as css text-overflow does the same operation and is now part of the f7 styles.

@relativeci
Copy link

relativeci bot commented Feb 8, 2026

#4601 Bundle Size — 12.85MiB (+0.23%).

e320191(current) vs 9682acd main#4599(baseline)

Warning

Bundle contains 2 duplicate packages – View duplicate packages

Bundle metrics  Change 5 changes Regression 1 regression
                 Current
#4601
     Baseline
#4599
Regression  Initial JS 3.23MiB(+104.18%) 1.58MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 8.47% 6.65%
Change  Chunks 592(-1.66%) 602
Change  Assets 669(-2.48%) 686
Change  Modules 2598(+0.15%) 2594
No change  Duplicate Modules 0 0
No change  Duplicate Code 0% 0%
No change  Packages 123 123
No change  Duplicate Packages 1 1
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
#4601
     Baseline
#4599
Regression  JS 11.13MiB (+0.27%) 11.1MiB
Improvement  CSS 895.03KiB (-0.02%) 895.16KiB
No change  Fonts 526.1KiB 526.1KiB
No change  Media 295.6KiB 295.6KiB
No change  IMG 45.73KiB 45.73KiB
No change  Other 847B 847B

Bundle analysis reportBranch jsjames:use-widget-contextProject dashboard


Generated by RelativeCIDocumentationReport issue

@jsjames jsjames marked this pull request as draft February 8, 2026 03:54
@jsjames jsjames force-pushed the use-widget-context branch 5 times, most recently from 14cb976 to 41aea78 Compare February 8, 2026 19:17
@jsjames jsjames added main ui Main UI dependencies Pull requests that update a dependency file labels Feb 8, 2026
function childContext(component: UiComponent): WidgetContext {
return {
component,
// rootcomponent: context?.root || context?.component,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@florian-h05 - I don't see anywhere that rootcomponent is used? Is this legacy and can we remove?

if (context?.component.slots) Object.assign(widget.slots, context.component.slots)
const widgetContext = {
component: widget,
// root: widget,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@florian-h05 same here, i don't see where root is used.

@jsjames jsjames force-pushed the use-widget-context branch from 41aea78 to 2dc7d1d Compare February 8, 2026 20:20
@jsjames jsjames marked this pull request as ready for review February 8, 2026 20:20
Signed-off-by: Jeff James <[email protected]> (+1 squashed commit)
Squashed commits:
[1ee38f0dc] Updated performance (+2 squashed commits)
Squashed commits:
[f3ea89d7a] Performance metrics
[3e02a0f3c] WIP (+5 squashed commits)
Squashed commits:
[f07c59d] WIP
[20ffc61] WIP
[1638608] WIP
[b42cfd0] WIP
[7feb909] WIP (+3 squashed commits)
Squashed commits:
[63a4a18] working
[408705a] WIP
[7be6336] WIP

Signed-off-by: Jeff James <[email protected]>
@jsjames jsjames force-pushed the use-widget-context branch from 8373734 to 5d14a3f Compare February 9, 2026 05:29
@jsjames jsjames marked this pull request as draft February 9, 2026 17:07
@jsjames jsjames marked this pull request as ready for review February 9, 2026 17:22
@jsjames jsjames removed the dependencies Pull requests that update a dependency file label Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

main ui Main UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant