LibreChat/client/src/utils
Marco Beretta 79f9cd5a4d
💬 feat: assistant conversation starter (#3699)
* feat: initial UI convoStart

* fix: ConvoStarter UI

* fix: convoStarters bug

* feat: Add input field focus on conversation starters

* style: conversation starter UI update

* feat: apply fixes for starters

* style: update conversationStarters UI and fixed typo

* general UI update

* feat: Add onClick functionality to ConvoStarter component

* fix: quick fix test

* fix(AssistantSelect): remove object check

* fix: updateAssistant `conversation_starters` var

* chore: remove starter autofocus

* fix: no empty conversation starters, always show input, use Constants value for max count

* style: Update defaultTextPropsLabel styles, for a11y placeholder

* refactor: Update ConvoStarter component styles and class names for a11y and theme

* refactor: convostarter, move plus button to within persistent element

* fix: types

* chore: Update landing page assistant description styling with theming

* chore: assistant types

* refactor: documents routes

* refactor: optimize conversation starter mutations/queries

* refactor: Update listAllAssistants return type to Promise<Array<Assistant>>

* feat: edit existing starters

* feat(convo-starters): enhance ConvoStarter component and add animations

    - Update ConvoStarter component styling for better visual appeal
    - Implement fade-in animation for smoother appearance
    - Add hover effect with background color change
    - Improve text overflow handling with line-clamp and text-balance
    - Ensure responsive design for various screen sizes

* feat(assistant): add conversation starters to assistant builder

- Add localization strings for conversation starters
- Update mobile.css with shake animation for max starters reached
- Enhance user experience with tooltips and dynamic input handling

* refactor: select specific fields for assistant documents fetch

* refactor: remove endpoint query key, fetch all assistant docs for now, add conversation_starters to v1 methods

* refactor: add document filters based on endpoint config

* fix: starters not applied during creation

* refactor: update AssistantSelect component to handle undefined lastSelectedModels

---------

Co-authored-by: Danny Avila <danny@librechat.ai>
2024-08-31 13:42:20 -04:00
..
artifacts.spec.ts 🪄 feat: Code Artifacts (#3798) 2024-08-27 17:03:16 -04:00
artifacts.ts 🪄 feat: Code Artifacts (#3798) 2024-08-27 17:03:16 -04:00
buildDefaultConvo.ts 🤖 feat: OpenAI Assistants v2 (initial support) (#2781) 2024-05-19 12:56:55 -04:00
buildTree.ts 🌿 feat: Multi-response Streaming (#3191) 2024-06-25 03:02:38 -04:00
cleanupPreset.ts feat: Assistants API, General File Support, Side Panel, File Explorer (#1696) 2024-02-13 20:42:27 -05:00
cn.ts 🪟 fix+feat: General UI Enhancements (#2619) 2024-05-09 17:46:16 -04:00
collection.ts 🗨️ feat: Prompt Slash Commands (#3219) 2024-06-27 17:34:48 -04:00
conversationTags.spec.ts 🔖 feat: Conversation Bookmarks (#3344) 2024-07-29 10:45:59 -04:00
conversationTags.ts 🔖 feat: Conversation Bookmarks (#3344) 2024-07-29 10:45:59 -04:00
convos.fakeData.ts 📋 fix: Ensure Textarea Resizes in Clipboard Edge Case (#2268) 2024-04-01 13:40:21 -04:00
convos.spec.ts 🚑 fix: resolve missing data in infinite queries (#2852) 2024-05-24 12:38:38 -04:00
convos.ts 🤲 a11y: Sidebar Text Contrast (#3665) 2024-08-16 13:50:47 -04:00
endpoints.spec.ts 🔧 fix: Improve Endpoint Handling and Address Edge Cases (#1486) 2024-01-04 10:17:15 -05:00
endpoints.ts 🌿 feat: Multi-response Streaming (#3191) 2024-06-25 03:02:38 -04:00
files.ts 🪄 feat: Code Artifacts (#3798) 2024-08-27 17:03:16 -04:00
getDefaultEndpoint.ts 🔧 fix: Improve Endpoint Handling and Address Edge Cases (#1486) 2024-01-04 10:17:15 -05:00
getLocalStorageItems.ts 🌿 feat: Multi-response Streaming (#3191) 2024-06-25 03:02:38 -04:00
getLoginError.ts 📧 feat: email verification (#2344) 2024-06-07 15:06:47 -04:00
index.ts 💬 feat: assistant conversation starter (#3699) 2024-08-31 13:42:20 -04:00
json.ts feat: Google Gemini ❇️ (#1355) 2023-12-15 02:18:07 -05:00
languages.ts refactor: Settings/Presets UI Restructure, convert many files to TS (#740) 2023-08-04 13:56:44 -04:00
latex.spec.ts 🧮 feat: Improve LaTeX rendering consistency (#3763) 2024-08-23 13:45:27 -04:00
latex.ts 🧮 feat: Improve LaTeX rendering consistency (#3763) 2024-08-23 13:45:27 -04:00
logger.ts 🖱️ fix: Message Scrolling UX; refactor: Frontend UX/DX Optimizations (#3733) 2024-08-21 18:18:45 -04:00
map.ts 🤖 feat: Model Specs & Save Tools per Convo/Preset (#2578) 2024-04-30 22:11:48 -04:00
mermaid.ts 🪄 feat: Code Artifacts (#3798) 2024-08-27 17:03:16 -04:00
messages.ts 🔖 feat: Enhance Bookmarks UX, add RBAC, toggle via librechat.yaml (#3747) 2024-08-22 17:09:05 -04:00
presets.ts 📧 feat: Mention "@" Command Popover (#2635) 2024-05-07 13:13:55 -04:00
promptGroups.ts 🗨️ feat: Prompt Slash Commands (#3219) 2024-06-27 17:34:48 -04:00
prompts.ts 🗨️ feat: Prompt Slash Commands (#3219) 2024-06-27 17:34:48 -04:00
resetConvo.ts 🐛 fix: Update resetConvo.ts (#3105) 2024-06-21 10:13:21 -04:00
shadcn.ts 🪄 feat: Code Artifacts (#3798) 2024-08-27 17:03:16 -04:00
sharedLink.fakeData.ts 🚀 feat: Shared Links (#2772) 2024-05-17 18:13:32 -04:00
sharedLink.spec.ts 🚀 feat: Shared Links (#2772) 2024-05-17 18:13:32 -04:00
sharedLink.ts 🗨️ feat: Prompts (#3131) 2024-06-20 20:24:32 -04:00
textarea.ts 🌿 feat: Multi-response Streaming (#3191) 2024-06-25 03:02:38 -04:00
theme.ts 🅰️ feat: Dynamic Font Size (#3568) 2024-08-07 14:23:33 -04:00
validateIframe.ts 📜 refactor: Optimize Longer Message Thread Performance (#3610) 2024-08-11 06:08:08 -04:00