diff --git a/docs/superpowers/plans/2026-06-08-speaking-lab-study-right-mode-panel.md b/docs/superpowers/plans/2026-06-08-speaking-lab-study-right-mode-panel.md new file mode 100644 index 0000000..00d37d4 --- /dev/null +++ b/docs/superpowers/plans/2026-06-08-speaking-lab-study-right-mode-panel.md @@ -0,0 +1,461 @@ +# Speaking Lab Study Right Mode Panel 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:** Move the learning mode bar and focused practice UI into the right panel, while display modes show the transcript list and input modes hide it. + +**Architecture:** Reuse the existing practice helpers and mode state. Move existing markup from the left video panel into the right panel, then make `app.js` toggle between transcript-list view and focused-practice view based on `subtitleMode`. + +**Tech Stack:** Vanilla HTML, CSS, JavaScript, Node `assert` tests, FastAPI static app for browser verification. + +--- + +## File Structure + +- `F:\ooo\speaking-practice-local\study.html`: move existing practice mode/prompt markup from below the video controls into the right panel. +- `F:\ooo\speaking-practice-local\app.js`: toggle right-panel views by mode and keep practice reset/checking behavior. +- `F:\ooo\speaking-practice-local\styles.css`: remove the extra left-panel row and restyle the right panel for transcript vs focused practice modes. +- `F:\ooo\speaking-practice-local\tests\practice-helpers.test.mjs`: no changes expected; existing helper coverage should continue to pass. + +## Task 1: Move Practice Markup Into Right Panel + +**Files:** +- Modify: `F:\ooo\speaking-practice-local\study.html` + +- [ ] **Step 1: Move the practice panel out of the video panel** + +In `study.html`, remove this entire block from inside `.video-panel`, currently between `.tool-row` and `.recording-line`: + +```html +
+
+ + + + + +
+ +
+
+ 双语 +

+

+
+ + + +

+
+
+``` + +- [ ] **Step 2: Add the mode bar to the right panel toolbar** + +Replace the current right panel toolbar: + +```html +
+
+ 字幕列表 + +
+
+``` + +with: + +```html +
+
+ + + + + +
+
+ 字幕列表 + +
+
+``` + +- [ ] **Step 3: Add focused practice view inside the right panel** + +Insert this block after the closing `` for `.transcript-toolbar` and before `