Commit Graph

39 Commits

Author SHA1 Message Date
Shemar Lindie dcb2810d46
fix: optimize mobile layout (#606)
- conserve space in new convo view
- fix overlapping edit and delete chat message icons
- fix overlapping copy icon
2023-04-19 08:34:27 -06:00
Shemar Lindie 836c24680b
fix: chat messages disappear on edit (#575)
Resolves #574
2023-04-18 08:21:43 -06:00
Bryan Lee 862f74a332
Fix message input not updating on chat list switch (#590) 2023-04-18 08:11:13 -06:00
Mckay Wrigley d1eb6ee29b
delete message (#531)
* feat: delete single message

* improve plugin hotkey support (#426)

* feat: delete single message

* remove logs

* remove logs

---------

Co-authored-by: Ryland <rylandl@qq.com>
Co-authored-by: Dornfeld Capital <75278543+dornfeld-capital@users.noreply.github.com>
Co-authored-by: L.Ryland <41134883+L-Ryland@users.noreply.github.com>
2023-04-13 05:01:27 -06:00
Mckay Wrigley 6500db9c1c
MAJOR REFACTOR (#494)
* move index to home folder, create state and context files and barrell folder

* Sanity Check Commit:  reducer added to home.tsx manual QA all working

* WIP: promptBar

* fix missing json parse on folders and prompts

* split context and add promptbar context

* add context to nested prompt componets and componetize Folder componet

* remove log

* Create buttons folder and componetize sidebar action button

* tidy up prompt handlers

* componetized sidebar

* added back chatbar componet to left side sidebar

* monster commit: Componetized the common code between chatbar and promptbar into new componet Sidebar and added context to both bars

* add useFetch service

* added prettier import sort to keep imports ordered and easier to indentify

* added react query and useFetch to work with RQ

* added apiService, errorService and reactQuery

* add callback and tidy up error service

* refactor chat and child componets to useContext

* fix extra calls and bad calls to mel endpoint

* minor import cleanup

---------

Co-authored-by: jc.durbin <jc.durbin@ardanis.com>
2023-04-10 21:10:18 -06:00
Thomas LÉVEIL 68c9cd4bd8
Fix 416 copy button on code block (#427)
* update README regarding GOOGLE_API_KEY and GOOGLE_CSE_ID

* 🐛 fix copy button not showing up on code block with no recognized language

fixes #416
2023-04-04 16:55:52 -06:00
Jiaping(JP) Zhang 83e25b97b0
update chat role icon (#378) 2023-04-02 14:38:42 -06:00
Bryan Lee a73ef2b8cf
fix: resolve Enter event conflict during CJK IME (#253)
* fix: resolve Enter event conflict during CJK IME

* add

---------

Co-authored-by: Mckay Wrigley <mckaywrigley@gmail.com>
2023-03-28 02:46:16 -06:00
Brad Ullman a78a8c4a94
make all chat area components tabbable (accessibility) (#246)
* make all chat area components tabbable

* align message role description

* remove inline styles on icons

* remove inline styles on icons
2023-03-28 02:35:57 -06:00
Mckay Wrigley 34c79c0d66
Prompts (#229) 2023-03-27 09:38:56 -06:00
Thomas LÉVEIL 46e1857489
Fix rendering performances issues related to scrolling events (#174)
* memoize chat related components

* Avoid re-rendering ChatInput on every message udpate

* change the way the horizontal scrollbar is hidden

* make the scroll event listener passive

* perf(Chat): fix performances issues related to autoscroll

Uses the intersection API to determine autoscroll mode instead of listening for scroll events

* tuning detection of autoscroll
2023-03-27 01:22:38 -06:00
Danil Shishkevich bf8830e1a5
fix: missing translation (#206)
for translators: need translate `Save & Submit` and `Cancel`
2023-03-26 13:56:13 -06:00
Danil Shishkevich 0f07812cc5
chore: delete code light theme, like chatgpt (#186) 2023-03-26 02:25:58 -06:00
Simon Holmes d6973b9ccc
feat: add in prettier and format code for consistency (#168) 2023-03-25 23:13:18 -06:00
Mckay Wrigley 71d7e44bce hotfix 2023-03-25 23:06:49 -06:00
Bruce Shi 499007da94
Latex plugin (#165) 2023-03-25 22:37:00 -06:00
Jack Wu 14fe29c03a
feat: Message copy button (#171)
* Add copy button

* Fix copy button not copying the entire message

* fix style

* remove prewrap

---------

Co-authored-by: Mckay Wrigley <mckaywrigley@gmail.com>
2023-03-25 22:28:08 -06:00
Jungley 92eab6c634
feat: Add i18n support for Chinese language (#142)
* feat: Add i18n support for Chinese language

* fix: locale not working in Docker environment
2023-03-25 09:42:48 -06:00
Danil Shishkevich 4fbb5e1f79
fix: change message edit logic (#144)
if the edited message isn't different from the original message, then do nothing.
2023-03-25 08:29:54 -06:00
Mckay Wrigley d27326125b
regenerate button (#138) 2023-03-25 07:12:51 -06:00
Danil Shishkevich d7fdcd0dfe
fix: disable button if messageContent is empty (#137) 2023-03-25 07:11:27 -06:00
Mckay Wrigley 801451993c fix mobile edit 2023-03-25 06:41:43 -06:00
Mckay Wrigley 338ddedfec handle mobile edit 2023-03-25 06:09:51 -06:00
Mckay Wrigley a03d8b2ba9 edit message 2023-03-25 05:49:41 -06:00
Mckay Wrigley b0f2a0a3ba hotfix 2023-03-22 10:51:27 -06:00
Khairul Haaziq 4055e84450
enhance ui and fix layout problems (#63) 2023-03-22 07:10:31 -06:00
Mckay Wrigley 0d6ff739a2
add custom system prompt (#39) 2023-03-21 01:39:32 -06:00
Alan P 6e19d44020
wrap user messages (#35) 2023-03-20 22:05:23 -06:00
Xiangxuan Liu 0f346a808e User message should not render as Markdown 2023-03-19 19:38:54 +08:00
Mckay Wrigley 6bf8bacec0 gfm 2023-03-18 07:51:17 -06:00
Mckay Wrigley 3fecd56d22 responsive width 2023-03-18 04:46:42 -06:00
Mckay Wrigley fad67499e7 mobile improvements 2023-03-18 04:29:39 -06:00
Mckay Wrigley fa4e27a164 fix minor ui bugs 2023-03-18 04:10:35 -06:00
Mckay Wrigley a0056460ab add rename and delete improvements 2023-03-18 03:57:15 -06:00
Mckay Wrigley b6d5576227 light/dark code highlight 2023-03-18 02:32:30 -06:00
Mckay Wrigley 761314c20b code syntax highlights 2023-03-18 01:52:43 -06:00
Mckay Wrigley 9c50142c64 add markdown 2023-03-17 19:25:04 -06:00
Mckay Wrigley ce331a1bbd boom 2023-03-15 04:24:09 -06:00
Mckay Wrigley a6503fb498 chatbot-ui starter 2023-03-13 19:21:14 -06:00