Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat: Quality-of-Life Chat/Edit-Message Enhancements #5194

Merged
merged 7 commits into from
Jan 7, 2025

Conversation

danny-avila
Copy link
Owner

Summary

I implemented several enhancements to improve the user experience in message editing and chat input.

  • Added the functionality to edit the latest user message by pressing the up arrow key when the input is empty.
  • Re-introduced the regenerate button in HoverButtons for error handling, allowing users to retry failed messages easily.
  • Added the ability to collapse the chat input when it reaches the maximum height, allowing visibility of messages for reference
  • Enhanced the EditMessage component by adding keyboard shortcuts for saving (Ctrl+S), submitting (Ctrl+Enter), and canceling (Esc).

chrome_1qtcLmWrmK
chrome_zTYf3SNGnK
chrome_zTs47GP8d7

Other Changes

  • Fixed a rendering error for Mermaid flowchart syntax by updating dependencies.

Closes #3658
Closes #4184

Change Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Testing

I tested the new features by performing the following steps:

  • Verified that pressing the up arrow key with an empty input allows editing the latest user message.
  • Triggered error states to ensure the regenerate button appears and functions correctly in HoverButtons.
  • Checked that the textarea detects scrollability and collapses appropriately when reaching maximum height.
  • Tested the keyboard shortcuts in the EditMessage component for saving (Ctrl+S), submitting (Ctrl+Enter), and canceling (Esc).
  • Confirmed that Mermaid flowchart syntax renders correctly after updating dependencies.

Checklist

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have commented in any complex areas of my code
  • My changes do not introduce new warnings

@danny-avila danny-avila merged commit 8aa1e73 into main Jan 7, 2025
2 checks passed
@danny-avila danny-avila deleted the refactor/artifacts-update branch January 7, 2025 03:47
dbirks pushed a commit to dbirks/LibreChat that referenced this pull request Jan 7, 2025
)

* fix: rendering error for mermaid flowchart syntax

* feat: add submit button ref and enable submit on Ctrl+Enter in EditMessage component

* feat: add save button and keyboard shortcuts for saving and canceling in EditMessage component

* feat: collapse chat on max height

* refactor: implement scrollable detection for textarea on key down events and initial render

* feat: add regenerate button for error handling in HoverButtons, closes danny-avila#3658

* feat: add functionality to edit latest user message with the up arrow key when the input is empty
owengo pushed a commit to openwengo/LibreChat that referenced this pull request Jan 21, 2025
)

* fix: rendering error for mermaid flowchart syntax

* feat: add submit button ref and enable submit on Ctrl+Enter in EditMessage component

* feat: add save button and keyboard shortcuts for saving and canceling in EditMessage component

* feat: collapse chat on max height

* refactor: implement scrollable detection for textarea on key down events and initial render

* feat: add regenerate button for error handling in HoverButtons, closes danny-avila#3658

* feat: add functionality to edit latest user message with the up arrow key when the input is empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant