Skip to content

Commit

Permalink
feat: make chats virtualized (#330)
Browse files Browse the repository at this point in the history
## Motivation

This feature aims to increase the performance in long chats

- uses react-virtualized to render virtual chat history
- requires hacking the overflow of react-virtualized
- requires determinate/fixed heights of images (should in future be
delivered by images, is now hardcoded)


## Issues closed

<!-- List closed issues here -->
  • Loading branch information
pixelass authored Jun 5, 2024
1 parent b8c6ca7 commit 2f5eb80
Show file tree
Hide file tree
Showing 6 changed files with 273 additions and 126 deletions.
49 changes: 47 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"@types/react-dom": "^18.3.0",
"@types/react-file-icon": "^1.0.4",
"@types/react-syntax-highlighter": "^15.5.13",
"@types/react-virtualized": "^9.21.30",
"@types/react-window": "^1.8.8",
"@types/sort-json": "^2.0.3",
"@types/uuid": "^9.0.8",
Expand Down Expand Up @@ -174,6 +175,7 @@
"react-markdown": "^9.0.1",
"react-syntax-highlighter": "^15.5.0",
"react-textarea-autosize": "^8.5.3",
"react-virtualized": "^9.22.5",
"react-virtualized-auto-sizer": "^1.0.24",
"react-window": "^1.8.10",
"react-zoom-pan-pinch": "^3.4.4",
Expand Down
Loading

0 comments on commit 2f5eb80

Please sign in to comment.