feat: refactor uses handling and enhance category structure for improved organization and localization

This commit is contained in:
2025-09-03 18:40:47 +02:00
parent 8857b53854
commit e7b3e5fcc4
13 changed files with 139 additions and 86 deletions

View File

@@ -10,7 +10,10 @@ export enum ChatType {
EXPERIENCES = 'experiences',
SKILLS = 'skills',
HOBBIES = 'hobbies',
USES = 'uses',
IDE = 'ide',
HARDWARE = 'hardware',
SOFTWARE = 'software',
HOMELAB = 'homelab',
STATUS = 'status',
CREDITS = 'credits',
CONTACT = 'contact',
@@ -176,11 +179,32 @@ export const ChatMessages = [
fetchStates: [ChatFetchState.CHECKING],
},
{
label: 'command.uses.label',
label: 'command.hardware.label',
icon: 'i-ph-chalkboard-simple-duotone',
prompt: 'command.uses.prompt',
type: ChatType.USES,
fetchStates: [ChatFetchState.FETCHING, ChatFetchState.GENERATING],
prompt: 'command.hardware.prompt',
type: ChatType.HARDWARE,
fetchStates: [ChatFetchState.FETCHING],
},
{
label: 'command.software.label',
icon: 'i-ph-chalkboard-simple-duotone',
prompt: 'command.software.prompt',
type: ChatType.SOFTWARE,
fetchStates: [ChatFetchState.FETCHING],
},
{
label: 'command.homelab.label',
icon: 'i-ph-chalkboard-simple-duotone',
prompt: 'command.homelab.prompt',
type: ChatType.HOMELAB,
fetchStates: [ChatFetchState.FETCHING],
},
{
label: 'command.ide.label',
icon: 'i-ph-chalkboard-simple-duotone',
prompt: 'command.ide.prompt',
type: ChatType.IDE,
fetchStates: [ChatFetchState.FETCHING],
},
].sort((a, b) => a.label.localeCompare(b.label)),
},