From 7ddec0fb4f5140c2e95137069579e1948dd48120 Mon Sep 17 00:00:00 2001 From: Codex Agent Date: Thu, 30 Oct 2025 11:48:15 +0800 Subject: [PATCH] refactor: move checkpoint management to separate modal window MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes: - Removed checkpoint from main workflow (step 5) - Added standalone "检查点管理" button in top toolbar - Created dedicated modal window for checkpoint management - Updated UI to be more user-friendly and separate concerns Benefits: - Checkpoint management is now a standalone feature - Doesn't interfere with the main database maintenance flow - Modal window provides better focused interface - Users can access checkpoints anytime without losing their place in the workflow 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- static/db_admin.html | 167 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 138 insertions(+), 29 deletions(-) diff --git a/static/db_admin.html b/static/db_admin.html index f0aab66..92397c2 100644 --- a/static/db_admin.html +++ b/static/db_admin.html @@ -517,6 +517,88 @@ font-weight: bold; } + .checkpoint-toolbar { + display: flex; + justify-content: flex-end; + margin-bottom: 20px; + } + + .checkpoint-toolbar .btn { + box-shadow: 0 2px 8px rgba(0,0,0,0.1); + } + + .checkpoint-modal { + display: none; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba(0, 0, 0, 0.5); + z-index: 1000; + align-items: center; + justify-content: center; + padding: 20px; + } + + .checkpoint-modal.show { + display: flex; + } + + .checkpoint-modal-content { + background: white; + border-radius: 12px; + padding: 0; + max-width: 900px; + width: 100%; + max-height: 90vh; + display: flex; + flex-direction: column; + box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); + animation: modalFadeIn 0.3s; + } + + .checkpoint-modal-header { + padding: 20px 30px; + border-bottom: 2px solid #667eea; + display: flex; + justify-content: space-between; + align-items: center; + } + + .checkpoint-modal-header h2 { + color: #333; + font-size: 20px; + margin: 0; + } + + .checkpoint-modal-close { + background: none; + border: none; + font-size: 28px; + color: #999; + cursor: pointer; + padding: 0; + width: 32px; + height: 32px; + display: flex; + align-items: center; + justify-content: center; + border-radius: 50%; + transition: all 0.3s; + } + + .checkpoint-modal-close:hover { + background: #f0f0f0; + color: #333; + } + + .checkpoint-modal-body { + padding: 30px; + overflow-y: auto; + flex: 1; + } + .details-area { background: white; border-radius: 8px; @@ -710,11 +792,13 @@
4
查看详情
-
-
-
5
-
检查点
-
+ + + +
+
@@ -727,12 +811,7 @@
- +
@@ -768,9 +847,22 @@ + +
+
+
+

🔒 数据库检查点管理

+ +
+
+ +
+
+
+