feat(ui): enhance archetype and template inspectors with customization
- Add getArchetypeDisplayChar() and getTemplateDisplayChar() utils - Add getTemplateColor() utility function - ArchetypeInspector: Add color palette (30 presets), emoji selector (40 emojis), capability autocomplete, live preview, clone functionality - TemplateInspector: Same enhancements plus team composition editor
This commit is contained in:
parent
adcceb68bb
commit
7b27f673fe
3 changed files with 550 additions and 116 deletions
|
|
@ -4,3 +4,15 @@ import { twMerge } from "tailwind-merge";
|
|||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs));
|
||||
}
|
||||
|
||||
export function getArchetypeDisplayChar(archetype: { icon?: string; name: string }): string {
|
||||
return archetype.icon || archetype.name.charAt(0) || '?';
|
||||
}
|
||||
|
||||
export function getTemplateDisplayChar(template: { icon?: string; name: string }): string {
|
||||
return template.icon || template.name.charAt(0) || '?';
|
||||
}
|
||||
|
||||
export function getTemplateColor(template: { color?: string }): string {
|
||||
return template.color || '#f59e0b';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue