[PR #677] [MERGED] fix truncate function to handle Chinese characters #3455

Closed
opened 2026-02-22 18:33:49 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/677
Author: @shatfield4
Created: 2/5/2024
Status: Merged
Merged: 2/6/2024
Merged by: @timothycarambat

Base: masterHead: 671-bug-when-the-file-name-is-too-long-the-date-information-will-be-overwritten


📝 Commits (6)

  • 3efa68e fix truncate function to handle Chinese characters
  • f9eb4a5 Merge branch 'master' into 671-bug-when-the-file-name-is-too-long-the-date-information-will-be-overwritten
  • 13d062e revert changes to truncate function and cut off title using css
  • 2e17b22 Merge branch 'master' into 671-bug-when-the-file-name-is-too-long-the-date-information-will-be-overwritten
  • 56d935f add CSS ellipse on long file name
  • 9fbdc3b fix uploaded middleTruncation as well as directory

📊 Changes

2 files changed (+2 additions, -2 deletions)

View changed files

📝 frontend/src/components/Modals/MangeWorkspace/Documents/Directory/FileRow/index.jsx (+1 -1)
📝 frontend/src/components/Modals/MangeWorkspace/Documents/WorkspaceDirectory/WorkspaceFileRow/index.jsx (+1 -1)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #671

What is in this change?

Describe the changes in this PR that are impactful to the repo.

  • Resolve issue with Chinese characters not being truncated properly in the document picker

Additional Information

Add any other context about the Pull Request here that was not captured above.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 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/Mintplex-Labs/anything-llm/pull/677 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 2/5/2024 **Status:** ✅ Merged **Merged:** 2/6/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `671-bug-when-the-file-name-is-too-long-the-date-information-will-be-overwritten` --- ### 📝 Commits (6) - [`3efa68e`](https://github.com/Mintplex-Labs/anything-llm/commit/3efa68e259f1c247b2f101b1158b102930dde6da) fix truncate function to handle Chinese characters - [`f9eb4a5`](https://github.com/Mintplex-Labs/anything-llm/commit/f9eb4a5567474e9a5e4082297312c01224d5536f) Merge branch 'master' into 671-bug-when-the-file-name-is-too-long-the-date-information-will-be-overwritten - [`13d062e`](https://github.com/Mintplex-Labs/anything-llm/commit/13d062ee650349339fb863bc25a3a5650cb78b73) revert changes to truncate function and cut off title using css - [`2e17b22`](https://github.com/Mintplex-Labs/anything-llm/commit/2e17b2210ed637b7ec1e8d74b1e37acd6b26c2ca) Merge branch 'master' into 671-bug-when-the-file-name-is-too-long-the-date-information-will-be-overwritten - [`56d935f`](https://github.com/Mintplex-Labs/anything-llm/commit/56d935fab9bf3feb1a6736c448649f41266a5f1d) add CSS ellipse on long file name - [`9fbdc3b`](https://github.com/Mintplex-Labs/anything-llm/commit/9fbdc3b9ec6e202f58a2454e7c74d0bfc3550c6a) fix uploaded middleTruncation as well as directory ### 📊 Changes **2 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/Modals/MangeWorkspace/Documents/Directory/FileRow/index.jsx` (+1 -1) 📝 `frontend/src/components/Modals/MangeWorkspace/Documents/WorkspaceDirectory/WorkspaceFileRow/index.jsx` (+1 -1) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ ] ✨ feat - [x] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #671 ### What is in this change? Describe the changes in this PR that are impactful to the repo. - Resolve issue with Chinese characters not being truncated properly in the document picker ### Additional Information Add any other context about the Pull Request here that was not captured above. ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <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-22 18:33:49 -05:00
yindo closed this issue 2026-02-22 18:33:49 -05:00
yindo changed title from [PR #677] fix truncate function to handle Chinese characters to [PR #677] [MERGED] fix truncate function to handle Chinese characters 2026-06-05 15:13:30 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3455