修正 PPT 預覽抽屜標題選擇器
All checks were successful
CD Pipeline / deploy (push) Successful in 1m3s

This commit is contained in:
OoO
2026-05-18 20:33:38 +08:00
parent b8fe5f0c58
commit 0609194ef5
5 changed files with 5 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
================================================================================
【已完成】
- V10.208 修正 `/observability/ppt_audit_history` 同頁預覽抽屜 selectorModal 標題改用獨立 `data-ppt-preview-modal-title`,避免與多個預覽連結的資料屬性衝突。
- V10.207 強化 `/observability/ppt_audit_history` 同頁線上預覽:所有可預覽簡報按鈕改為開啟頁內 PDF 預覽抽屜,保留開新頁與下載,降低產線頁來回跳轉成本並改善手機操作。
- V10.205 補 `/observability/ppt_audit_history` 本頁批次 PDF 預熱Preview Workbench 可一鍵預熱頁面上尚未快取的 PPTX沿用單檔 JSON 端點逐一建立 PDF 快取並即時更新狀態。
- V10.203 補 `/observability/ppt_audit_history` 單檔 PDF 預熱操作:未快取的可預覽 PPTX 會顯示「預熱 PDF」透過 JSON 端點建立 PDF 快取並即時更新頁面狀態。

View File

@@ -320,7 +320,7 @@ YOUTUBE_API_KEY = os.getenv('YOUTUBE_API_KEY', '')
# ==========================================
# 系統版本與路徑
# ==========================================
SYSTEM_VERSION = "V10.207"
SYSTEM_VERSION = "V10.208"
LOG_FILE_PATH = os.path.join(BASE_DIR, 'logs/system.log')
public_url = PUBLIC_URL # 用於模板顯示

View File

@@ -611,7 +611,7 @@
<header class="ppt-preview-head">
<div>
<div class="ppt-label">Inline PDF Preview</div>
<h2 id="pptPreviewTitle" data-ppt-preview-title>簡報線上預覽</h2>
<h2 id="pptPreviewTitle" data-ppt-preview-modal-title>簡報線上預覽</h2>
<small class="text-muted" data-ppt-preview-filename>尚未選擇檔案</small>
</div>
<div class="ppt-preview-actions">

View File

@@ -281,6 +281,7 @@ def test_ppt_audit_history_shows_recent_preview_workbench(client, monkeypatch, t
assert '線上預覽' in html
assert 'data-ppt-open-preview' in html
assert 'data-ppt-preview-modal' in html
assert 'data-ppt-preview-modal-title' in html
assert 'data-ppt-preview-pdf' in html
assert 'PDF 快取' in html
assert '1</strong> 份 PDF 快取' in html

View File

@@ -598,7 +598,7 @@
const pageStatus = document.querySelector('[data-ppt-auto-status]');
const previewModal = document.querySelector('[data-ppt-preview-modal]');
const previewFrame = previewModal ? previewModal.querySelector('[data-ppt-preview-frame]') : null;
const previewTitle = previewModal ? previewModal.querySelector('[data-ppt-preview-title]') : null;
const previewTitle = previewModal ? previewModal.querySelector('[data-ppt-preview-modal-title]') : null;
const previewFilename = previewModal ? previewModal.querySelector('[data-ppt-preview-filename]') : null;
const previewOpenPage = previewModal ? previewModal.querySelector('[data-ppt-preview-open-page]') : null;
const previewDownload = previewModal ? previewModal.querySelector('[data-ppt-preview-download]') : null;