🔍 feat: Show Messages from Search Result (#2699)

* refactor(Nav): delegate Search-specific variables/hooks to SearchContext

* fix: safely determine firstTodayConvoId if convo is undefined

* chore: remove empty line

* feat: initial render of search messages

* feat: SearchButtons

* update Ko.ts

* update localizations with new key phrases

* chore: localization comparisons

* fix: clear conversation state on searchQuery navigation

* style: search messages view styling

* refactor(Convo): consolidate logic to navigateWithLastTools from useNavigateToConvo

* fix(SearchButtons): styling and correct navigation logic

* fix(SearchBar): invalidate all message queries and invoke `clearText` if onChange value is empty

* refactor(NewChat): consolidate new chat button logic to NewChatButtonIcon

* chore: localizations for Nav date groups

* chore: update comparisons

* fix: early return from sendRequest to avoid quick searchQuery reset

* style: Link Icon

* chore: bump tiktoken, use o200k_base for gpt-4o
This commit is contained in:
Danny Avila 2024-05-14 11:00:01 -04:00 committed by GitHub
parent 638ac5bba6
commit e42709bd1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 2742 additions and 234 deletions

View file

@ -54,6 +54,22 @@ export default {
com_assistants_update_error: 'There was an error updating your assistant.',
com_assistants_create_success: 'Successfully created',
com_assistants_create_error: 'There was an error creating your assistant.',
com_ui_date_today: 'Today',
com_ui_date_yesterday: 'Yesterday',
com_ui_date_previous_7_days: 'Previous 7 days',
com_ui_date_previous_30_days: 'Previous 30 days',
com_ui_date_january: 'January',
com_ui_date_february: 'February',
com_ui_date_march: 'March',
com_ui_date_april: 'April',
com_ui_date_may: 'May',
com_ui_date_june: 'June',
com_ui_date_july: 'July',
com_ui_date_august: 'August',
com_ui_date_september: 'September',
com_ui_date_october: 'October',
com_ui_date_november: 'November',
com_ui_date_december: 'December',
com_ui_field_required: 'This field is required',
com_ui_download_error: 'Error downloading file. The file may have been deleted.',
com_ui_attach_error_type: 'Unsupported file type for endpoint:',
@ -165,6 +181,8 @@ export default {
com_ui_revoke: 'Revoke',
com_ui_revoke_info: 'Revoke all user provided credentials',
com_ui_import_conversation: 'Import',
com_ui_nothing_found: 'Nothing found',
com_ui_go_to_conversation: 'Go to conversation',
com_ui_import_conversation_info: 'Import conversations from a JSON file',
com_ui_import_conversation_success: 'Conversations imported successfully',
com_ui_import_conversation_error: 'There was an error importing your conversations',