mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-14 13:54:01 +01:00
feat: refactor uses handling and enhance category structure for improved organization and localization
This commit is contained in:
@@ -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)),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user