feat: Implement Default Preset Selection for Conversations 📌 (#1275)

* fix: type issues with icons

* refactor: use react query for presets, show toasts on preset crud, refactor mutations, remove presetsQuery from Root (breaking change)

* refactor: change preset titling

* refactor: update preset schemas and methods for necessary new properties `order` and `defaultPreset`

* feat: add `defaultPreset` Recoil value

* refactor(getPresetTitle): make logic cleaner and more concise

* feat: complete UI portion of defaultPreset feature, with animations added to preset items

* chore: remove console.logs()

* feat: complete default preset handling

* refactor: remove user sensitive values on logout

* fix: allow endpoint selection without default preset overwriting
This commit is contained in:
Danny Avila 2023-12-06 14:00:15 -05:00 committed by GitHub
parent fdb65366d7
commit ca64efec1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 681 additions and 270 deletions

View file

@ -178,9 +178,22 @@ export default {
'Set custom instructions to include in System Message. Default: none',
com_endpoint_import: 'Import',
com_endpoint_set_custom_name: 'Set a custom name, in case you can find this preset',
com_endpoint_preset_delete_confirm: 'Are you sure you want to delete this preset?',
com_endpoint_preset_clear_all_confirm: 'Are you sure you want to delete all of your presets?',
com_endpoint_preset_import: 'Preset Imported!',
com_endpoint_preset_import_error: 'There was an error importing your preset. Please try again.',
com_endpoint_preset_save_error: 'There was an error saving your preset. Please try again.',
com_endpoint_preset_delete_error: 'There was an error deleting your preset. Please try again.',
com_endpoint_preset_default_removed: 'is no longer the default preset.',
com_endpoint_preset_default_item: 'Default:',
com_endpoint_preset_default_none: 'No default preset active.',
com_endpoint_preset_title: 'Preset',
com_endpoint_preset_saved: 'Saved!',
com_endpoint_preset_default: 'is now the default preset.',
com_endpoint_preset: 'preset',
com_endpoint_presets: 'presets',
com_endpoint_preset_selected: 'Preset Active!',
com_endpoint_preset_selected_title: 'Active!',
com_endpoint_preset_name: 'Preset Name',
com_endpoint_new_topic: 'New Topic',
com_endpoint: 'Endpoint',