@@ -160,25 +160,6 @@ function createI18nStub() {
160160 } ;
161161}
162162
163- /** IUIService — delegates to IMetadataService when available, falls back to in-memory Map */
164- function createUIStub ( ) {
165- const views = new Map < string , any > ( ) ;
166- const dashboards = new Map < string , any > ( ) ;
167- return {
168- _dev : true , _serviceName : 'ui' ,
169- _deprecated : 'Use IMetadataService instead. This stub will be removed in v4.0.0.' ,
170- getView ( name : string ) { return views . get ( name ) ; } ,
171- listViews ( object ?: string ) {
172- const all = [ ...views . values ( ) ] ;
173- return object ? all . filter ( v => v . object === object ) : all ;
174- } ,
175- getDashboard ( name : string ) { return dashboards . get ( name ) ; } ,
176- listDashboards ( ) { return [ ...dashboards . values ( ) ] ; } ,
177- registerView ( name : string , definition : unknown ) { views . set ( name , definition ) ; } ,
178- registerDashboard ( name : string , definition : unknown ) { dashboards . set ( name , definition ) ; } ,
179- } ;
180- }
181-
182163/** IWorkflowService — in-memory workflow state stub */
183164function createWorkflowStub ( ) {
184165 const states = new Map < string , string > ( ) ; // recordKey → currentState
@@ -299,7 +280,6 @@ const DEV_STUB_FACTORIES: Record<string, () => Record<string, any>> = {
299280 'notification' : createNotificationStub ,
300281 'ai' : createAIStub ,
301282 'i18n' : createI18nStub ,
302- 'ui' : createUIStub ,
303283 'workflow' : createWorkflowStub ,
304284 'metadata' : createMetadataStub ,
305285 'data' : createDataStub ,
0 commit comments