From 6da510f7ea711b82fd682c90f5354e0fe2fb7893 Mon Sep 17 00:00:00 2001 From: "hangyu.tao" Date: Fri, 16 Jan 2026 13:14:35 +0800 Subject: [PATCH] fix_bug --- frontend/css/style.css | 67 +++++ frontend/index.html | 22 +- frontend/js/main.js | 71 +++-- frontend/js/tests.js | 225 +++++++++++++++ frontend/js/trial-periods-page.js | 12 +- frontend/js/trial-periods.js | 16 +- internal/handlers/auth_handler.go | 2 +- internal/storage/trial_period_storage.go | 3 + internal/storage/trial_period_storage_test.go | 272 ++++++++++++++++++ models/trial_period.go | 1 + 10 files changed, 650 insertions(+), 41 deletions(-) create mode 100644 frontend/js/tests.js create mode 100644 internal/storage/trial_period_storage_test.go diff --git a/frontend/css/style.css b/frontend/css/style.css index 34ae48a..7a06632 100644 --- a/frontend/css/style.css +++ b/frontend/css/style.css @@ -2162,4 +2162,71 @@ tr:hover .action-cell { font-size: 0.7rem; color: var(--medium-gray); font-family: system-ui; +} + +/* Refresh Button Animation */ +@keyframes spin { + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +} + +.icon-btn.refreshing i { + animation: spin 0.8s linear infinite; +} + +.icon-btn.refreshing { + pointer-events: none; + opacity: 0.7; +} + +/* Refresh button success feedback */ +.icon-btn.refresh-success { + color: #27ae60 !important; + background-color: rgba(39, 174, 96, 0.15) !important; +} + +.icon-btn.refresh-success i::before { + content: "\f00c"; + /* Font Awesome check icon */ +} + +/* Table refresh animation */ +@keyframes tableRefresh { + 0% { + opacity: 0.3; + } + + 50% { + opacity: 0.6; + } + + 100% { + opacity: 1; + } +} + +.table-refreshing { + animation: tableRefresh 0.5s ease-out; +} + +/* Row highlight on refresh */ +@keyframes rowHighlight { + 0% { + background-color: rgba(255, 107, 53, 0.2); + transform: translateX(-5px); + } + + 100% { + background-color: transparent; + transform: translateX(0); + } +} + +.table-refreshing tbody tr { + animation: rowHighlight 0.4s ease-out; } \ No newline at end of file diff --git a/frontend/index.html b/frontend/index.html index 7b7972a..f356e55 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -54,7 +54,7 @@ - 每周客户进度 + 每周进度 @@ -127,12 +127,7 @@ - - + @@ -843,6 +838,19 @@