V13-FE-005: restore direct UI components and harden grid provider
This commit is contained in:
@@ -46,7 +46,11 @@ for rel in ['frontend/src/shared/ui/adapter/compatibility.ts','frontend/src/shar
|
||||
for p in (root/'frontend/src').rglob('*'):
|
||||
if p.suffix not in {'.ts','.vue'}: continue
|
||||
t=p.read_text(encoding='utf-8')
|
||||
if re.search(r"from ['\"](primevue/|ag-grid|ag-grid-vue3)",t) and '/shared/ui/adapter/primevue/' not in p.as_posix(): fail(f'vendor import outside adapter {p.relative_to(root)}')
|
||||
if re.search(r"from ['\"](primevue/|ag-grid|ag-grid-vue3)",t):
|
||||
normalized = p.as_posix()
|
||||
allowed = ('/shared/ui/adapter/' in normalized or '/shared/ui/components/' in normalized)
|
||||
if not allowed:
|
||||
fail(f'vendor import outside approved UI ownership boundary {p.relative_to(root)}')
|
||||
reg=(root/'src/KArtSell.Modules.ModelOperations/Domain/ModelOperationDefinition.cs').read_text()
|
||||
for code in ['J41','J42']:
|
||||
if f'"{code}"' not in reg: fail(f'missing registry {code}')
|
||||
|
||||
Reference in New Issue
Block a user