Step 1 done. Now let me update the button UI (Step 2) — replace the single Deep Analysis button with dropdown + button.


TodoWrite

Replace DEEP_ANALYSIS_PASSES with DEEP_ANALYSIS_PLAYBOOKS constant (4 playbooks, full prompts)

Replacing DEEP_ANALYSIS_PASSES with DEEP_ANALYSIS_PLAYBOOKS constant

Add playbook dropdown UI + update Deep Analysis button

Update runDeepAnalysis() to use selected playbook

Updating runDeepAnalysis() to use selected playbook

Add initPlaybookDropdown() and call on page load

Update api.php: save_ai_response to persist deep_analysis_playbook field

Update api.php: load_deep_analysis to return playbook info

Updating load_deep_analysis API endpoint

Verify with php -l syntax check


Todos have been modified successfully. Ensure that you continue to use the todo list to track your progress. Please proceed with the current tasks if applicable

Replace DEEP_ANALYSIS_PASSES with DEEP_ANALYSIS_PLAYBOOKS constant (4 playbooks, full prompts)

Replacing DEEP_ANALYSIS_PASSES with DEEP_ANALYSIS_PLAYBOOKS constant

Add playbook dropdown UI + update Deep Analysis button

Update runDeepAnalysis() to use selected playbook

Updating runDeepAnalysis() to use selected playbook

Add initPlaybookDropdown() and call on page load

Update api.php: save_ai_response to persist deep_analysis_playbook field

Update api.php: load_deep_analysis to return playbook info

Updating load_deep_analysis API endpoint

Verify with php -l syntax check

Verify with php -l syntax check


Edit

                    <!-- Submit Buttons -->
                    <div style="display:flex;gap:8px;">
                        <button class="btn btn-primary" id="submit-ai-btn" onclick="submitToAI()" style="flex:1;">
                            Send to AI
                        </button>
                        <button class="btn" id="deep-analysis-btn" onclick="runDeepAnalysis()" style="flex:1;background:linear-gradient(135deg,#8b5cf6,#3b82f6);color:white;font-weight:600;">
                            Deep Analysis (5-Pass)
                        </button>
                    </div>

                        <button class="btn btn-primary" id="submit-ai-btn" onclick="submitToAI()" style="flex:1;">
                            Send to AI
                        </button>

                        <select id="deep-analysis-playbook" style="flex:2;padding:8px;border-radius:6px;border:1px solid #ccc;font-size:0.9em;">

                        </select>
                        <button class="btn" id="deep-analysis-btn" onclick="runDeepAnalysis()" style="flex:1;background:linear-gradient(135deg,#8b5cf6,#3b82f6);color:white;font-weight:600;">
                            Deep Analysis
                        </button>