[PR #26] [MERGED] feat: chat related logic optimization #30

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

📋 Pull Request Information

Original PR: https://github.com/labring/tentix/pull/26
Author: @Dilettante258
Created: 6/10/2025
Status: Merged
Merged: 6/10/2025
Merged by: @fanux

Base: mainHead: clean


📝 Commits (4)

  • cf0bed0 fix: log utils types fix
  • 27c3b70 fix: lockfile
  • f59795f feat: use EventEmitter improve websocket event process
  • 78aa160 feat: use sse to subscribe new messages

📊 Changes

31 files changed (+1149 additions, -764 deletions)

View changed files

📝 DEVELOPMENT_GUIDE.md (+1 -1)
📝 Dockerfile (+1 -1)
📝 README.md (+1 -1)
📝 bun.lock (+211 -181)
frontend/src/hooks/use-sse.ts (+44 -0)
📝 frontend/src/hooks/use-ticket-websocket.ts (+5 -5)
📝 frontend/src/lib/api-client.ts (+2 -2)
📝 frontend/src/lib/query.ts (+6 -6)
📝 frontend/src/lib/utils.ts (+90 -0)
📝 frontend/vite.config.js (+1 -1)
📝 package.json (+7 -6)
📝 packages/eslint-config/README.md (+0 -1)
📝 packages/eslint-config/base.js (+9 -1)
📝 packages/eslint-config/frontend.js (+1 -0)
📝 packages/eslint-config/react-internal.js (+1 -0)
📝 packages/eslint-config/server.js (+10 -17)
📝 server/api/auth/index.ts (+1 -1)
📝 server/api/chat/index.ts (+252 -316)
server/api/chat/tools.ts (+26 -0)
📝 server/api/index.ts (+2 -2)

...and 11 more files

📄 Description

  • feat: use EventEmitter to improve websocket event process
  • feat: split WSMessage type into server's & client's
  • feat: optimize turborepo configuration file for better development and packaging
  • feat: use SSE to subscribe new messages
  • feat: add SSE utils
  • feat: rename ws router to chat
  • fix: log utils types fix
  • fix: eslint config
  • chore: add noCheck to prevent build:types failed
  • chore: bump bun version to 1.2.15
  • chore: bump zod's version (v4 is not ready yet)

🔄 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/26 **Author:** [@Dilettante258](https://github.com/Dilettante258) **Created:** 6/10/2025 **Status:** ✅ Merged **Merged:** 6/10/2025 **Merged by:** [@fanux](https://github.com/fanux) **Base:** `main` ← **Head:** `clean` --- ### 📝 Commits (4) - [`cf0bed0`](https://github.com/labring/tentix/commit/cf0bed0a42976dc1fc4589a2028a47e9684d83db) fix: log utils types fix - [`27c3b70`](https://github.com/labring/tentix/commit/27c3b70e14abc8ba11c24883a0b52606793bce50) fix: lockfile - [`f59795f`](https://github.com/labring/tentix/commit/f59795f8258a507e2d5a0d5d26df949d4a8a3f86) feat: use EventEmitter improve websocket event process - [`78aa160`](https://github.com/labring/tentix/commit/78aa160a30218f5faa53de081f5d6644e5b1af91) feat: use sse to subscribe new messages ### 📊 Changes **31 files changed** (+1149 additions, -764 deletions) <details> <summary>View changed files</summary> 📝 `DEVELOPMENT_GUIDE.md` (+1 -1) 📝 `Dockerfile` (+1 -1) 📝 `README.md` (+1 -1) 📝 `bun.lock` (+211 -181) ➕ `frontend/src/hooks/use-sse.ts` (+44 -0) 📝 `frontend/src/hooks/use-ticket-websocket.ts` (+5 -5) 📝 `frontend/src/lib/api-client.ts` (+2 -2) 📝 `frontend/src/lib/query.ts` (+6 -6) 📝 `frontend/src/lib/utils.ts` (+90 -0) 📝 `frontend/vite.config.js` (+1 -1) 📝 `package.json` (+7 -6) 📝 `packages/eslint-config/README.md` (+0 -1) 📝 `packages/eslint-config/base.js` (+9 -1) 📝 `packages/eslint-config/frontend.js` (+1 -0) 📝 `packages/eslint-config/react-internal.js` (+1 -0) 📝 `packages/eslint-config/server.js` (+10 -17) 📝 `server/api/auth/index.ts` (+1 -1) 📝 `server/api/chat/index.ts` (+252 -316) ➕ `server/api/chat/tools.ts` (+26 -0) 📝 `server/api/index.ts` (+2 -2) _...and 11 more files_ </details> ### 📄 Description - feat: use EventEmitter to improve websocket event process - feat: split WSMessage type into server's & client's - feat: optimize turborepo configuration file for better development and packaging - feat: use SSE to subscribe new messages - feat: add SSE utils - feat: rename ws router to chat - fix: log utils types fix - fix: eslint config - chore: add noCheck to prevent build:types failed - chore: bump bun version to 1.2.15 - chore: bump zod's version (v4 is not ready yet) --- <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:04 +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#30
No description provided.