mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
fix: update category mapping and improve ID generation format in IdeationService
- Changed the category mapping for 'feature' from 'feature' to 'ui'. - Updated ID generation format to use hyphens instead of underscores for better readability. - Enhanced unit tests to reflect the updated category and ensure proper functionality.
This commit is contained in:
@@ -1631,7 +1631,7 @@ Focus on practical, implementable suggestions that would genuinely improve the p
|
||||
|
||||
private mapIdeaCategoryToFeatureCategory(category: IdeaCategory): string {
|
||||
const mapping: Record<IdeaCategory, string> = {
|
||||
feature: 'feature',
|
||||
feature: 'ui',
|
||||
'ux-ui': 'enhancement',
|
||||
dx: 'chore',
|
||||
growth: 'feature',
|
||||
@@ -1674,6 +1674,6 @@ Focus on practical, implementable suggestions that would genuinely improve the p
|
||||
}
|
||||
|
||||
private generateId(prefix: string): string {
|
||||
return `${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 11)}`;
|
||||
return `${prefix}-${Date.now()}-${Math.random().toString(36).substring(2, 11)}`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user