Skip to content

AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He

fix(confirm-ui): clarify empty custom color validation

hugohe374f9920b0246
diff --git a/skills/ppt-master/scripts/confirm_ui/static/app.js b/skills/ppt-master/scripts/confirm_ui/static/app.js
index 148fe047..1ee90796 100644
--- a/skills/ppt-master/scripts/confirm_ui/static/app.js
+++ b/skills/ppt-master/scripts/confirm_ui/static/app.js
@@ -70,6 +70,7 @@
ai_custom_candidate: "AI custom proposal",
ai_custom_candidate_hint: "Always visible for comparison. It is not selected by default; select it to edit.",
custom_behavior_required: "The selected AI custom proposal cannot be blank.",
+ custom_color_required: "Describe the custom color scheme before continuing.",
design_system_required: "Choose a complete palette and typography system before continuing.",
mode_behavior_placeholder: "Describe the act sequence, title voice, page rhythm, and presentation posture.",
visual_style_behavior_placeholder: "Describe shape language, composition, decoration density, whitespace, typography character, and texture.",
@@ -229,6 +230,7 @@
ai_custom_candidate: "AIカスタム案",
ai_custom_candidate_hint: "比較できるよう常に全文を表示します。初期選択はされず、選択後に編集できます。",
custom_behavior_required: "選択したAIカスタム案を空欄にはできません。",
+ custom_color_required: "続行する前に、カスタム配色の説明を入力してください。",
design_system_required: "続行する前に、完全な配色と書体システムを選択してください。",
mode_behavior_placeholder: "構成の流れ、タイトルの語り口、ページのリズム、表現姿勢を記述します。",
visual_style_behavior_placeholder: "形状言語、構図、装飾密度、余白、書体の性格、質感を記述します。",
@@ -388,6 +390,7 @@
ai_custom_candidate: "AI 自定义方案",
ai_custom_candidate_hint: "始终展示完整内容用于比较;默认不选中,选择后可编辑。",
custom_behavior_required: "已选择的 AI 自定义方案不能为空。",
+ custom_color_required: "请先填写自定义配色说明,再继续确认。",
design_system_required: "请先选择完整的配色与字体方案,再继续确认。",
mode_behavior_placeholder: "描述叙事阶段、标题语气、页面节奏和表达姿态。",
visual_style_behavior_placeholder: "描述形状语言、构图、装饰密度、留白、字体气质和纹理。",
@@ -3268,7 +3271,10 @@
var valid = (completePalette || customPalette) &&
completeFamilies && completeSizes;
if (!valid) {
- document.getElementById("confirm-status").textContent = t("design_system_required");
+ var message = color.name === "custom" && !customPalette
+ ? t("custom_color_required")
+ : t("design_system_required");
+ document.getElementById("confirm-status").textContent = message;
}
return !!valid;
}