fix: enforce homepage action CTA contrast
All checks were successful
CD Pipeline / deploy (push) Successful in 1m3s

This commit is contained in:
ogt
2026-06-25 11:09:53 +08:00
parent f8c6487c5c
commit be1ea94a09
4 changed files with 16 additions and 14 deletions

View File

@@ -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 # 用於模板顯示

View File

@@ -739,3 +739,4 @@ POSTGRES_HOST=momo-db
| 2026-05-20 | Telegram HTML parse mode 不支援 `<br>`,可能導致告警或報告送出 400 | V10.321 起 Telegram template 發送前會把 `<br>` / `<br/>` / `<BR />` 轉為換行;保留其他 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 必須量測按鈕背景與卡片寬度。 |

View File

@@ -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 {

View File

@@ -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