Files
speaking-practice/docs/superpowers/plans/2026-06-02-speaking-lab-study-focus-layout.md
T
2026-06-03 00:34:42 +08:00

1.5 KiB

Speaking Lab Study Focus Layout Implementation Plan

For agentic workers: REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task.

Goal: Remove the study page material rail and let the video learning panel occupy that space.

Architecture: Remove rail markup in study.html, make related app.js DOM operations optional, and simplify styles.css layout so .left-stage becomes a single video panel column.

Tech Stack: Vanilla HTML, CSS, JavaScript.


Task 1: Remove Rail Markup

  • Modify study.html.
  • Delete the .lesson-rail block inside .left-stage.
  • Keep .video-panel unchanged.

Task 2: Guard Rail JavaScript

  • Modify app.js.
  • Ensure event listeners for searchInput, tagFilters, videoList, videoCount, and adminEntryBtn only run when those elements exist.
  • Make renderLibrary() return early when rail elements are absent.
  • Make renderAdminAccess() tolerate a missing admin button.

Task 3: Expand Video Layout

  • Modify styles.css.
  • Change .left-stage from grid-template-columns: 220px minmax(0, 1fr) to grid-template-columns: minmax(0, 1fr).
  • Remove responsive overrides that reintroduce a rail width.
  • Keep transcript panel on the right.

Task 4: Verify

Run:

node --check app.js
node --check home.js
node --check admin.js
node tests\progress-helpers.test.mjs
node tests\admin-file-input.test.mjs

Open http://127.0.0.1:8000/study.html and confirm the left rail is gone and the video panel is wider.