feat(analyst): Enhance dashboard metrics and customer service interactions

- Updated the `dashboard` function in `analyst.py` to include additional metrics for different user roles, improving data visibility for analysts, customers, advisors, and risk officers.
- Introduced a new `prepare_customer_stream` function in `customer_service.py` to facilitate streaming responses for customer interactions, enhancing the chat experience.
- Added new API endpoints in `analyst.ts` for fetching dashboard metrics and managing analyst assets, streamlining data handling and user interactions.
- Updated frontend components to support new dashboard features and asset management, ensuring a cohesive user experience across the application.

This update significantly improves the functionality and usability of the analyst and customer service features, providing users with enhanced tools for data analysis and interaction.
This commit is contained in:
2026-09-09 21:32:59 +08:00
parent af9fb719e5
commit 3ad244add0
24 changed files with 727 additions and 103 deletions
+2 -2
View File
@@ -15,8 +15,8 @@
| STAFF-10091 | advisor, compliance | 双角色权限并集 |
| STAFF-20001 | analyst | 分析 Agent |
| STAFF-20002 | analyst | 分析 Agent |
| STAFF-30001 | risk_officer | 风控 Agent |
| STAFF-30002 | risk_officer | 风控 Agent |
| STAFF-30001 | risk_officer, **risk_demo** | 风控 Agent · 模拟交易演示 |
| STAFF-30002 | risk_officer, **risk_demo** | 风控 Agent |
| STAFF-40001 | compliance | 合规审计台 |
| STAFF-40002 | compliance | 合规审计台 |
| STAFF-50001 | ops | 运营统计 A-08 |