Phase 8 Complete: Sync Audit Log + Frontend Integration
- Thêm audit/sync_audit.py: Ghi lịch sử sync vào audit/sync_log.json
- Thêm API endpoints: /sync/history, /sync/history/{run_id}
- Frontend: Nút 'Lịch sử đồng bộ' + panel expand chi tiết từng file
- Sửa frontend served từ backend (http://localhost:8000)
- Cập nhật DEPLOYMENT_GUIDE với hướng dẫn chạy localhost
- Cập nhật ARCHITECTURE_MAP: Phase 8 hoàn thành
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>AI Knowledge Hub | Enterprise RAG</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap" rel="stylesheet">
|
||||
@@ -48,6 +48,7 @@
|
||||
<nav class="side-nav">
|
||||
<div class="nav-item active"><i class="fas fa-comments"></i> <span>Hỏi đáp RAG</span></div>
|
||||
<button class="sync-btn" id="sync-btn"><i class="fas fa-sync-alt"></i> Đồng bộ SharePoint</button>
|
||||
<button class="sync-btn" id="history-btn"><i class="fas fa-history"></i> Lịch sử đồng bộ</button>
|
||||
</nav>
|
||||
|
||||
<div class="sync-status" id="sync-status" style="display: none;">
|
||||
@@ -112,8 +113,19 @@
|
||||
<!-- Nguồn sẽ được render ở đây -->
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Sync History Panel -->
|
||||
<section class="source-panel" id="history-panel">
|
||||
<div class="panel-header">
|
||||
<h3><i class="fas fa-history"></i> Lịch sử đồng bộ</h3>
|
||||
<button id="close-history"><i class="fas fa-times"></i></button>
|
||||
</div>
|
||||
<div class="history-list" id="history-list">
|
||||
<!-- Lịch sử sẽ được render ở đây -->
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<script src="app.js"></script>
|
||||
<script src="/static/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user