🔍 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

@ -458,6 +458,24 @@ export default {
com_nav_lang_auto: 'Detección automática',
com_nav_lang_spanish: 'Español',
/* The following are AI Translated */
com_ui_date_today: 'Hoy',
com_ui_date_yesterday: 'Ayer',
com_ui_date_previous_7_days: 'Últimos 7 días',
com_ui_date_previous_30_days: 'Últimos 30 días',
com_ui_date_january: 'Enero',
com_ui_date_february: 'Febrero',
com_ui_date_march: 'Marzo',
com_ui_date_april: 'Abril',
com_ui_date_may: 'Mayo',
com_ui_date_june: 'Junio',
com_ui_date_july: 'Julio',
com_ui_date_august: 'Agosto',
com_ui_date_september: 'Septiembre',
com_ui_date_october: 'Octubre',
com_ui_date_november: 'Noviembre',
com_ui_date_december: 'Diciembre',
com_ui_nothing_found: 'No se encontró nada',
com_ui_go_to_conversation: 'Ir a la conversación',
com_error_moderation:
'Parece que el contenido enviado ha sido marcado por nuestro sistema de moderación por no estar alineado con nuestras pautas comunitarias. No podemos proceder con este tema específico. Si tiene alguna otra pregunta o tema que le gustaría explorar, por favor edite su mensaje o cree una nueva conversación.',
com_error_no_user_key:
@ -2184,6 +2202,78 @@ export const comparisons = {
english: 'Español',
translated: 'Español',
},
com_ui_date_today: {
english: 'Today',
translated: 'Hoy',
},
com_ui_date_yesterday: {
english: 'Yesterday',
translated: 'Ayer',
},
com_ui_date_previous_7_days: {
english: 'Previous 7 days',
translated: 'Últimos 7 días',
},
com_ui_date_previous_30_days: {
english: 'Previous 30 days',
translated: 'Últimos 30 días',
},
com_ui_date_january: {
english: 'January',
translated: 'Enero',
},
com_ui_date_february: {
english: 'February',
translated: 'Febrero',
},
com_ui_date_march: {
english: 'March',
translated: 'Marzo',
},
com_ui_date_april: {
english: 'April',
translated: 'Abril',
},
com_ui_date_may: {
english: 'May',
translated: 'Mayo',
},
com_ui_date_june: {
english: 'June',
translated: 'Junio',
},
com_ui_date_july: {
english: 'July',
translated: 'Julio',
},
com_ui_date_august: {
english: 'August',
translated: 'Agosto',
},
com_ui_date_september: {
english: 'September',
translated: 'Septiembre',
},
com_ui_date_october: {
english: 'October',
translated: 'Octubre',
},
com_ui_date_november: {
english: 'November',
translated: 'Noviembre',
},
com_ui_date_december: {
english: 'December',
translated: 'Diciembre',
},
com_ui_nothing_found: {
english: 'Nothing found',
translated: 'No se encontró nada',
},
com_ui_go_to_conversation: {
english: 'Go to conversation',
translated: 'Ir a la conversación',
},
com_error_moderation: {
english:
'It appears that the content submitted has been flagged by our moderation system for not aligning with our community guidelines. We\'re unable to proceed with this specific topic. If you have any other questions or topics you\'d like to explore, please edit your message, or create a new conversation.',