[PR #40] [CLOSED] Add Tab key optimization and one-click context organization features #42

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

📋 Pull Request Information

Original PR: https://github.com/labring/tentix/pull/40
Author: @huanglvjing
Created: 8/29/2025
Status: Closed

Base: mainHead: aitentix


📝 Commits (10+)

📊 Changes

54 files changed (+9103 additions, -773 deletions)

View changed files

📝 .env.template (+2 -0)
📝 .vscode/settings.json (+3 -1)
📝 README.md (+6 -0)
📝 frontend/src/_provider/sealos.tsx (+9 -1)
frontend/src/components/chat/enhanced-message-input.tsx (+185 -0)
frontend/src/components/chat/optimize-button.tsx (+129 -0)
📝 frontend/src/components/chat/staff/message-input.tsx (+51 -39)
📝 frontend/src/components/chat/user/message-input.tsx (+49 -46)
frontend/src/components/common/copyable-truncate.tsx (+60 -0)
📝 frontend/src/components/staff/site-header.tsx (+38 -1)
📝 frontend/src/components/staff/staff-right-sidebar.tsx (+24 -8)
📝 frontend/src/components/staff/staff-ticket-sidebar.tsx (+22 -15)
frontend/src/hooks/use-text-optimizer.ts (+149 -0)
frontend/src/i18n/locales/zh-CN.json (+21 -0)
📝 frontend/src/routes/user/newticket/index.tsx (+17 -11)
📝 packages/i18n/index.ts (+18 -0)
packages/ui/uisrc/components/minimal-tiptap/components/context-organizer-button.tsx (+51 -0)
packages/ui/uisrc/components/minimal-tiptap/components/context-organizer-dialog.tsx (+347 -0)
📝 packages/ui/uisrc/components/minimal-tiptap/extensions/index.ts (+2 -0)
packages/ui/uisrc/components/minimal-tiptap/extensions/text-optimizer-extension.ts (+65 -0)

...and 34 more files

📄 Description

  1. Tab Key Content Optimization
    Added Tab key functionality to automatically format and standardize output content
    Improves code readability and maintains consistent formatting standards
    Enhances the overall quality of generated responses

  2. One-Click Context Organization
    Implemented a single-click feature to organize and clean up conversation context
    Automatically structures previous questions and answers for better clarity
    Streamlines conversation flow and improves information accessibility


🔄 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/40 **Author:** [@huanglvjing](https://github.com/huanglvjing) **Created:** 8/29/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `aitentix` --- ### 📝 Commits (10+) - [`71c36c0`](https://github.com/labring/tentix/commit/71c36c056df6a3b658b53347a3d4c505ea23a582) chore: add ai multimodal image supprot - [`3fb7c77`](https://github.com/labring/tentix/commit/3fb7c77e7f580a20bb55cbd19f1cdb1861f387be) feat(server): Optimize pgvector search method Add popularity sorting and index optimization - [`5b83e58`](https://github.com/labring/tentix/commit/5b83e580cf53e3dc1d74a3c3b06220c5057ab2b3) chore: perf ai prompt - [`b91d21f`](https://github.com/labring/tentix/commit/b91d21fa7e5c3a7a5e5e53923b3b250a0bc65433) chore - [`3728540`](https://github.com/labring/tentix/commit/372854011b64726268480bc7af86730fd0267593) feat(server): ai agent add handoff node - [`672871b`](https://github.com/labring/tentix/commit/672871b9db1699d4c707f456180db021945885e5) debug sourcemap - [`3a5536e`](https://github.com/labring/tentix/commit/3a5536e0add8ebf8588d5c81a64a054248c4513f) debug - [`3073ca8`](https://github.com/labring/tentix/commit/3073ca8f614059c004ed5f69f6a52f0ffa165e17) debug - [`218a40e`](https://github.com/labring/tentix/commit/218a40ee1fe985d4481fbc16cce21ad9f2b47ae1) debug2 - [`2ed5751`](https://github.com/labring/tentix/commit/2ed57517dca01b82c4111232483b9a705f074ad7) debug3 ### 📊 Changes **54 files changed** (+9103 additions, -773 deletions) <details> <summary>View changed files</summary> 📝 `.env.template` (+2 -0) 📝 `.vscode/settings.json` (+3 -1) 📝 `README.md` (+6 -0) 📝 `frontend/src/_provider/sealos.tsx` (+9 -1) ➕ `frontend/src/components/chat/enhanced-message-input.tsx` (+185 -0) ➕ `frontend/src/components/chat/optimize-button.tsx` (+129 -0) 📝 `frontend/src/components/chat/staff/message-input.tsx` (+51 -39) 📝 `frontend/src/components/chat/user/message-input.tsx` (+49 -46) ➕ `frontend/src/components/common/copyable-truncate.tsx` (+60 -0) 📝 `frontend/src/components/staff/site-header.tsx` (+38 -1) 📝 `frontend/src/components/staff/staff-right-sidebar.tsx` (+24 -8) 📝 `frontend/src/components/staff/staff-ticket-sidebar.tsx` (+22 -15) ➕ `frontend/src/hooks/use-text-optimizer.ts` (+149 -0) ➕ `frontend/src/i18n/locales/zh-CN.json` (+21 -0) 📝 `frontend/src/routes/user/newticket/index.tsx` (+17 -11) 📝 `packages/i18n/index.ts` (+18 -0) ➕ `packages/ui/uisrc/components/minimal-tiptap/components/context-organizer-button.tsx` (+51 -0) ➕ `packages/ui/uisrc/components/minimal-tiptap/components/context-organizer-dialog.tsx` (+347 -0) 📝 `packages/ui/uisrc/components/minimal-tiptap/extensions/index.ts` (+2 -0) ➕ `packages/ui/uisrc/components/minimal-tiptap/extensions/text-optimizer-extension.ts` (+65 -0) _...and 34 more files_ </details> ### 📄 Description 1. Tab Key Content Optimization Added Tab key functionality to automatically format and standardize output content Improves code readability and maintains consistent formatting standards Enhances the overall quality of generated responses 2. One-Click Context Organization Implemented a single-click feature to organize and clean up conversation context Automatically structures previous questions and answers for better clarity Streamlines conversation flow and improves information accessibility --- <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:08 +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#42
No description provided.