🔖 feat: Conversation Bookmarks (#3344)

* feat: add tags property in Conversation model

* feat: add ConversationTag model

* feat: add the tags parameter to getConvosByPage

* feat: add API route to ConversationTag

* feat: add types of ConversationTag

* feat: add data access functions for conversation tags

* feat: add Bookmark table component

* feat: Add an action to bookmark

* feat: add Bookmark nav component

* fix: failed test

* refactor: made 'Saved' tag a constant

* feat: add new bookmark to current conversation

* chore: Add comment

* fix: delete tag from conversations when it's deleted

* fix: Update the query cache when the tag title is changed.

* chore: fix typo

* refactor: add description of rebuilding bookmarks

* chore: remove unused variables

* fix: position when adding a new bookmark

* refactor: add comment, rename a function

* refactor: add a unique constraint in ConversationTag

* chore: add localizations
This commit is contained in:
Yuichi Oneda 2024-07-29 07:45:59 -07:00 committed by GitHub
parent d4d56281e3
commit e565e0faab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
65 changed files with 3751 additions and 36 deletions

View file

@ -5,6 +5,7 @@ export default {
com_sidepanel_select_assistant: 'בחר סייען',
com_sidepanel_assistant_builder: 'בניית סייען',
com_sidepanel_attach_files: 'צרף קבצים',
com_sidepanel_conversation_tags: 'סימניות',
com_assistants_knowledge: 'ידע',
com_assistants_knowledge_info:
'אם אתה מעלה קבצים תחת ידע, שיחות עם ה-סייען שלך עשויות לכלול תוכן מהקובץ.',
@ -119,6 +120,20 @@ export default {
_ui_preview: 'תצוגה מקדימה',
com_ui_upload: 'העלה',
com_ui_connect: 'התחבר',
com_ui_bookmarks: 'סימניות',
com_ui_bookmarks_rebuild: 'בנה מחדש',
com_ui_bookmarks_new: 'סימניה חדשה',
com_ui_bookmark_delete_confirm: 'האם אתה בטוח שברצונך למחוק את הסימניה הזו?',
com_ui_bookmarks_title: 'כותרת',
com_ui_bookmarks_count: 'ספירה',
com_ui_bookmarks_description: 'תיאור',
com_ui_bookmarks_create_success: 'הסימניה נוצרה בהצלחה',
com_ui_bookmarks_update_success: 'הסימניה עודכנה בהצלחה',
com_ui_bookmarks_delete_success: 'הסימניה נמחקה בהצלחה',
com_ui_bookmarks_create_error: 'אירעה שגיאה בעת יצירת הסימניה',
com_ui_bookmarks_update_error: 'אירעה שגיאה בעת עדכון הסימניה',
com_ui_bookmarks_delete_error: 'אירעה שגיאה בעת מחיקת הסימניה',
com_ui_bookmarks_add_to_conversation: 'הוסף לשיחה הנוכחית',
com_auth_error_login: 'לא ניתן להתחבר עם המידע שסופק. אנא בדוק את האישורים שלך ונסה שוב.',
com_auth_error_login_rl: 'יותר מדי ניסיונות כניסה בזמן קצר. בבקשה נסה שוב מאוחר יותר.',
com_auth_error_login_ban: 'החשבון שלך נחסם באופן זמני עקב הפרות של השירות שלנו.',
@ -392,6 +407,8 @@ export default {
com_nav_help_faq: 'עזרה ושאלות נפוצות',
com_nav_settings: 'הגדרות',
com_nav_search_placeholder: 'חפש הודעות',
com_nav_info_bookmarks_rebuild:
'אם ספירת הסימניות שגויה, נא לבנות מחדש את המידע של הסמניות. הספירה תחושב מחדש והנתונים ישוחזרו למצב הנכון.',
com_nav_setting_general: 'כללי',
com_nav_setting_beta: 'תכונות ביטא',
com_nav_setting_data: 'בקרות נתונים',
@ -411,6 +428,10 @@ export const comparisons = {
english: 'Attach Files',
translated: 'צרף קבצים',
},
com_sidepanel_conversation_tags: {
english: 'Bookmarks',
translated: 'סימניות',
},
com_assistants_knowledge: {
english: 'Knowledge',
translated: 'ידע',
@ -842,6 +863,62 @@ export const comparisons = {
english: 'Connect',
translated: 'התחבר',
},
com_ui_bookmarks: {
english: 'Bookmarks',
translated: 'סימניות',
},
com_ui_bookmarks_rebuild: {
english: 'Rebuild',
translated: 'בנה מחדש',
},
com_ui_bookmarks_new: {
english: 'New Bookmark',
translated: 'סימניה חדשה',
},
com_ui_bookmark_delete_confirm: {
english: 'Are you sure you want to delete this bookmark?',
translated: 'האם אתה בטוח שברצונך למחו את הסימניה הזו?',
},
com_ui_bookmarks_title: {
english: 'Title',
translated: 'כותרת',
},
com_ui_bookmarks_count: {
english: 'Count',
translated: 'ספירה',
},
com_ui_bookmarks_description: {
english: 'Description',
translated: 'תיאור',
},
com_ui_bookmarks_create_success: {
english: 'Bookmark created successfully',
translated: 'הסימניה נוצרה בהצלחה',
},
com_ui_bookmarks_update_success: {
english: 'Bookmark updated successfully',
translated: 'הסימניה עודכנה בהצלחה',
},
com_ui_bookmarks_delete_success: {
english: 'Bookmark deleted successfully',
translated: 'הסימניה נמחקה בהצלחה',
},
com_ui_bookmarks_create_error: {
english: 'There was an error creating the bookmark',
translated: 'אירעה שגיאה בעת יצירת הסימניה',
},
com_ui_bookmarks_update_error: {
english: 'There was an error updating the bookmark',
translated: 'אירעה שגיאה בעת עדכון הסימניה',
},
com_ui_bookmarks_delete_error: {
english: 'There was an error deleting the bookmark',
translated: 'אירעה שגיאה בעת מחיקת הסימניה',
},
com_ui_bookmarks_add_to_conversation: {
english: 'Add to current conversation',
translated: 'הוסף לשיחה הנוכחית',
},
com_auth_error_login: {
english:
'Unable to login with the information provided. Please check your credentials and try again.',
@ -1858,6 +1935,12 @@ export const comparisons = {
english: 'Search messages',
translated: 'חפש הודעות',
},
com_nav_info_bookmarks_rebuild: {
english:
'If the bookmark count is incorrect, please rebuild the bookmark information. The bookmark count will be recalculated and the data will be restored to its correct state.',
translated:
'אם ספירת הסימניות שגויה, נא לבנות מחדש את המידע של הסמניות. הספירה תחושב מחדש והנתונים ישוחזרו למצב הנכון.',
},
com_nav_setting_general: {
english: 'General',
translated: 'כללי',