LibreChat/client/src/utils
Danny Avila 9a7f763714
🔄 refactor: Artifact Visibility Management (#7181)
* fix: Reset artifacts on unmount and remove useIdChangeEffect hook

* feat: Replace SVG icons with Lucide icons for improved consistency

* fix: Refactor artifact reset logic on unmount and conversation change

* refactor: Rename artifactsVisible to artifactsVisibility for consistency

* feat: Replace custom SVG icons with Lucide icons for improved consistency

* feat: Add visibleArtifacts atom for managing visibility state

* feat: Implement debounced visibility state management for artifacts

* refactor: Add useIdChangeEffect hook to reset visible artifacts on conversation ID change

* refactor: Remove unnecessary dependency from useMemo in TextPart component

* refactor: Enhance artifact visibility management by incorporating location checks for search path

* refactor: Improve transition effects for artifact visibility in Artifacts component

* chore: Remove preprocessCodeArtifacts function and related tests

* fix: Update regex for detecting enclosed artifacts in latest message

* refactor: Update artifact visibility checks to be more generic (not just search)

* chore: Enhance artifact visibility logging

* refactor: Extract closeArtifacts function to improve button click handling

* refactor: remove nested logic from use artifacts effect

* refactor: Update regex for detecting enclosed artifacts to handle new line variations
2025-05-01 14:40:39 -04:00
..
artifacts.ts 🔄 refactor: Artifact Visibility Management (#7181) 2025-05-01 14:40:39 -04:00
buildDefaultConvo.ts ⚙️ refactor: Enhance Logging, Navigation And Error Handling (#5910) 2025-02-16 11:47:01 -05:00
buildTree.ts 🌿 feat: Multi-response Streaming (#3191) 2024-06-25 03:02:38 -04:00
cleanupPreset.ts 🌎 i18n: React-i18next & i18next Integration (#5720) 2025-02-09 12:05:31 -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 🔍 refactor: Search & Message Retrieval (#6903) 2025-04-16 21:07:43 -04:00
convos.ts 📜 refactor: Optimize Conversation History Nav with Cursor Pagination (#5785) 2025-04-15 04:04:00 -04:00
endpoints.spec.ts 🧹 chore: Remove Deprecated BingAI Code & Address Mobile Focus (#5565) 2025-01-30 17:22:29 -05:00
endpoints.ts 🧭 refactor: Modernize Nav/Header (#7094) 2025-04-27 14:03:25 -04:00
files.ts 🗃️ feat: Code Interpreter File Persistence between Sessions (#6790) 2025-04-08 23:18:50 -04:00
forms.tsx 🚀 feat: Use Model Specs + Specific Endpoints, Limit Providers for Agents (#6650) 2025-04-01 03:50:32 -04:00
getDefaultEndpoint.ts 🔃 refactor: Streamline Navigation, Message Loading UX (#7118) 2025-04-28 18:18:13 -04:00
getLoginError.ts 🔒feat: Enable OpenID Auto-Redirect (#6066) 2025-03-19 09:51:56 -04:00
index.ts 🔧 refactor: Enhance Model & Endpoint Configurations with Global Indicators 🌍 (#6578) 2025-03-27 18:07:07 -04:00
json.ts feat: Google Gemini ❇️ (#1355) 2023-12-15 02:18:07 -05:00
languages.ts 🎉 feat: Code Interpreter API and Agents Release (#4860) 2024-12-04 15:48:13 -05:00
latex.spec.ts 🌎 i18n: React-i18next & i18next Integration (#5720) 2025-02-09 12:05:31 -05:00
latex.ts 🧮 feat: Improve LaTeX rendering consistency (#3763) 2024-08-23 13:45:27 -04:00
localStorage.ts 💾 chore: Enhance Local Storage Handling and Update MCP SDK (#6809) 2025-04-09 18:38:48 -04:00
logger.ts ⚙️ refactor: Enhance Logging, Navigation And Error Handling (#5910) 2025-02-16 11:47:01 -05:00
map.ts 🎉 feat: Code Interpreter API and Agents Release (#4860) 2024-12-04 15:48:13 -05:00
mermaid.ts feat: Quality-of-Life Chat/Edit-Message Enhancements (#5194) 2025-01-06 22:47:24 -05:00
messages.ts 🎉 feat: Code Interpreter API and Agents Release (#4860) 2024-12-04 15:48:13 -05:00
presets.ts 🧹 chore: Remove Deprecated BingAI Code & Address Mobile Focus (#5565) 2025-01-30 17:22:29 -05:00
promptGroups.ts 🗨️ feat: Prompt Slash Commands (#3219) 2024-06-27 17:34:48 -04:00
prompts.ts 🗓️ feat: Add Special Variables for Prompts & Agents, Prompt UI Improvements (#7123) 2025-04-29 03:49:02 -04:00
resetConvo.ts 🐛 fix: Update resetConvo.ts (#3105) 2024-06-21 10:13:21 -04:00
textarea.ts feat: Quality-of-Life Chat/Edit-Message Enhancements (#5194) 2025-01-06 22:47:24 -05:00
theme.ts 🅰️ feat: Dynamic Font Size (#3568) 2024-08-07 14:23:33 -04:00