🔍 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

@ -455,6 +455,24 @@ export default {
com_nav_setting_data: 'データ管理',
com_nav_setting_account: 'アカウント',
/* The following are AI translated */
com_ui_date_today: '今日',
com_ui_date_yesterday: '昨日',
com_ui_date_previous_7_days: '過去7日間',
com_ui_date_previous_30_days: '過去30日間',
com_ui_date_january: '1月',
com_ui_date_february: '2月',
com_ui_date_march: '3月',
com_ui_date_april: '4月',
com_ui_date_may: '5月',
com_ui_date_june: '6月',
com_ui_date_july: '7月',
com_ui_date_august: '8月',
com_ui_date_september: '9月',
com_ui_date_october: '10月',
com_ui_date_november: '11月',
com_ui_date_december: '12月',
com_ui_nothing_found: '該当するものが見つかりませんでした',
com_ui_go_to_conversation: '会話に移動する',
com_error_invalid_user_key: '無効なキーが提供されました。キーを入力して再試行してください。',
com_ui_none_selected: '選択されていません',
com_ui_fork: '分岐',
@ -2193,6 +2211,78 @@ export const comparisons = {
english: 'Account',
translated: 'アカウント',
},
com_ui_date_today: {
english: 'Today',
translated: '今日',
},
com_ui_date_yesterday: {
english: 'Yesterday',
translated: '昨日',
},
com_ui_date_previous_7_days: {
english: 'Previous 7 days',
translated: '過去7日間',
},
com_ui_date_previous_30_days: {
english: 'Previous 30 days',
translated: '過去30日間',
},
com_ui_date_january: {
english: 'January',
translated: '1月',
},
com_ui_date_february: {
english: 'February',
translated: '2月',
},
com_ui_date_march: {
english: 'March',
translated: '3月',
},
com_ui_date_april: {
english: 'April',
translated: '4月',
},
com_ui_date_may: {
english: 'May',
translated: '5月',
},
com_ui_date_june: {
english: 'June',
translated: '6月',
},
com_ui_date_july: {
english: 'July',
translated: '7月',
},
com_ui_date_august: {
english: 'August',
translated: '8月',
},
com_ui_date_september: {
english: 'September',
translated: '9月',
},
com_ui_date_october: {
english: 'October',
translated: '10月',
},
com_ui_date_november: {
english: 'November',
translated: '11月',
},
com_ui_date_december: {
english: 'December',
translated: '12月',
},
com_ui_nothing_found: {
english: 'Nothing found',
translated: '該当するものが見つかりませんでした',
},
com_ui_go_to_conversation: {
english: 'Go to conversation',
translated: '会話に移動する',
},
com_error_invalid_user_key: {
english: 'Invalid key provided. Please provide a key and try again.',
translated: '無効なキーが提供されました。キーを入力して再試行してください。',