🔖 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

@ -80,6 +80,24 @@ export default {
com_ui_unarchive: 'Uit archiveren',
com_ui_unarchive_error: 'Kan conversatie niet uit archiveren',
com_ui_more_options: 'Meer',
com_ui_bookmarks: 'Bladwijzers',
com_ui_bookmarks_rebuild: 'Herbouwen',
com_ui_bookmarks_new: 'Nieuwe bladwijzer',
com_ui_bookmark_delete_confirm:
'Weet je zeker dat je deze bladwijzer wilt verwijderen?',
com_ui_bookmarks_title: 'Titel',
com_ui_bookmarks_count: 'Aantal',
com_ui_bookmarks_description: 'Beschrijving',
com_ui_bookmarks_create_success: 'Bladwijzer succesvol aangemaakt',
com_ui_bookmarks_update_success: 'Bladwijzer succesvol bijgewerkt',
com_ui_bookmarks_delete_success: 'Bladwijzer succesvol verwijderd',
com_ui_bookmarks_create_error:
'Er is een fout opgetreden bij het maken van de bladwijzer',
com_ui_bookmarks_update_error:
'Er is een fout opgetreden bij het bijwerken van de bladwijzer',
com_ui_bookmarks_delete_error:
'Er is een fout opgetreden bij het verwijderen van de bladwijzer',
com_ui_bookmarks_add_to_conversation: 'Toevoegen aan huidig gesprek',
com_auth_error_login:
'Kan niet inloggen met de verstrekte informatie. Controleer uw referenties en probeer het opnieuw.',
com_auth_error_login_rl: 'Te veel inlogpogingen in een korte tijd. Probeer het later nog eens.',
@ -308,6 +326,8 @@ export default {
com_nav_help_faq: 'Help & FAQ',
com_nav_settings: 'Instellingen',
com_nav_search_placeholder: 'Berichten doorzoeken',
com_nav_info_bookmarks_rebuild:
'Als het aantal bladwijzers onjuist is, bouw dan de bladwijzerinformatie opnieuw op. Het aantal bladwijzers zal worden herberekend en de gegevens zullen worden hersteld naar hun juiste staat.',
com_nav_setting_general: 'Algemeen',
com_nav_setting_data: 'Gegevensbesturing',
};
@ -610,6 +630,62 @@ export const comparisons = {
english: 'More',
translated: 'Meer',
},
com_ui_bookmarks: {
english: 'Bookmarks',
translated: 'Bladwijzers',
},
com_ui_bookmarks_rebuild: {
english: 'Rebuild',
translated: 'Herbouwen',
},
com_ui_bookmarks_new: {
english: 'New Bookmark',
translated: 'Nieuwe bladwijzer',
},
com_ui_bookmark_delete_confirm: {
english: 'Are you sure you want to delete this bookmark?',
translated: 'Weet je zeker dat je deze bladwijzer wilt verwijderen?',
},
com_ui_bookmarks_title: {
english: 'Title',
translated: 'Titel',
},
com_ui_bookmarks_count: {
english: 'Count',
translated: 'Aantal',
},
com_ui_bookmarks_description: {
english: 'Description',
translated: 'Beschrijving',
},
com_ui_bookmarks_create_success: {
english: 'Bookmark created successfully',
translated: 'Bladwijzer succesvol aangemaakt',
},
com_ui_bookmarks_update_success: {
english: 'Bookmark updated successfully',
translated: 'Bladwijzer succesvol bijgewerkt',
},
com_ui_bookmarks_delete_success: {
english: 'Bookmark deleted successfully',
translated: 'Bladwijzer succesvol verwijderd',
},
com_ui_bookmarks_create_error: {
english: 'There was an error creating the bookmark',
translated: 'Er is een fout opgetreden bij het maken van de bladwijzer',
},
com_ui_bookmarks_update_error: {
english: 'There was an error updating the bookmark',
translated: 'Er is een fout opgetreden bij het bijwerken van de bladwijzer',
},
com_ui_bookmarks_delete_error: {
english: 'There was an error deleting the bookmark',
translated: 'Er is een fout opgetreden bij het verwijderen van de bladwijzer',
},
com_ui_bookmarks_add_to_conversation: {
english: 'Add to current conversation',
translated: 'Toevoegen aan huidig gesprek',
},
com_auth_error_login: {
english:
'Unable to login with the information provided. Please check your credentials and try again.',
@ -1416,6 +1492,12 @@ export const comparisons = {
english: 'Search messages',
translated: 'Berichten doorzoeken',
},
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:
'Als het aantal bladwijzers onjuist is, bouw dan de bladwijzerinformatie opnieuw op. Het aantal bladwijzers zal worden herberekend en de gegevens zullen worden hersteld naar hun juiste staat.',
},
com_nav_setting_general: {
english: 'General',
translated: 'Algemeen',