From d668c3873c7bae9625f0f1fc986dbc616a25b6d0 Mon Sep 17 00:00:00 2001 From: ogt Date: Thu, 25 Jun 2026 11:32:44 +0800 Subject: [PATCH] fix: make help and empty states action oriented --- config.py | 2 +- docs/AI_INTELLIGENCE_MODULE_SOT.md | 1 + templates/admin/ppt_audit_history.html | 10 ++--- templates/ai_intelligence.html | 4 +- templates/ai_recommend.html | 12 +++--- templates/daily_sales.html | 2 +- templates/growth_analysis.html | 2 +- templates/index.html | 27 ++++++------- templates/login.html | 2 +- templates/system_settings.html | 2 +- tests/test_pchome_revenue_growth_service.py | 43 +++++++++++++++++++++ 11 files changed, 74 insertions(+), 33 deletions(-) diff --git a/config.py b/config.py index c4537a7..2e40c96 100644 --- a/config.py +++ b/config.py @@ -402,7 +402,7 @@ YOUTUBE_API_KEY = os.getenv('YOUTUBE_API_KEY', '') # ========================================== # 系統版本與路徑 # ========================================== -SYSTEM_VERSION = "V10.664" +SYSTEM_VERSION = "V10.665" LOG_FILE_PATH = os.path.join(BASE_DIR, 'logs/system.log') public_url = PUBLIC_URL # 用於模板顯示 diff --git a/docs/AI_INTELLIGENCE_MODULE_SOT.md b/docs/AI_INTELLIGENCE_MODULE_SOT.md index ce6cbf9..3a76a22 100644 --- a/docs/AI_INTELLIGENCE_MODULE_SOT.md +++ b/docs/AI_INTELLIGENCE_MODULE_SOT.md @@ -741,3 +741,4 @@ POSTGRES_HOST=momo-db | 2026-06-25 | UI/UX 不可只修首頁,導覽主入口必須同一套 PChome 業績提升語言 | V10.662 起作戰、分析、營運、AI 助手主入口與廠商缺貨子工具都使用短句對齊「評估、分析、建議、解法、治理」流程;首頁今日行動卡維持 980px 上限與高對比主按鈕,禁止回到全寬長文說明。 | | 2026-06-25 | 首頁今日行動 CTA 不可被全域 Bootstrap guard 蓋成透明或低對比 | V10.663 起 `#commandTaskButton.growth-command-alert-action` 使用精準 selector 與 `background-color` hard override,正式 smoke 必須量測按鈕背景與卡片寬度。 | | 2026-06-25 | 系統、舊入口與觀測台頁首不可用長篇工程說明取代決策用途 | V10.664 起舊入口、系統管理與 AI 觀測台頁首統一改為短句,聚焦資料新鮮度、成本、品質、RAG 與自癒如何支援 PChome 業績判斷。 | +| 2026-06-25 | 說明、空狀態與登入頁不可停在教學口吻,必須提示下一個業績動作 | V10.665 起 AI 助手說明、業績空狀態、缺貨舊首頁、登入頁與 PPT 視覺 QA 空狀態改為行動導向短句,避免使用者在說明文字中迷路。 | diff --git a/templates/admin/ppt_audit_history.html b/templates/admin/ppt_audit_history.html index 0d2c151..ce91d55 100644 --- a/templates/admin/ppt_audit_history.html +++ b/templates/admin/ppt_audit_history.html @@ -62,7 +62,7 @@
視覺 QA 尚未就緒
- 目前不是模型能力問題,而是執行環境尚未完整開啟。 + 先補齊視覺 QA runtime,再判斷簡報品質。 {{ vision_status.summary }}
@@ -132,7 +132,7 @@
尚無紀錄 待命 - 按下「立即視覺 QA」後會在這裡顯示背景任務狀態。 + 啟動視覺 QA 後會顯示背景任務狀態。
{% endif %}
@@ -522,7 +522,7 @@ {% else %}
- 目前查無本月 DB 產出紀錄;下一次自動排程或手動補齊後,會寫入 ppt_generation_runs 並顯示在這裡。 + 本月尚無 DB 產出紀錄;先補排程或手動產出,再進行視覺 QA。
{% endif %} @@ -733,7 +733,7 @@

尚未形成 daily 審核統計。

-

排程或立即視覺 QA 完成後,這裡會顯示本月通過率、失敗檔案與修復建議。

+

先完成視覺 QA,再看本月通過率、失敗檔案與修復建議。

@@ -766,7 +766,7 @@ {% endif %} {% if not vision_enabled %}
- 為什麼這頁空? + 先補視覺 QA 條件
  • PPT_VISION_ENABLED=false
  • 188 主機需安裝 LibreOffice
  • diff --git a/templates/ai_intelligence.html b/templates/ai_intelligence.html index b9f972f..66711bb 100644 --- a/templates/ai_intelligence.html +++ b/templates/ai_intelligence.html @@ -2894,7 +2894,7 @@

    正在整理處理建議

    -

    讀取商品、業績與比價狀態後,這裡會顯示最適合的下一步。

    +

    先整理業績、比價與資料狀態,再決定下一步。

    @@ -3192,7 +3192,7 @@
    - 自動來源不足時,再用這裡檢查備援資料品質。 + 自動來源不足時,先檢查備援資料品質。
diff --git a/templates/ai_recommend.html b/templates/ai_recommend.html index c9e432f..289e535 100644 --- a/templates/ai_recommend.html +++ b/templates/ai_recommend.html @@ -26,7 +26,7 @@ Gemini 備援 {{ '檢查中' if gemini_status is none else ('✓' if gemini_status else '✗') }} - @@ -409,26 +409,26 @@