feat(web): #126 Frontend Replay UI 整合
All checks were successful
E2E Health Check / e2e-health (push) Successful in 18s
All checks were successful
E2E Health Check / e2e-health (push) Successful in 18s
- 新增 useUXAudit hook (5 分鐘自動刷新) - 新增 UXAuditCard 組件 (健康度 + Replay 連結) - 整合到錯誤追蹤頁面 - i18n: zh-TW + en 翻譯 功能: - UX 健康度評分 (good/moderate/poor) - 有錯誤的 Replay 連結 - 憤怒點擊/死亡點擊統計 - Replay Dashboard 快捷連結 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -216,6 +216,16 @@ export const apiClient = {
|
||||
})
|
||||
return handleResponse<ErrorAnalysisResponse>(res)
|
||||
},
|
||||
|
||||
// =========================================================================
|
||||
// Phase 19: UX Audit / Session Replay (#126)
|
||||
// 2026-03-31 Claude Code - Frontend Replay UI Integration
|
||||
// =========================================================================
|
||||
|
||||
async getUXAudit() {
|
||||
const res = await fetch(`${API_BASE_URL}/errors/ux-audit`)
|
||||
return handleResponse<UXAuditResponse>(res)
|
||||
},
|
||||
}
|
||||
|
||||
// =========================================================================
|
||||
@@ -383,3 +393,29 @@ export interface ErrorAnalysisResponse {
|
||||
sentry_url: string
|
||||
message?: string
|
||||
}
|
||||
|
||||
// =========================================================================
|
||||
// Phase 19: UX Audit / Session Replay Types (#126)
|
||||
// 2026-03-31 Claude Code - Frontend Replay UI Integration
|
||||
// =========================================================================
|
||||
|
||||
export interface UXAuditDetail {
|
||||
type: 'replay_with_errors' | 'ui_error'
|
||||
replay_id?: string
|
||||
issue_id?: string
|
||||
url: string
|
||||
error_count?: number
|
||||
title?: string
|
||||
count?: number
|
||||
urls?: string[]
|
||||
}
|
||||
|
||||
export interface UXAuditResponse {
|
||||
replays_with_errors: number
|
||||
rage_clicks: number
|
||||
dead_clicks: number
|
||||
ui_errors: number
|
||||
health_score: 'good' | 'moderate' | 'poor'
|
||||
details: UXAuditDetail[]
|
||||
replay_dashboard_url: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user