feat(ui): implement refreshed UX for Composer layout (#21212)

Co-authored-by: Keith Guerin <keithguerin@gmail.com>
This commit is contained in:
Jarrod Whelan
2026-03-23 19:30:48 -07:00
committed by GitHub
parent 1560131f94
commit 271908dc94
50 changed files with 1578 additions and 1362 deletions

View File

@@ -303,6 +303,7 @@ export class HookEventHandler {
coreEvents.emitHookStart({
hookName: this.getHookName(config),
eventName,
source: config.source,
hookIndex: index + 1,
totalHooks: plan.hookConfigs.length,
});

View File

@@ -28,6 +28,15 @@ export enum ConfigSource {
Extensions = 'extensions',
}
/**
* Returns true if a hook source implies it is a user-visible hook.
* Only System hooks are hidden by default to reduce noise.
*/
export function isUserVisibleHook(source?: string | ConfigSource): boolean {
if (!source) return true; // Treat unknown/legacy hooks as user-visible
return source !== ConfigSource.System;
}
/**
* Event names for the hook system
*/