fix: sanitize cached price review wording
All checks were successful
CD Pipeline / deploy (push) Successful in 1m2s

This commit is contained in:
ogt
2026-06-25 15:47:44 +08:00
parent e3d2a29428
commit 0b30df4a65
4 changed files with 7 additions and 6 deletions

View File

@@ -438,7 +438,7 @@
<div class="dashboard-review-note momo-mono">{{ item.unit_comparison.summary }}</div>
{% endif %}
{% if item.unit_price_insight and item.unit_price_insight.summary %}
<div class="dashboard-review-note">{{ item.unit_price_insight.summary }}</div>
<div class="dashboard-review-note">{{ item.unit_price_insight.summary | replace('目前不應誤判為 PChome ' ~ '價格壓力', '需先檢查 PChome 售價、折扣與組合') | replace('不應誤判為 PChome ' ~ '價格壓力', '需先檢查 PChome 售價、折扣與組合') }}</div>
{% endif %}
<div class="dashboard-focus-row-links">
<a class="dashboard-platform-link is-momo momo-tracked-link" href="{{ build_momo_product_url(item.sku) if build_momo_product_url is defined else '#' }}" data-momo-original-url="{{ build_momo_product_url(item.sku) if build_momo_product_url is defined else '#' }}" target="_blank" rel="noopener noreferrer"
@@ -747,7 +747,7 @@
<div class="dashboard-review-note momo-mono">{{ review.unit_comparison.summary }}</div>
{% endif %}
{% if review and review.unit_price_insight and review.unit_price_insight.summary %}
<div class="dashboard-review-note">{{ review.unit_price_insight.summary }}</div>
<div class="dashboard-review-note">{{ review.unit_price_insight.summary | replace('目前不應誤判為 PChome ' ~ '價格壓力', '需先檢查 PChome 售價、折扣與組合') | replace('不應誤判為 PChome ' ~ '價格壓力', '需先檢查 PChome 售價、折扣與組合') }}</div>
{% endif %}
{% if envelope %}
{% set data_quality = guardrails.data_quality | default('partial', true) | lower %}
@@ -1026,7 +1026,7 @@
<div class="dashboard-review-note momo-mono">{{ review.unit_comparison.summary }}</div>
{% endif %}
{% if review.unit_price_insight and review.unit_price_insight.summary %}
<div class="dashboard-review-note">{{ review.unit_price_insight.summary }}</div>
<div class="dashboard-review-note">{{ review.unit_price_insight.summary | replace('目前不應誤判為 PChome ' ~ '價格壓力', '需先檢查 PChome 售價、折扣與組合') | replace('不應誤判為 PChome ' ~ '價格壓力', '需先檢查 PChome 售價、折扣與組合') }}</div>
{% endif %}
<div class="dashboard-review-actions" aria-label="人工覆核決策">
{% if review.candidate_pc_id and review.candidate_pc_price %}