mirror of
https://github.com/labring/tentix.git
synced 2026-04-25 16:45:48 +03:00
[PR #43] [CLOSED] feat: add tab navigation, text cleanup and avatar caching #44
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tentix#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/labring/tentix/pull/43
Author: @huanglvjing
Created: 9/7/2025
Status: ❌ Closed
Base:
main← Head:feature/new_ai_tentix📝 Commits (1)
71f2c8bfeat: add tab navigation, text cleanup and avatar caching📊 Changes
23 files changed (+2238 additions, -105 deletions)
View changed files
📝
.env.template(+1 -0)📝
frontend/src/components/chat/message-item.tsx(+52 -25)📝
frontend/src/components/chat/staff/message-input.tsx(+84 -41)➕
frontend/src/components/common/cache-debug-panel.tsx(+154 -0)➕
frontend/src/components/common/cached-avatar.tsx(+137 -0)📝
frontend/src/components/staff/site-header.tsx(+38 -1)📝
frontend/src/components/staff/staff-right-sidebar.tsx(+33 -21)📝
frontend/src/components/user/ticket-details-sidebar.tsx(+40 -7)➕
frontend/src/hooks/use-text-optimizer.ts(+149 -0)➕
frontend/src/modal/use-context-organizer-modal.tsx(+335 -0)➕
frontend/src/store/user-cache.ts(+197 -0)📝
packages/i18n/index.ts(+44 -0)📝
packages/ui/uisrc/components/minimal-tiptap/extensions/index.ts(+2 -0)➕
packages/ui/uisrc/components/minimal-tiptap/extensions/text-optimizer/index.ts(+1 -0)➕
packages/ui/uisrc/components/minimal-tiptap/extensions/text-optimizer/text-optimizer.ts(+64 -0)📝
packages/ui/uisrc/components/minimal-tiptap/hooks/use-minimal-tiptap.ts(+6 -1)📝
packages/ui/uisrc/components/minimal-tiptap/staff-chat-editor.tsx(+145 -9)➕
server/api/ai-tool/index.ts(+422 -0)📝
server/api/index.ts(+14 -0)📝
server/api/precede.ts(+3 -0)...and 3 more files
📄 Description
Tab Navigation Support:
Support using the Tab key in the input area to trigger AI-powered text optimization, enabling faster, mouse-free editing.
Text Organization Feature:
Added a text optimization button that automatically organizes the full content, helping technical teammates understand and respond more quickly.
Avatar Caching Mechanism:
Implemented local caching for avatars and user information to reduce redundant network requests and speed up loading performance.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.