arch(sprint1): drive widget registry from manifest

This commit is contained in:
sdarbinyan
2026-07-03 02:07:12 +04:00
parent 8132c1a535
commit 8d47920fa3
3 changed files with 93 additions and 15 deletions

View File

@@ -27,15 +27,28 @@ export class PlatformRuntimeService {
this.configService.loadBootstrap().pipe(take(1)).subscribe({
next: (bootstrap) => {
this.widgetRegistryBootstrap.registerDefaults();
this.themeEngine.applyTheme(bootstrap.theme);
this.brandingEngine.applyBranding(bootstrap.branding);
this.runtimeState.markInitialized({
localization: bootstrap.localization,
featureFlags: bootstrap.featureFlags,
permissions: bootstrap.permissions
this.widgetRegistryBootstrap.registerFromManifest().subscribe({
next: () => {
this.themeEngine.applyTheme(bootstrap.theme);
this.brandingEngine.applyBranding(bootstrap.branding);
this.runtimeState.markInitialized({
localization: bootstrap.localization,
featureFlags: bootstrap.featureFlags,
permissions: bootstrap.permissions
});
this.initializing = false;
},
error: () => {
this.themeEngine.applyTheme(bootstrap.theme);
this.brandingEngine.applyBranding(bootstrap.branding);
this.runtimeState.markInitialized({
localization: bootstrap.localization,
featureFlags: bootstrap.featureFlags,
permissions: bootstrap.permissions
});
this.initializing = false;
}
});
this.initializing = false;
},
error: () => {
this.initializing = false;