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
Syed Muzamil
5d31947ab9
fix: prompt sidebar not showing on small devices ( #232 )
...
* fix: overlap between plus and prompt menu icon
* fix: prompt sidebar not showing on small devices
2023-03-28 02:33:15 -06:00
Redon
7c74df338e
feat: empty state add icons ( #248 )
2023-03-28 02:32:28 -06:00
Brad Ullman
00d807495d
update prompts to be tabbable ( #241 )
2023-03-28 02:31:03 -06:00
Brad Ullman
a3eb247c3f
convert folders to buttons & folder icons to buttons (accessibility) ( #237 )
...
* tabbable folders
* fix spacing
2023-03-28 02:29:56 -06:00
Thomas LÉVEIL
b0c289f7a4
fix import ( #242 )
...
* 🐛 fix import (#224 )
* 🐛 fix import of corrupted history
see https://github.com/mckaywrigley/chatbot-ui/issues/224#issuecomment-1486080888
* add the run-test-suite github action
2023-03-28 02:27:37 -06:00
Syed Muzamil
5aa5be3f43
fix: overlap between plus and prompt menu icon ( #230 )
2023-03-27 10:30:00 -06:00
Mckay Wrigley
34c79c0d66
Prompts ( #229 )
2023-03-27 09:38:56 -06:00
Danil Shishkevich
2269403806
chore: fix styles in "OpenAI Key" div ( #228 )
...
chore: do nothing if the name of the renamed dialog contains nothing.
chore: fix some styles
chore: remake conversation settings on mobile
2023-03-27 09:20:33 -06:00
Mckay Wrigley
a1743c82cc
fix regenerate
2023-03-27 07:48:51 -06:00
Danil Shishkevich
3ca503a3f2
chore: some small improvements ( #223 )
...
* chore: stylize error message div
chore: correct styles for sidebar btn
chore: add spinner and replace header "Please wait" on spinner
chore: correct Russian translate
chore: hide clear conversation btn if not conversations
chore: stylize "Need OpenAI key" div
* chore: corrent Russian translate
2023-03-27 07:43:01 -06:00
Mckay Wrigley
82401a4142
Option for clear all messages ( #222 )
...
Co-authored-by: ryanhex53 <ouyang.em@gmail.com>
2023-03-27 01:38:01 -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
Brad Ullman
c3f2dced56
convert conversation icons to buttons (accessibility) ( #192 )
...
* update sidebar overflow
* update all clickable icons to buttons
* refactor buttons so they are not inside other buttons
* format doc
* update input background to transparent
* adjust btns size to match #202
* update text size per #202
2023-03-26 15:19:27 -06:00
Danny Aziz
df7c363ccb
Add some additional text for API Key ( #210 )
...
* feat: API Key Link
* feat: key input placeholder
2023-03-26 14:48:34 -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
Mark Anthony Llego
0e393b0bec
Fix unreadable dropdown menu text in dark mode ( #204 )
...
* Fix unreadable dropdown menu text in dark mode
* Fix unreadable dropdown menu text in dark mode
2023-03-26 13:55:47 -06:00
Danil Shishkevich
6d5d09d69f
chore: restyle modal with model select ( #202 )
...
chore: set normal font size for sidebar
chore: set normal gradient for `ChatInput`
2023-03-26 09:14:47 -06:00
Jiayao Yu
5d9bc10cf4
Allow switching GPT model in the middle of a conversation ( #181 )
...
* Allow switching model in the middle of a conversation
* Hide model selection menu behind a settings button
* rename
* Touch up the settings icon
2023-03-26 09:09:10 -06:00
Danil Shishkevich
c0b1b2eadb
fix: fix fonts ( #194 )
...
* fix: hotfix fonts
* chore: set normal line height
2023-03-26 04:07:00 -06:00
Danil Shishkevich
4d0d1e8b95
chore: change sidebar font size & style ( #191 )
...
* chore: change sidebar font size & style
* chore: create font size style for sidebar
2023-03-26 03:29:31 -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
Brad Ullman
fffb729b34
sort the data, not the UI. buttons are now tab-able from the top down ( #176 )
2023-03-25 22:11:48 -06:00
Danil Shishkevich
cb58a703e3
feat: Russian language ( #148 )
...
* feat: russian (Русский) language
* chore: correct translate
* chore: correct "System prompt" translate
2023-03-25 10:33:29 -06:00
Thomas LÉVEIL
b89ca2082e
Precise error messages ( #150 )
...
* Introduce a component to display error messages
* precise error message when api key is invalid
2023-03-25 10:32:59 -06:00
Mckay Wrigley
3f09a4c355
hotfix
2023-03-25 10:13:51 -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
Thomas LÉVEIL
698c3bda29
smoother autoscroll down ( #141 )
2023-03-25 08:00:40 -06:00
Mckay Wrigley
93a8e814d6
fix send params
2023-03-25 07:18:57 -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
a005323964
Merge branch 'main' of https://github.com/mckaywrigley/chatbot-ui-pro
2023-03-25 06:41:44 -06:00
Mckay Wrigley
801451993c
fix mobile edit
2023-03-25 06:41:43 -06:00
Thomas LÉVEIL
2c8e8547d0
Do not rely on user to figure out if server is configured with an api key ( #136 )
...
Fixes #105 (and probably also #115 )
Co-authored-by: Mckay Wrigley <mckaywrigley@gmail.com>
2023-03-25 06:35:08 -06:00
Awesh Choudhary
291e2d9852
Added Better Closing Sidebar Logic (Close on Background Click) ( #122 )
2023-03-25 06:12:06 -06:00
Ernesto Barrera
69e05160a3
Added character count to alert message ( #135 )
...
This improvement adds additional information to the alert that is displayed when the user enters more characters than allowed in the rich text element. Now, the alert also shows the number of characters that the user has entered, which helps to provide clearer and more useful feedback to the use
2023-03-25 06:11:30 -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
Danil Shishkevich
e30336c00e
feat: codeblock styling like chatgpt ( #132 )
2023-03-25 04:39:31 -06:00
Mckay Wrigley
c3132ef2fb
fix import issue
2023-03-25 04:37:47 -06:00
Brad Ullman
c73f604819
Update Sidebar Setting elements to be buttons (improve accessibility) ( #130 )
...
* update sidebar elements to be buttons so they are keyboard navigatable
* rollback whitespace change
2023-03-25 04:21:58 -06:00
Redon
bc3b6d3355
feat: show language name ( #113 )
2023-03-24 02:43:44 -06:00
Mckay Wrigley
9d88722f35
clean history on import
2023-03-23 19:08:20 -06:00
Mckay Wrigley
1f31cc5507
hotfix import
2023-03-23 19:05:47 -06:00
Mckay Wrigley
f5118e3037
folders ( #108 )
...
* folders
* fixes
* storage fix
2023-03-23 17:59:40 -06:00
Tony
7ce2d5ec2c
autofocus textarea ( #103 )
2023-03-23 13:01:35 -06:00
Mckay Wrigley
42c48f290f
fix rogue messages
2023-03-23 09:20:11 -06:00
Mckay Wrigley
83217c6d83
new load behavior
2023-03-23 08:54:22 -06:00
Awesh Choudhary
2b1ef7be3e
SEO Fixed and Added Semantic Html Tags ( #98 )
2023-03-23 08:31:45 -06:00
Mckay Wrigley
1789351ab5
handle code copy error
2023-03-23 08:20:02 -06:00
Mckay Wrigley
71a770c24e
tweak scroll tolerance
2023-03-23 08:14:37 -06:00
Mckay Wrigley
68cd41a6dc
fix scroll behavior
2023-03-23 08:11:37 -06:00
Aubrey Keus
da11d0b91e
Search within conversation.messages + conversation.name ( #91 )
2023-03-23 01:17:54 -06:00
patanjalikr13
a1a8ac42a6
added download button, downlaod handler and necessary utility functions ( #85 )
...
Co-authored-by: Patanjali Kumar <patanjali@oddup.com>
2023-03-23 01:16:34 -06:00
CMarghin
d30471f5a9
fix style issue after clicking on ClearConversation ( #89 )
...
there is a small difference in the spaces of the button after confirming which leads to an unexpected animation in the sidebar settings
2023-03-23 01:11:45 -06:00
Mckay Wrigley
79c4ea053f
fix light mode
2023-03-22 11:45:18 -06:00
Xiangxuan Liu
cccf753743
Update the Stop Generating button style ( #79 )
2023-03-22 11:38:48 -06:00
Xiangxuan Liu
6c1ed37323
Apply the gradient bg style to input on mobile ( #77 )
2023-03-22 11:20:55 -06:00
Mckay Wrigley
e8902354e4
okay good
2023-03-22 11:07:42 -06:00
Mckay Wrigley
ec84eb2c49
Feat/add stop conversation button ( #76 )
...
* chore add in stop conversation button
* feat: use abort controller
* chore: formatting
---------
Co-authored-by: Simon Holmes <srsholmes@gmail.com>
2023-03-22 11:01:51 -06:00
Mckay Wrigley
b0f2a0a3ba
hotfix
2023-03-22 10:51:27 -06:00
Mckay Wrigley
5bffa8b0c9
hotfix
2023-03-22 10:46:30 -06:00
Mckay Wrigley
f0c575b40d
add import/export ( #71 )
2023-03-22 08:10:00 -06:00
Mckay Wrigley
972a5aff23
fix copy code overlap ( #70 )
2023-03-22 07:24:49 -06:00
Mckay Wrigley
37c088a212
hide rogue scrollbar ( #69 )
2023-03-22 07:14:24 -06:00
Khairul Haaziq
4055e84450
enhance ui and fix layout problems ( #63 )
2023-03-22 07:10:31 -06:00
Mckay Wrigley
d14268b075
keep message focus
2023-03-21 16:40:29 -06:00
Mckay Wrigley
b7803cf4ba
Clear conversations ( #53 )
...
* Add button "Clear Conversations"
* custom btn
---------
Co-authored-by: Xiangxuan Liu <xiangxuan.liu@rightcapital.com>
2023-03-21 16:38:04 -06:00
Mckay Wrigley
cb0fb447a7
Quocthinhvo/main ( #52 )
...
* Change scroll bar style in desktop
* new scrollbar
---------
Co-authored-by: Quốc Thịnh Võ <46624702+quocthinhvo@users.noreply.github.com>
2023-03-21 16:25:42 -06:00
angular-moon
5b6968a6be
Fixed Search conversations input box was out of bounds ( #41 )
2023-03-21 09:46:56 -06:00
Xiangxuan Liu
b80f39925c
Show latest conversations on the top ( #46 )
2023-03-21 09:45:09 -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
Mckay Wrigley
537957d5f5
Token based and model conditional limits ( #36 )
...
* use tiktoken for api limit
* model conditional char limits on frontend
* adjust for completion tokens
---------
Co-authored-by: Alan Pogrebinschi <alanpog@gmail.com>
2023-03-20 22:02:24 -06:00
Mckay Wrigley
dd439bb4a8
error handling ( #27 )
2023-03-20 07:17:58 -06:00
Mckay Wrigley
7810a3e7dc
Add GPT-4 support ( #25 )
...
* mobile ui updates
* fixes sidebar btn
* return if null
* mobile input blur
* handle mobile enter key
* new convo name
* new delete mechanism
* test height
* revert
* change padding
* remove overflow
* check relative
* padding
* done
* retry
* test
* test
* should work now
* test
* test
* more
* max h
* revert
* done
2023-03-20 03:53:00 -06:00
Sonny Lazuardi
3af4a7edf3
Fix safari small screen text input position style ( #20 )
...
* Update .gitignore
* Update next.config.js
* Enable GPT-4
* Update index.ts
* Fix logic
* Fix error
* Add set openai key instruction
* Fix menu safari
* Revert changes
* new line
---------
Co-authored-by: Sonny <sonny.lazuardi@grabtaxi.com>
2023-03-19 21:47:03 -06:00
Mckay Wrigley
71a78172e6
Feat/search conversation ( #24 )
...
* feat: Add conditional search input for conversation list
* style and ux adjust
---------
Co-authored-by: Tekle Ayele <tekleayele@gmail.com>
2023-03-19 21:40:51 -06:00
Mckay Wrigley
7e6651dea7
add more mobile ui ( #18 )
2023-03-19 06:48:57 -06:00
Xiangxuan Liu
0f346a808e
User message should not render as Markdown
2023-03-19 19:38:54 +08:00
Mckay Wrigley
a387b3d1cd
change to auto scroll
2023-03-18 22:32:09 -06:00
Mckay Wrigley
481c339d1c
slight input ui tweak
2023-03-18 22:27:50 -06:00
Mckay Wrigley
891bc38a45
fix loader position
2023-03-18 22:21:11 -06:00
Mckay Wrigley
e6449998ef
add api key
2023-03-18 22:19:19 -06:00
Mckay Wrigley
396fe4ec6f
fix syntax
2023-03-18 17:56:55 -06:00
asolpshinning
a6d2118085
Updated ChatInput.tsx text area to autoextend for larger prompt size
2023-03-18 14:17:45 -05:00
Mckay Wrigley
903c7f6806
Merge pull request #9 from nauxliu/disable-input-when-message-is-streaming
...
Ignore new message when the current message is not finished yet
2023-03-18 10:08:34 -06:00
Xiangxuan Liu
bbfb834e89
Ignore new message when the current message is not finished yet
2023-03-19 00:03:19 +08:00
Xiangxuan Liu
934ba277a6
Update settings button style
2023-03-18 23:40:05 +08:00
Mckay Wrigley
6bf8bacec0
gfm
2023-03-18 07:51:17 -06:00
Mckay Wrigley
16513b20de
fix naming bugs
2023-03-18 06:49:20 -06:00
Mckay Wrigley
a4c620d74d
fix width
2023-03-18 04:55:31 -06:00
Mckay Wrigley
ef31d6ec28
increase sidebar btn
2023-03-18 04:48:59 -06:00
Mckay Wrigley
3fecd56d22
responsive width
2023-03-18 04:46:42 -06:00
Mckay Wrigley
0654782f57
rogue div
2023-03-18 04:41:34 -06:00