[PR #6] [MERGED] feat: support file uploading #40

Closed
opened 2026-02-16 02:17:52 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/chat-ui/pull/6
Author: @thucpn
Created: 10/28/2024
Status: Merged
Merged: 10/28/2024
Merged by: @marcusschiesser

Base: mainHead: feat/support-file-uploading


📝 Commits (10+)

  • 297b8e8 refactor: require id in message
  • a75c320 refactor: use append function to submit message
  • f9a0124 feat: add file preview components to widget
  • 82409c0 feat: move useFile to chat-ui
  • ca7f2d6 refactor: keep chat input simple
  • 094c37b fix: format
  • bc85c4a fix: lint
  • 1b2eca5 add upload file example
  • 1c851f9 fix: reset
  • 808c9f8 put chat message in memo

📊 Changes

9 files changed (+224 additions, -71 deletions)

View changed files

📝 apps/web/app/custom-demo.tsx (+38 -2)
📝 packages/chat-ui/src/chat/chat-input.tsx (+20 -24)
📝 packages/chat-ui/src/chat/chat-message.tsx (+24 -6)
📝 packages/chat-ui/src/chat/chat-messages.tsx (+7 -1)
📝 packages/chat-ui/src/chat/chat-section.tsx (+1 -15)
📝 packages/chat-ui/src/chat/chat.interface.ts (+8 -23)
packages/chat-ui/src/hook/use-file.tsx (+122 -0)
📝 packages/chat-ui/src/index.tsx (+3 -0)
📝 packages/config-eslint/react.js (+1 -0)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/chat-ui/pull/6 **Author:** [@thucpn](https://github.com/thucpn) **Created:** 10/28/2024 **Status:** ✅ Merged **Merged:** 10/28/2024 **Merged by:** [@marcusschiesser](https://github.com/marcusschiesser) **Base:** `main` ← **Head:** `feat/support-file-uploading` --- ### 📝 Commits (10+) - [`297b8e8`](https://github.com/run-llama/chat-ui/commit/297b8e875dcf8e145d1b6b2eced184f2b6176a0b) refactor: require id in message - [`a75c320`](https://github.com/run-llama/chat-ui/commit/a75c320707de425554c8d84f712eb9eeb83cc9af) refactor: use append function to submit message - [`f9a0124`](https://github.com/run-llama/chat-ui/commit/f9a0124b76647181862b7cfcbd2353b8c8212572) feat: add file preview components to widget - [`82409c0`](https://github.com/run-llama/chat-ui/commit/82409c0fa2d1867b4636440ada9ea69252932849) feat: move useFile to chat-ui - [`ca7f2d6`](https://github.com/run-llama/chat-ui/commit/ca7f2d6c65c01bd3a0661c037e52675152453149) refactor: keep chat input simple - [`094c37b`](https://github.com/run-llama/chat-ui/commit/094c37b024eee02e114845b788cba22353909d11) fix: format - [`bc85c4a`](https://github.com/run-llama/chat-ui/commit/bc85c4ad929585df5ef4fa149e0eadf78482ce2a) fix: lint - [`1b2eca5`](https://github.com/run-llama/chat-ui/commit/1b2eca581ddeba9158f6e14c7095f0b91603d30f) add upload file example - [`1c851f9`](https://github.com/run-llama/chat-ui/commit/1c851f966ca227770da2347d1704556c3b6a1727) fix: reset - [`808c9f8`](https://github.com/run-llama/chat-ui/commit/808c9f861abc47076c5ef9a05ed8af6445911cda) put chat message in memo ### 📊 Changes **9 files changed** (+224 additions, -71 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/app/custom-demo.tsx` (+38 -2) 📝 `packages/chat-ui/src/chat/chat-input.tsx` (+20 -24) 📝 `packages/chat-ui/src/chat/chat-message.tsx` (+24 -6) 📝 `packages/chat-ui/src/chat/chat-messages.tsx` (+7 -1) 📝 `packages/chat-ui/src/chat/chat-section.tsx` (+1 -15) 📝 `packages/chat-ui/src/chat/chat.interface.ts` (+8 -23) ➕ `packages/chat-ui/src/hook/use-file.tsx` (+122 -0) 📝 `packages/chat-ui/src/index.tsx` (+3 -0) 📝 `packages/config-eslint/react.js` (+1 -0) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 02:17:52 -05:00
yindo closed this issue 2026-02-16 02:17:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/chat-ui#40