From 22b27d19df6003b9dc07c73ece65cd9c2dcbfe39 Mon Sep 17 00:00:00 2001 From: OoO Date: Fri, 1 May 2026 00:38:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E8=AE=93=E5=83=B9=E6=A0=BC?= =?UTF-8?q?=E5=9C=96=E8=A1=A8=E6=8C=89=E9=88=95=E7=9B=B4=E6=8E=A5=E9=96=8B?= =?UTF-8?q?=E5=95=9F=E6=AD=B7=E5=8F=B2=E8=B5=B0=E5=8B=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/dashboard_v2.html | 10 +++++++++- tests/test_frontend_v2_assets.py | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/templates/dashboard_v2.html b/templates/dashboard_v2.html index d2070c4..174cf3b 100644 --- a/templates/dashboard_v2.html +++ b/templates/dashboard_v2.html @@ -689,7 +689,15 @@ - diff --git a/tests/test_frontend_v2_assets.py b/tests/test_frontend_v2_assets.py index 874af6a..78d5b23 100644 --- a/tests/test_frontend_v2_assets.py +++ b/tests/test_frontend_v2_assets.py @@ -67,6 +67,7 @@ def test_dashboard_v2_restores_real_price_history_chart(): assert 'id="priceChart"' in dashboard assert "data-product-id=\"{{ product.id }}\"" in dashboard assert "data-history-trigger" in dashboard + assert "onclick=\"event.stopPropagation(); showHistory(this.dataset.productId, this.dataset.productName);\"" in dashboard assert "fetch(`/api/history/${productId}`)" in dashboard assert "priceChartInstance = new Chart" in dashboard assert "目前沒有可顯示的歷史價格紀錄" in dashboard