[PR #43] [CLOSED] feat: add tab navigation, text cleanup and avatar caching #44

Closed
opened 2026-03-03 13:58:09 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/labring/tentix/pull/43
Author: @huanglvjing
Created: 9/7/2025
Status: Closed

Base: mainHead: feature/new_ai_tentix


📝 Commits (1)

  • 71f2c8b feat: 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.

## 📋 Pull Request Information **Original PR:** https://github.com/labring/tentix/pull/43 **Author:** [@huanglvjing](https://github.com/huanglvjing) **Created:** 9/7/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/new_ai_tentix` --- ### 📝 Commits (1) - [`71f2c8b`](https://github.com/labring/tentix/commit/71f2c8bddeffcb2a6f2abc6153f64a34f0fcd84b) feat: add tab navigation, text cleanup and avatar caching ### 📊 Changes **23 files changed** (+2238 additions, -105 deletions) <details> <summary>View changed files</summary> 📝 `.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_ </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 13:58:09 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tentix#44
No description provided.