1.5 KiB
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-railblock inside.left-stage. - Keep
.video-panelunchanged.
Task 2: Guard Rail JavaScript
- Modify
app.js. - Ensure event listeners for
searchInput,tagFilters,videoList,videoCount, andadminEntryBtnonly 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-stagefromgrid-template-columns: 220px minmax(0, 1fr)togrid-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.