+
+
+
+
diff --git a/docs/superpowers/plans/2026-08-27-editorial-widths-and-track-pages.md b/docs/superpowers/plans/2026-08-27-editorial-widths-and-track-pages.md
new file mode 100644
index 0000000..247c0a9
--- /dev/null
+++ b/docs/superpowers/plans/2026-08-27-editorial-widths-and-track-pages.md
@@ -0,0 +1,65 @@
+# 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.
diff --git a/docs/superpowers/plans/2026-08-27-music-release-cards.md b/docs/superpowers/plans/2026-08-27-music-release-cards.md
index 5a210e0..e8d9dd2 100644
--- a/docs/superpowers/plans/2026-08-27-music-release-cards.md
+++ b/docs/superpowers/plans/2026-08-27-music-release-cards.md
@@ -14,14 +14,17 @@
**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 an independent release term and preserve existing release slugs.
+- [ ] Add Side B as the `side-b` release term after the three existing terms; preserve the existing public slug `el-hermoso-caos` while 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 regression assertions for four releases and required release-card structure.
+- [ ] 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
@@ -31,22 +34,26 @@
- 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 while retaining the existing hero layers.
-- [ ] Build wide release rows with a dominant cover, readable title/status, platform links, disclosure, track preview, and lyrics link.
+- [ ] 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/` in local light/dark desktop and mobile states.
+- [ ] Capture `/music/` with `CHRNX_REVIEW_URL=http://localhost:8908 node scripts/capture-visual-review.mjs` in local light/dark desktop and mobile states.
### Task 3: Seed local The No Names content
**Files:**
-- Create: `scripts/seed-the-no-names-local.sh`
+- 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 local-only seed command that validates localhost and imports the four release records, covers, descriptions, statuses, and track metadata from the Suno tree.
-- [ ] Import Side B from its nested directory as a separate release.
+- [ ] Add an idempotent `the-no-names` scenario to the existing localhost-guarded seed workflow, reading only `tests/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-*.md` files.
+- [ ] Import source covers into the local media library with `_chrnx_fixture_key` attachments, `_chrnx_fixture_key` terms/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.
@@ -56,7 +63,7 @@
**Files:**
- Modify: relevant tests only if evidence requires it.
-- [ ] Run `npm run test:smoke`, lint, PHP tests, and focused Playwright Music checks.
+- [ ] Run `npm run test:smoke`, `npm run lint:js`, `npm run lint:css`, `npm run phpcs`, `npm run test:php`, and `npx 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 --check` and report local-only status; do not publish or touch production.
diff --git a/docs/superpowers/specs/2026-08-27-editorial-widths-and-track-pages-design.md b/docs/superpowers/specs/2026-08-27-editorial-widths-and-track-pages-design.md
new file mode 100644
index 0000000..96928c5
--- /dev/null
+++ b/docs/superpowers/specs/2026-08-27-editorial-widths-and-track-pages-design.md
@@ -0,0 +1,29 @@
+# Editorial Widths and Track Pages Design
+
+## Goal
+
+Make the editorial pages feel like one site-wide system while giving The No
+Names tracks a proper listening page instead of treating every song as a
+Journal entry.
+
+## Approved behavior
+
+- Journal, Projects, Podcasts, About, release archives, and track pages share a
+ centered desktop content width of approximately 1200px and responsive side
+ gutters.
+- Podcast hero and its latest-conversation section use the same centered width
+ without changing the existing visual language.
+- Posts assigned to `chrnx_release` are excluded from the general Journal
+ stream, but remain directly accessible and appear in release tracklists.
+- A track page renders its native MP3 player when audio is attached, track
+ description, release/platform metadata, a share control with copy fallback,
+ and the existing lyric content.
+- Platform URLs and audio attachments are optional; absent data leaves no empty
+ controls. Local fixtures may use fake URLs and sample MP3s, but production
+ migration must not copy them.
+
+## Boundaries
+
+The work changes the existing post-based track model rather than introducing a
+new post type. No production data or public URLs are changed. The existing
+Journal remains the home for non-track editorial posts.
diff --git a/docs/superpowers/specs/2026-08-27-music-release-cards-design.md b/docs/superpowers/specs/2026-08-27-music-release-cards-design.md
index 551bf30..73fd750 100644
--- a/docs/superpowers/specs/2026-08-27-music-release-cards-design.md
+++ b/docs/superpowers/specs/2026-08-27-music-release-cards-design.md
@@ -6,15 +6,15 @@ Preserve the existing Music landing composition while making its release area wi
## Approved design
-The Music hero, collage, musician, AI quote area, and visual language remain intact. The introductory quote changes to:
+The Music hero, collage, musician, AI quote area, and visual language remain intact. The introductory quote changes to the exact copy below and remains in the existing quote block, below the hero and above the releases:
> Miren, miren: esto es, virtualmente, lo que la voz de Kurt Cobain le hizo a mi cabeza, pasado por una IA generativa. Si vienes con AI SLOP, déjame decirte que me vale veinte mil hectáreas de verga. La letra, la voz y la producción vienen de una tormenta que vive permanentemente en mi cabeza. Si no te gusta, ahí está la puerta. Yo nomás aviso: no habrá conciertos. Así nomás.
-The main content width increases without changing the hero's layered composition. The `Releases in progress` area renders four independent release rows: the 13-track album, both six-track EPs, and Side B as an experimental release. Each row uses a large square cover, a title/status/link column, an expandable Spanish description, a compact track preview, and a link to the lyrics. Suno, Spotify, and Apple Music links render only when real URLs exist.
+The main content width uses a Music-only 1200px desktop cap (the existing theme wide size remains unchanged elsewhere) and full-width with 1rem gutters on mobile, without changing the hero's layered composition. The `Releases in progress` area renders four independent release cards in this order: public slug `el-hermoso-caos` mapped to source directory `el-hermoso-caos-que-habita-en-mi-cerebro` (13 tracks), `ando-bien-arriba` (6), `aqui-se-rompio-una-jerga` (6), and `side-b` (19 experimental tracks). Each card uses a square cover constrained to `min(32%, 22rem)` on desktop, a title/status/platform-link column, a native `` description disclosure closed by default, the first three ordered tracks (or all available tracks when fewer than three exist), and a `Ver letras` link to `/release//`. On mobile the cover stacks above the content. Platform links appear in the fixed order Suno, Spotify, Apple Music, only when a valid HTTPS URL exists; local fixtures leave all three empty.
## Data and local boundary
-The local fixture is populated from `/Users/chrnx/projects/suno/bands/the-no-names`, using `disc.md`, `song.md`, and approved cover files. Side B is represented by a new independent `chrnx_release` term and its own local fixture records. Production is not contacted or mutated.
+The local fixture is the named `the-no-names` scenario in `scripts/seed-test-content.sh`, guarded to `localhost`/`127.0.0.1` and reading only the checked-in generated snapshot `tests/fixtures/the-no-names-releases.json`; generation from `/Users/chrnx/projects/suno/bands/the-no-names` is a separate local command and never runs from a public host. The snapshot maps each `disc.md`, each numbered `song.md` (alternate `song-*.md` files are ignored), and approved 1200px cover file to a release record. Side B is an independent `chrnx_release` term. Descriptions come from the first Concept paragraphs; release statuses use the disc `status` value with unknown/empty values rendered as `En proceso`; track posts use the song title and status. Seed-owned terms use `_chrnx_fixture_key`, posts use `_chrnx_fixture_key`, and attachments use `_chrnx_fixture_key`; rerun replaces only those records and `restore` removes only those records. Missing audio and platform URLs remain empty. Production is not contacted or mutated.
## Typography
@@ -22,8 +22,8 @@ Keep body and lyric text readable. Use distressed/grunge treatment on release la
## Interaction and accessibility
-Descriptions use native disclosure semantics with keyboard support, visible focus states, and readable contrast. External links have descriptive text and indicate a new tab only through accessible text/labels if that behavior is used. Missing artwork, links, status, and descriptions render gracefully.
+Descriptions use native `` semantics, closed by default, with keyboard support, visible focus states, and readable contrast. `Ver letras` links to the release archive URL and each visible track title links to its individual post when present. Each external link uses `target="_blank" rel="noopener noreferrer external"` and an accessible platform name. Missing artwork, links, status, and descriptions render gracefully; the release card still renders with its title and track preview.
## Verification
-Run smoke, PHP, JS/CSS lint, and browser checks against the isolated wp-env instance. Capture `/music/` locally in dark and light themes at desktop and mobile widths before claiming completion.
+Run `npm run test:smoke`, `npm run lint:js`, `npm run lint:css`, `npm run phpcs`, `npm run test:php`, and `npx playwright test tests/e2e/music-podcast-stages.spec.mjs` against `http://localhost:8908` (the isolated override). Capture `/music/` locally in dark and light themes at 375px, 768px, and 1440px. Acceptance requires exactly four cards in the declared order, seeded counts 13/6/6/19, native disclosures closed by default, valid conditional platform links, lyrics/archive links, no horizontal overflow, and no public-host access from the seed command.
diff --git a/inc/assets.php b/inc/assets.php
index c404725..7596886 100644
--- a/inc/assets.php
+++ b/inc/assets.php
@@ -27,5 +27,14 @@ function chrnx_enqueue_assets() {
array( 'chrnx-layout' ),
CHRNX_VERSION
);
+ if ( is_singular( 'post' ) ) {
+ wp_enqueue_script(
+ 'chrnx-track-share',
+ get_theme_file_uri( 'assets/js/track-share.js' ),
+ array(),
+ CHRNX_VERSION,
+ true
+ );
+ }
}
add_action( 'wp_enqueue_scripts', 'chrnx_enqueue_assets' );
diff --git a/inc/queries.php b/inc/queries.php
index 6b22315..9439faf 100644
--- a/inc/queries.php
+++ b/inc/queries.php
@@ -124,6 +124,12 @@ function chrnx_get_eligible_editorial_post_ids( $extra_args = array() ) {
'cache_results' => false,
'suppress_filters' => false,
'chrnx_require_nonempty_title' => true,
+ 'tax_query' => array(
+ array(
+ 'taxonomy' => 'chrnx_release',
+ 'operator' => 'NOT EXISTS',
+ ),
+ ),
),
$extra_args,
array( 'posts_per_page' => $limit )
@@ -487,6 +493,13 @@ function chrnx_get_journal_query_args( array $request ): array {
if ( ! empty( $tax_query ) ) {
$args['tax_query'] = $tax_query;
}
+ $args['tax_query'][] = array(
+ 'taxonomy' => 'chrnx_release',
+ 'operator' => 'NOT EXISTS',
+ );
+ if ( 1 < count( $args['tax_query'] ) ) {
+ $args['tax_query']['relation'] = 'AND';
+ }
$search = chrnx_sanitize_journal_search( $request['s'] ?? '' );
if ( '' !== $search ) {
diff --git a/inc/release-meta.php b/inc/release-meta.php
index 7e08eb6..c405e43 100644
--- a/inc/release-meta.php
+++ b/inc/release-meta.php
@@ -127,7 +127,7 @@ function chrnx_get_platform_links_markup( array $links, $class_name = 'chrnx-pla
}
$items .= sprintf(
// The icon path data is a fixed literal, never user input.
- '