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:
webdevcody
2026-01-04 00:22:06 -05:00
parent abddfad063
commit 5c95d6d58e
2 changed files with 33 additions and 8 deletions

View File

@@ -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)}`;
}
}