Files
chrnx-dev-wp/docs/superpowers/plans/2026-08-27-editorial-widths-and-track-pages.md
chrnx 76917decd0 feat(editorial): widen sections and add local track pages
Unify the editorial canvas across section pages, keep release tracks out of Journal, and give each song a listening surface with audio, metadata, platform links, sharing, and optional featured art. Document and seed the local The No Names fixture without changing production data.
2026-08-27 20:24:39 -05:00

3.1 KiB

Editorial Widths and Track Pages 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: Unify editorial widths, keep release tracks out of Journal, and add a complete local-first track page.

Architecture: Keep tracks as posts with existing release taxonomy and metadata. Add only the missing description/share/audio fixture behavior, scope the Journal query exclusion to release-assigned posts, and use shared width tokens/classes in the theme CSS.

Tech Stack: WordPress block theme, PHP render blocks, native HTML audio/share APIs, CSS, Playwright, PHPUnit.


Task 1: Define track-page metadata and Journal eligibility

Files:

  • Modify: inc/track-meta.php

  • Modify: inc/queries.php

  • Test: tests/php/PatternsTest.php

  • Add sanitized chrnx_track_description post meta and a helper for release-track detection.

  • Exclude posts assigned to chrnx_release from unfiltered Journal queries while preserving explicit release queries.

  • Add regression assertions for direct track eligibility and Journal exclusion.

  • Run PHPUnit and fix failures.

Task 2: Render the track page controls

Files:

  • Modify: blocks/track-meta/render.php

  • Modify: templates/single.html

  • Modify: assets/js/track-share.js (create)

  • Modify: inc/blocks.php

  • Test: tests/e2e/music-podcast-stages.spec.mjs

  • Render description, player, release, platform links, and share control in a single track metadata surface.

  • Load the share enhancement progressively; use native share when available and clipboard fallback otherwise.

  • Keep lyrics in the existing post content and preserve non-track single-post behavior.

  • Add browser assertions for player/metadata/share and no Journal leakage.

Task 3: Make the editorial shell consistently wide

Files:

  • Modify: assets/css/components.css

  • Test: tests/e2e/music-podcast-stages.spec.mjs

  • Apply the centered 1200px editorial width to Journal, Projects, Podcasts, About, release archives, and track pages.

  • Correct Podcast hero centering and preserve mobile stacking/no overflow.

  • Style the track surface with the existing dark/grunge tokens and readable lyric text.

  • Verify both themes and 375/768/1440px captures.

Task 4: Populate local audio and metadata

Files:

  • Modify: scripts/seed-the-no-names-local.php

  • Modify: README.md

  • Import available local MP3s from the mounted Suno source as fixture-owned attachments.

  • Populate track descriptions from song metadata when present and keep fake platform URLs local-only.

  • Document the seed command and production cleanup boundary.

Task 5: Verify and capture

  • Run npm run lint:css, npm run lint:js, npm run test:php, and the focused E2E suite against port 8908.
  • Run npm run test:smoke.
  • Capture Music, Podcasts, Journal, Projects, About, and a track page in dark/light desktop/mobile states.
  • Open the final Music and track screenshots in macOS Preview.