mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 18:30:15 +01:00
🔗 feat: Enhance Share Functionality, Optimize DataTable & Fix Critical Bugs (#5220)
* 🔄 refactor: frontend and backend share link logic; feat: qrcode for share link; feat: refresh link * 🐛 fix: Conditionally render shared link and refactor share link creation logic * 🐛 fix: Correct conditional check for shareId in ShareButton component * 🔄 refactor: Update shared links API and data handling; improve query parameters and response structure * 🔄 refactor: Update shared links pagination and response structure; replace pageNumber with cursor for improved data fetching * 🔄 refactor: DataTable performance optimization * fix: delete shared link cache update * 🔄 refactor: Enhance shared links functionality; add conversationId to shared link model and update related components * 🔄 refactor: Add delete functionality to SharedLinkButton; integrate delete mutation and confirmation dialog * 🔄 feat: Add AnimatedSearchInput component with gradient animations and search functionality; update search handling in API and localization * 🔄 refactor: Improve SharedLinks component; enhance delete functionality and loading states, optimize AnimatedSearchInput, and refine DataTable scrolling behavior * fix: mutation type issues with deleted shared link mutation * fix: MutationOptions types * fix: Ensure only public shared links are retrieved in getSharedLink function * fix: `qrcode.react` install location * fix: ensure non-public shared links are not fetched when checking for existing shared links, and remove deprecated .exec() method for queries * fix: types and import order * refactor: cleanup share button UI logic, make more intuitive --------- Co-authored-by: Danny Avila <danny@librechat.ai>
This commit is contained in:
parent
460cde0c0b
commit
fa9e778399
55 changed files with 1779 additions and 1975 deletions
|
|
@ -53,7 +53,7 @@ export default {
|
|||
com_download_expired: '(download expired)',
|
||||
com_download_expires: '(click here to download - expires {0})',
|
||||
com_click_to_download: '(click here to download)',
|
||||
com_files_number_selected: '{0} of {1} file(s) selected',
|
||||
com_files_number_selected: '{0} of {1} items(s) selected',
|
||||
com_sidepanel_select_assistant: 'Select an Assistant',
|
||||
com_sidepanel_parameters: 'Parameters',
|
||||
com_sidepanel_assistant_builder: 'Assistant Builder',
|
||||
|
|
@ -354,7 +354,6 @@ export default {
|
|||
com_ui_share_var: 'Share {0}',
|
||||
com_ui_enter_var: 'Enter {0}',
|
||||
com_ui_copy_link: 'Copy link',
|
||||
com_ui_update_link: 'Update link',
|
||||
com_ui_create_link: 'Create link',
|
||||
com_ui_share_to_all_users: 'Share to all users',
|
||||
com_ui_my_prompts: 'My Prompts',
|
||||
|
|
@ -379,6 +378,8 @@ export default {
|
|||
com_ui_share_error: 'There was an error sharing the chat link',
|
||||
com_ui_share_retrieve_error: 'There was an error retrieving the shared links',
|
||||
com_ui_share_delete_error: 'There was an error deleting the shared link',
|
||||
com_ui_bulk_delete_error: 'Failed to delete shared links',
|
||||
com_ui_bulk_delete_partial_error: 'Failed to delete {0} shared links',
|
||||
com_ui_share_create_message: 'Your name and any messages you add after sharing stay private.',
|
||||
com_ui_share_created_message:
|
||||
'A shared link to your chat has been created. Manage previously shared chats at any time via Settings.',
|
||||
|
|
@ -442,6 +443,14 @@ export default {
|
|||
com_ui_add_multi_conversation: 'Add multi-conversation',
|
||||
com_ui_duplicate_agent_confirm: 'Are you sure you want to duplicate this agent?',
|
||||
com_ui_page: 'Page',
|
||||
com_ui_refresh_link: 'Refresh link',
|
||||
com_ui_show_qr: 'Show QR Code',
|
||||
com_ui_hide_qr: 'Hide QR Code',
|
||||
com_ui_title: 'Title',
|
||||
com_ui_view_source: 'View source chat',
|
||||
com_ui_shared_link_delete_success: 'Successfully deleted shared link',
|
||||
com_ui_shared_link_bulk_delete_success: 'Successfully deleted shared links',
|
||||
com_ui_search: 'Search',
|
||||
com_auth_error_login:
|
||||
'Unable to login with the information provided. Please check your credentials and try again.',
|
||||
com_auth_error_login_rl:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue