[PR #122] [MERGED] Improve file component #140

Closed
opened 2026-02-16 03:15:21 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/chat-ui/pull/122
Author: @leehuwuj
Created: 6/5/2025
Status: Merged
Merged: 6/6/2025
Merged by: @thucpn

Base: mainHead: lee/remove-limit-file-extension


📝 Commits (4)

  • e1c449b Refactor file upload handling to use a checkExtension function instead of allowedExtensions. Removed unused constants and improved type handling for document files. Updated related components to reflect these changes.
  • 74e7382 right alignment for user message file
  • bbc9e4e update changeset and add back allowedExtensions
  • 50689e3 enhance code

📊 Changes

9 files changed (+35 additions, -54 deletions)

View changed files

.changeset/rare-spoons-invent.md (+5 -0)
📝 apps/web/app/demo/custom/page.tsx (+0 -1)
📝 packages/chat-ui/src/chat/chat-annotations.tsx (+3 -1)
📝 packages/chat-ui/src/chat/chat-input.tsx (+1 -3)
📝 packages/chat-ui/src/hook/use-file.tsx (+2 -11)
📝 packages/chat-ui/src/widgets/chat-files.tsx (+9 -2)
📝 packages/chat-ui/src/widgets/document-info.tsx (+5 -12)
📝 packages/chat-ui/src/widgets/file-uploader.tsx (+7 -14)
📝 packages/chat-ui/src/widgets/markdown.tsx (+3 -10)

📄 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/122 **Author:** [@leehuwuj](https://github.com/leehuwuj) **Created:** 6/5/2025 **Status:** ✅ Merged **Merged:** 6/6/2025 **Merged by:** [@thucpn](https://github.com/thucpn) **Base:** `main` ← **Head:** `lee/remove-limit-file-extension` --- ### 📝 Commits (4) - [`e1c449b`](https://github.com/run-llama/chat-ui/commit/e1c449bc6c0e5c0b6feb9061b860324a854c9e14) Refactor file upload handling to use a checkExtension function instead of allowedExtensions. Removed unused constants and improved type handling for document files. Updated related components to reflect these changes. - [`74e7382`](https://github.com/run-llama/chat-ui/commit/74e738214edf85101289c36e6741d27e9c3f4687) right alignment for user message file - [`bbc9e4e`](https://github.com/run-llama/chat-ui/commit/bbc9e4e4eb428373e5c9c0ad092d70f025adf6a1) update changeset and add back allowedExtensions - [`50689e3`](https://github.com/run-llama/chat-ui/commit/50689e3bf2c698ce835ad349ee655d682ccbb825) enhance code ### 📊 Changes **9 files changed** (+35 additions, -54 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/rare-spoons-invent.md` (+5 -0) 📝 `apps/web/app/demo/custom/page.tsx` (+0 -1) 📝 `packages/chat-ui/src/chat/chat-annotations.tsx` (+3 -1) 📝 `packages/chat-ui/src/chat/chat-input.tsx` (+1 -3) 📝 `packages/chat-ui/src/hook/use-file.tsx` (+2 -11) 📝 `packages/chat-ui/src/widgets/chat-files.tsx` (+9 -2) 📝 `packages/chat-ui/src/widgets/document-info.tsx` (+5 -12) 📝 `packages/chat-ui/src/widgets/file-uploader.tsx` (+7 -14) 📝 `packages/chat-ui/src/widgets/markdown.tsx` (+3 -10) </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 03:15:21 -05:00
yindo closed this issue 2026-02-16 03:15:21 -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#140