feat: Add Chat UX improvements with notifications and @mention support
- Add ActionBar component with expandable toolbar for mobile - Add @mention functionality with autocomplete dropdown - Add browser notification system (push, sound, vibration) - Add NotificationSettings modal for user preferences - Add mention badges on room list cards - Add ReportPreview with Markdown rendering and copy/download - Add message copy functionality with hover actions - Add backend mentions field to messages with Alembic migration - Add lots field to rooms, remove templates - Optimize WebSocket database session handling - Various UX polish (animations, accessibility) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -89,6 +89,10 @@ def _format_room_info(room_data: Dict[str, Any]) -> str:
|
||||
elif resolved_at is None:
|
||||
resolved_at = "尚未解決"
|
||||
|
||||
# Format LOT batch numbers
|
||||
lots = room_data.get('lots', [])
|
||||
lots_str = ", ".join(lots) if lots else "無"
|
||||
|
||||
lines = [
|
||||
"## 事件資訊",
|
||||
f"- 標題: {room_data.get('title', '未命名')}",
|
||||
@@ -96,6 +100,7 @@ def _format_room_info(room_data: Dict[str, Any]) -> str:
|
||||
f"- 嚴重程度: {severity}",
|
||||
f"- 目前狀態: {status}",
|
||||
f"- 發生地點: {room_data.get('location', '未指定')}",
|
||||
f"- 影響批號 (LOT): {lots_str}",
|
||||
f"- 建立時間: {created_at}",
|
||||
f"- 解決時間: {resolved_at}",
|
||||
]
|
||||
@@ -189,7 +194,7 @@ def _format_instructions() -> str:
|
||||
|
||||
請根據以上資料,生成一份結構化的事件報告。報告必須為 JSON 格式,包含以下欄位:
|
||||
|
||||
1. **summary**: 事件摘要 (50-100字)
|
||||
1. **summary**: 事件摘要 (50-300字)
|
||||
2. **timeline**: 按時間順序的事件時間軸
|
||||
3. **participants**: 參與人員及其角色
|
||||
4. **resolution_process**: 詳細的處理過程描述
|
||||
|
||||
Reference in New Issue
Block a user