diff --git a/config.py b/config.py index f9a3ec5..6232b14 100644 --- a/config.py +++ b/config.py @@ -402,7 +402,7 @@ YOUTUBE_API_KEY = os.getenv('YOUTUBE_API_KEY', '') # ========================================== # 系統版本與路徑 # ========================================== -SYSTEM_VERSION = "V10.662" +SYSTEM_VERSION = "V10.663" 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 d2477ba..e60add1 100644 --- a/docs/AI_INTELLIGENCE_MODULE_SOT.md +++ b/docs/AI_INTELLIGENCE_MODULE_SOT.md @@ -739,3 +739,4 @@ POSTGRES_HOST=momo-db | 2026-05-20 | Telegram HTML parse mode 不支援 `
`,可能導致告警或報告送出 400 | V10.321 起 Telegram template 發送前會把 `
` / `
` / `
` 轉為換行;保留其他 HTML 標籤,非 HTML parse mode 不改寫 | | 2026-05-20 | 部分舊 Telegram 入口繞過中央 sanitizer,且 RAG awaiting review 使用錯誤 `chat_id=` 參數會讓人工審核推播失敗 | V10.322 起 Bot API price decision 走 `send_telegram_with_result()`;`price_decision()` 補 `report_url` 相容並 escape 動態欄位;RAG awaiting review 改用 `chat_ids=[...]` 呼叫 `_send_telegram_raw()` | | 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 必須量測按鈕背景與卡片寬度。 | diff --git a/templates/ai_intelligence.html b/templates/ai_intelligence.html index b02b5c3..b9f972f 100644 --- a/templates/ai_intelligence.html +++ b/templates/ai_intelligence.html @@ -391,20 +391,21 @@ line-height: 1.45; } - .growth-command-alert-action { + #commandTaskButton.growth-command-alert-action { min-width: 108px; justify-self: end; - border-color: #8f442b; - background: #8f442b; - color: #fff; - box-shadow: 0 8px 18px rgba(143, 68, 43, 0.18); + border-color: #8f442b !important; + background-color: #8f442b !important; + background-image: none !important; + color: #fff !important; + box-shadow: 0 8px 18px rgba(143, 68, 43, 0.18) !important; } - .growth-command-alert-action:hover, - .growth-command-alert-action:focus { - border-color: #743620; - background: #743620; - color: #fff; + #commandTaskButton.growth-command-alert-action:hover, + #commandTaskButton.growth-command-alert-action:focus { + border-color: #743620 !important; + background-color: #743620 !important; + color: #fff !important; } .ai-intel-hero { diff --git a/tests/test_pchome_revenue_growth_service.py b/tests/test_pchome_revenue_growth_service.py index 191e53e..3ce33a3 100644 --- a/tests/test_pchome_revenue_growth_service.py +++ b/tests/test_pchome_revenue_growth_service.py @@ -604,7 +604,7 @@ def test_homepage_next_action_cta_keeps_visible_primary_contrast(): template = Path("templates/ai_intelligence.html").read_text(encoding="utf-8") - assert ".growth-command-alert-action" in template - assert "background: #8f442b" in template - assert "color: #fff" in template + assert "#commandTaskButton.growth-command-alert-action" in template + assert "background-color: #8f442b !important" in template + assert "color: #fff !important" in template assert "width: min(100%, 980px)" in template