fix(routes): Update feature creation event to use title instead of name

Change the feature creation event to emit 'Untitled Feature' when the title is not provided, improving clarity in event handling.
This commit is contained in:
Shirone
2026-01-27 00:25:16 +01:00
parent b7c6b8bfc6
commit e439d8a632

View File

@@ -43,7 +43,7 @@ export function createCreateHandler(featureLoader: FeatureLoader, events?: Event
if (events) {
events.emit('feature:created', {
featureId: created.id,
featureName: created.name,
featureName: created.title || 'Untitled Feature',
projectPath,
});
}