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.
4.5 KiB
Music release cards 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: Redesign the local Music release area into wide, expandable The No Names release cards and seed all four local releases from the Suno project.
Architecture: Keep the existing dynamic release-list block and taxonomy model. Extend its markup/data boundary for descriptions, track previews, lyrics links, and Side B; use focused CSS for the wider landing layout and responsive card geometry. Add an idempotent local-only seed path rather than coupling production rendering to filesystem paths.
Tech Stack: WordPress PHP blocks, CSS, wp-env/Colima, Node smoke and Playwright tests.
Task 1: Lock the local data contract
Files:
-
Modify:
inc/taxonomies.php -
Modify:
patterns/music-landing.php -
Modify:
inc/release-meta.php -
Modify:
blocks/release-list/render.php -
Test:
tests/php/PatternsTest.php -
Test:
tests/smoke/visual-integration.test.mjs -
Add Side B as the
side-brelease term after the three existing terms; preserve the existing public slugel-hermoso-caoswhile documenting its longer source-directory mapping. -
Replace the introductory quote with the approved exact Spanish copy while keeping its existing block position.
-
Extend release list rendering with safe description, status, platform links, track preview, and lyrics destination data.
-
Add semantic disclosure markup and empty-state handling.
-
Add an explicit renderer order array and regression assertions for exactly four releases in order, 13/6/6/19 seeded counts, required release-card structure, and exact quote placement/copy.
-
Run the focused smoke test and confirm it fails before implementation where appropriate.
Task 2: Implement the release-card presentation
Files:
-
Modify:
assets/css/components.css -
Modify:
patterns/music-landing.php -
Modify:
blocks/release-list/render.php -
Test:
tests/e2e/music-podcast-stages.spec.mjs -
Test:
tests/php/BlockRenderingTest.php -
Widen only the Music landing content container to a 1200px cap while retaining the existing hero layers and unchanged global 1120px wide size.
-
Build wide release cards with
min(32%, 22rem)cover width, readable title/status, conditional platform links in Suno/Spotify/Apple order, closed native disclosure, first-three-track preview, per-track links, and release archive lyrics link. -
Add responsive stacking and keyboard/focus states.
-
Apply grunge texture through existing visual language and restrained metadata treatment, not unreadable body typography.
-
Capture
/music/withCHRNX_REVIEW_URL=http://localhost:8908 node scripts/capture-visual-review.mjsin local light/dark desktop and mobile states.
Task 3: Seed local The No Names content
Files:
-
Create:
tests/fixtures/the-no-names-releases.json -
Modify:
scripts/seed-test-content.php -
Modify:
scripts/seed-test-content.sh -
Modify:
README.md -
Test:
tests/smoke/theme-contract.test.mjs -
Add an idempotent
the-no-namesscenario to the existing localhost-guarded seed workflow, reading onlytests/fixtures/the-no-names-releases.json; include an explicit local generator command that reads the Suno source tree and cannot run against a public host. -
Include all 13 main-album directories, six tracks from each EP, and 19 Side B tracks; ignore alternate
song-*.mdfiles. -
Import source covers into the local media library with
_chrnx_fixture_keyattachments,_chrnx_fixture_keyterms/posts, term descriptions/status, and clean only prior The No Names fixture records on rerun/restore; switching to default must preserve unrelated content. -
Keep absent streaming URLs empty and never infer public links.
-
Document startup, seed, preview, and restore boundaries.
-
Run the seed against the isolated wp-env database.
Task 4: Verify and hand off
Files:
-
Modify: relevant tests only if evidence requires it.
-
Run
npm run test:smoke,npm run lint:js,npm run lint:css,npm run phpcs,npm run test:php, andnpx playwright test tests/e2e/music-podcast-stages.spec.mjs. -
Start Colima/wp-env on the configured local port and capture the rendered page.
-
Inspect screenshots at 375, 768, and 1440 widths in both themes.
-
Run
git diff --checkand report local-only status; do not publish or touch production.