Skip to content

themebuilder: rewrite to signals - #390

Draft
vorobey wants to merge 7 commits into
DevExpress:masterfrom
vorobey:feature/angular-zoneless-support
Draft

vorobey wants to merge 7 commits into
DevExpress:masterfrom
vorobey:feature/angular-zoneless-support

Conversation

@vorobey

@vorobey vorobey commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Removes zone.js from themebuilder, rewrites syntax, uses signals

@vorobey vorobey self-assigned this Nov 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Skipping the initial effect run leaves collapsed previews uninitialized, causing list, menu, and form templates to render empty because unchanged false signals do not trigger another run.

1 open issue
1 file not reviewed
  • pnpm-lock.yaml: Generated file
What changed in this PR

Migrates ThemeBuilder to Angular’s zoneless change detection, replacing observable-backed UI state with signals across the editor and widget previews.

Changes:

  • Removes the legacy polyfill entry point and direct Zone.js dependency.
  • Converts shared services, component state, and template bindings to signals.
  • Centralizes preview expansion handling and improves event-listener cleanup.
File Description
src/​tsconfig.spec.json Removes the deleted polyfill entry.
src/​polyfills.ts Deletes legacy browser and Zone.js polyfills.
src/​main.ts Enables zoneless change detection.
src/​app/​preview/​treeview/​treeview.component.ts Converts expansion state to a signal.
src/​app/​preview/​treelist/​treelist.component.ts Uses signal-based expansion handling.
src/​app/​preview/​toolbar/​toolbar.component.ts Converts expansion state to a signal.
src/​app/​preview/​tabs/​tabs.component.ts Converts expansion state to a signal.
src/​app/​preview/​stepper/​stepper.component.ts Replaces expansion subscriptions with a signal.
src/​app/​preview/​stepper/​stepper.component.html Reads expansion state from the signal.
src/​app/​preview/​splitter/​splitter.component.ts Replaces expansion subscriptions with a signal.
src/​app/​preview/​splitter/​splitter.component.html Reads expansion state from the signal.
src/​app/​preview/​sliders/​sliders.component.ts Converts expansion state to a signal.
src/​app/​preview/​scrollview/​scrollview.component.ts Converts expansion state to a signal.
src/​app/​preview/​scheduler/​scheduler.component.ts Uses signal-based expansion handling.
src/​app/​preview/​progressbar/​progressbar.component.ts Converts expansion state to a signal.
src/​app/​preview/​preview/​preview.component.ts Types widget references and writes expansion signals.
src/​app/​preview/​pivotgrid/​pivotgrid.component.ts Moves option updates into signal-driven handling.
src/​app/​preview/​overlays/​overlays.component.ts Derives overlay targets and cleans up transition listeners.
src/​app/​preview/​overlays/​overlays.component.html Reads expansion and positioning signals.
src/​app/​preview/​menu/​menu.component.ts Uses signal-based expansion handling.
src/​app/​preview/​list/​list.component.ts Uses signal-based expansion handling.
src/​app/​preview/​index.component.ts Registers window messages through HostListener.
src/​app/​preview/​gallery/​gallery.component.ts Converts expansion state to a signal.
src/​app/​preview/​form/​form.component.ts Uses signal-based expansion handling.
src/​app/​preview/​filterbuilder/​filterbuilder.component.ts Converts expansion state to a signal.
src/​app/​preview/​fieldset/​fieldset.component.ts Converts expansion state to a signal.
src/​app/​preview/​expandable.ts Adds the shared expansion interface and effect helper.
src/​app/​preview/​editors/​editors.component.ts Triggers expanded validation through the shared helper.
src/​app/​preview/​editors/​editors.component.html Reads expansion state from the signal.
src/​app/​preview/​drawer/​drawer.component.ts Converts expansion state to a signal.
src/​app/​preview/​datatgrid/​datatgrid.component.ts Uses signal-based expansion handling.
src/​app/​preview/​chat/​chat.component.ts Replaces expansion subscriptions with a signal.
src/​app/​preview/​chat/​chat.component.html Reads expansion state from the signal.
src/​app/​preview/​cardview/​cardview.component.ts Uses signal-based expansion handling.
src/​app/​preview/​buttons/​buttons.component.ts Converts expansion state to a signal.
src/​app/​preview/​buttons/​buttons.component.html Reads expansion state from the signal.
src/​app/​preview/​button-group/​button-group.component.ts Converts expansion state to a signal.
src/​app/​preview/​button-group/​button-group.component.html Reads expansion state from the signal.
src/​app/​preview/​accordion/​accordion.component.ts Converts expansion state to a signal.
src/​app/​notify-error/​notify-error.component.ts Derives notification text and dismissible visibility.
src/​app/​notify-error/​notify-error.component.html Reads notification signals.
src/​app/​notification.service.ts Exposes notifications through a readonly signal.
src/​app/​meta-repository.service.ts Publishes CSS builds through a signal.
src/​app/​master/​master.component.ts Converts theme lists and iframe visibility to signals.
src/​app/​master/​master.component.html Reads theme-list and visibility signals.
src/​app/​loading.service.ts Exposes loading state through a readonly signal.
src/​app/​left-menu/​main/​left-menu.component.ts Uses signal-backed menu data and managed search cleanup.
src/​app/​left-menu/​main/​left-menu.component.html Reads menu and search-result signals.
src/​app/​left-menu/​base-parameters/​base-parameters.component.ts Reloads signal-backed parameters through an effect.
src/​app/​left-menu/​base-parameters/​base-parameters.component.html Iterates over the parameter signal.
src/​app/​layouts/​loading/​loading.component.ts Consumes the loading service signal directly.
src/​app/​layouts/​loading/​loading.component.html Reads loading state from the signal.
src/​app/​layouts/​header/​popup/​popup.component.ts Converts popup visibility to a signal.
src/​app/​layouts/​header/​popup/​popup.component.html Closes the popup through its signal.
src/​app/​layouts/​header/​header.component.ts Derives theme-switcher data and selection with signals.
src/​app/​layouts/​header/​header.component.html Reads the computed switcher data.
src/​app/​layouts/​header/​export-popup/​export-popup.component.ts Uses signals for export state and import-change handling.
src/​app/​layouts/​header/​export-popup/​export-popup.component.html Updates export controls to consume signals.
src/​app/​import.service.ts Replaces change events with a revision signal.
src/​app/​iframe/​iframe.component.ts Uses effects for preview messages and managed window listeners.
pnpm-lock.yaml Updates dependency resolutions after polyfill removal.
package.json Removes direct polyfill and Zone.js dependencies.
angular.json Removes the legacy polyfill build entry.

Review effort: Balanced

Comment thread src/app/preview/expandable.ts Resolved
@vorobey
vorobey requested a review from a team November 12, 2026 12:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Dependencies reference unprovisioned archives in ../tgz, causing frozen-lockfile installation to fail on clean checkouts and blocking CI builds and deployment.

1 open issue
1 resolved since last review
1 file not reviewed
  • pnpm-lock.yaml: Generated file

Review effort: Balanced

Comment thread package.json
Comment on lines +25 to +27
"devextreme": "file:../tgz/devextreme-26.2.0.tgz",
"devextreme-angular": "file:../tgz/devextreme-angular-26.2.0.tgz",
"devextreme-themebuilder": "file:../tgz/devextreme-themebuilder-26.2.0.tgz",

This branch has not been deployed

No deployments
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.

2 participants