diff --git a/docs/superpowers/plans/2026-06-22-merge-generate-buttons.md b/docs/superpowers/plans/2026-06-22-merge-generate-buttons.md new file mode 100644 index 0000000..81ae999 --- /dev/null +++ b/docs/superpowers/plans/2026-06-22-merge-generate-buttons.md @@ -0,0 +1,436 @@ +# Merge Generate Buttons Into Dropdown Implementation Plan + +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. + +**Goal:** Replace the two separate "批量生成" / "生成一篇" toolbar buttons with a single "生成教案 ▾" button that opens a dropdown menu offering both actions. + +**Architecture:** Extract a new self-contained Vue component `GenerateMenuButton.vue` that owns the open/closed state and outside-click/Escape dismissal, and emits the same `generate` / `batchGenerate` events the toolbar already emits today. `WorkspaceToolbar.vue` swaps its two `