Compare commits

...
2 Commits
Author SHA1 Message Date
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
chrnx 135b462bd2 docs: define local music release card redesign 2026-08-27 14:26:52 -05:00
23 changed files with 838 additions and 27 deletions

No files matched your search

+15 -1
View File
@@ -66,6 +66,17 @@ discard the pre-fixture snapshot. Run `restore` explicitly to reinstate the
captured option values and owned Subscribe status byte-for-byte and remove the
snapshot. Fixture pages/posts remain local and reusable.
For the local The No Names Music review, mount the source tree from
`/Users/chrnx/projects/suno` and load the four releases, covers, lyrics, and
local-only placeholder platform URLs:
```sh
./scripts/seed-the-no-names-local.sh
```
The placeholder Suno, Spotify, and Apple Music links are intentionally fake and
must be removed or replaced before any production migration.
Rebuild the responsive portrait derivatives on macOS with `sips`, `cwebp`, and
`avifenc`:
@@ -107,7 +118,10 @@ isolated from the root environment:
```json
{
"port": 8908,
"testsPort": 8909
"testsPort": 8909,
"mappings": {
"wp-content/suno-source": "/Users/chrnx/projects/suno/bands/the-no-names"
}
}
```
+216 -2
View File
@@ -263,6 +263,10 @@ footer a {
margin-top: 2rem;
}
.chrnx-home .chrnx-featured-stories__grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.chrnx-featured-story,
.chrnx-journal-card,
.chrnx-podcast-card,
@@ -499,6 +503,22 @@ footer a {
margin: 0;
}
/* WordPress constrained layouts cap direct children at content-size by
* default. */
.chrnx-archive > .chrnx-journal-stream,
.chrnx-entry--page:has(.chrnx-journal-stream) > .chrnx-journal-stream,
.chrnx-entry--page:has(.chrnx-journal-stream) > .entry-content > .chrnx-journal-stream {
width: 100%;
max-width: none;
margin-inline: 0 !important;
}
.chrnx-entry--page > .entry-content.wp-block-post-content {
width: 100%;
max-width: none !important;
margin-inline: 0 !important;
}
.chrnx-journal-stream__list > li {
min-width: 0;
}
@@ -714,9 +734,23 @@ html[data-theme="light"] .chrnx-home-music p {
.chrnx-archive,
.chrnx-search,
.chrnx-not-found {
width: min(calc(100vw - 2rem), 1200px);
max-width: none;
margin-inline: auto;
padding-block: clamp(3.5rem, 7vw, 7rem);
}
/* The block layout adds its content-size cap with !important on direct
* children. */
.wp-site-blocks > .chrnx-entry,
.wp-site-blocks > .chrnx-archive,
.wp-site-blocks > .chrnx-search,
.wp-site-blocks > .chrnx-not-found {
width: min(calc(100vw - 2rem), 1200px);
max-width: 1200px !important;
margin-inline: auto !important;
}
.chrnx-entry > h1,
.chrnx-archive > h1,
.chrnx-search > h1,
@@ -852,6 +886,20 @@ html[data-theme="light"] .chrnx-home-music p {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.chrnx-entry--page > .entry-content > .chrnx-project-list,
.chrnx-archive > .chrnx-project-list {
width: 100%;
max-width: none;
margin-inline: 0 !important;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.chrnx-entry--page > .entry-content > .chrnx-about {
width: 100%;
max-width: none;
margin-inline: 0 !important;
}
/* Grunge release cards: torn light, heavy rule, dirt in the corners. */
.chrnx-release-card,
.chrnx-project-card {
@@ -974,6 +1022,128 @@ html[data-theme="light"] .chrnx-home-music p {
color: var(--chrnx-text);
}
/* Music release cards use the available page width. */
.chrnx-music-landing > .chrnx-release-list {
width: min(100%, 1200px);
max-width: 1200px;
margin-inline: auto;
grid-template-columns: 1fr;
}
.chrnx-music-landing {
position: relative;
width: min(calc(100vw - 2rem), 1200px);
max-width: none;
left: 50%;
margin-inline: 0;
transform: translateX(-50%);
}
.chrnx-music-landing .chrnx-character-stage,
.chrnx-music-landing .chrnx-music-note {
width: 100%;
max-width: none;
}
.chrnx-music-landing .chrnx-release-card__main {
display: grid;
grid-template-columns: minmax(0, min(32%, 22rem)) minmax(0, 1fr);
gap: clamp(1.25rem, 3vw, 2.5rem);
align-items: start;
}
.chrnx-music-landing .chrnx-release-card__art {
margin: 0;
}
.chrnx-music-landing .chrnx-release-card__content {
min-width: 0;
padding-block: 0.35rem;
}
.chrnx-release-card__title-link {
color: inherit;
text-decoration: none;
}
.chrnx-release-card__title-link:hover .chrnx-release-card__title,
.chrnx-release-card__title-link:focus-visible .chrnx-release-card__title {
color: var(--chrnx-green);
}
.chrnx-music-landing .chrnx-release-card__title {
font-size: clamp(1.65rem, 1.2rem + 1.4vw, 2.5rem);
}
.chrnx-platform-links__label {
font-family: var(--wp--preset--font-family--metadata);
font-size: var(--wp--preset--font-size--small);
}
.chrnx-release-card__description {
margin-block: 1rem;
border-block: 1px solid var(--chrnx-line);
}
.chrnx-release-card__description summary {
padding: 0.85rem 0;
color: var(--chrnx-green);
cursor: pointer;
font-family: var(--wp--preset--font-family--metadata);
letter-spacing: 0.04em;
}
.chrnx-release-card__description summary:focus-visible {
outline: 2px solid var(--chrnx-green);
outline-offset: 4px;
}
.chrnx-release-card__description p {
max-width: 70ch;
margin: 0 0 1rem;
color: var(--chrnx-muted);
}
.chrnx-release-card__tracks {
display: grid;
gap: 0.45rem;
margin: 0;
padding: 0;
list-style: none;
}
.chrnx-release-card__tracks li {
display: flex;
gap: 0.75rem;
min-width: 0;
font-family: var(--wp--preset--font-family--metadata);
}
.chrnx-release-card__tracks li > span {
color: var(--chrnx-green);
}
.chrnx-release-card__tracks a,
.chrnx-release-card__lyrics {
color: inherit;
text-decoration: none;
}
.chrnx-release-card__tracks a:hover,
.chrnx-release-card__tracks a:focus-visible,
.chrnx-release-card__lyrics:hover,
.chrnx-release-card__lyrics:focus-visible {
color: var(--chrnx-green);
text-decoration: underline;
}
.chrnx-release-card__lyrics {
display: inline-block;
margin-top: 1rem;
color: var(--chrnx-accent);
font-family: var(--wp--preset--font-family--metadata);
}
/* Album page. */
.chrnx-release-detail__head,
.chrnx-project-detail__head {
@@ -1210,11 +1380,17 @@ html[data-theme="light"] .chrnx-home-music p {
@media (max-width: 900px) {
.chrnx-journal-stream__list,
.chrnx-home .chrnx-featured-stories__grid,
.chrnx-release-list,
.chrnx-project-list {
grid-template-columns: 1fr;
}
.chrnx-entry--page > .entry-content > .chrnx-project-list,
.chrnx-archive > .chrnx-project-list {
grid-template-columns: 1fr;
}
.chrnx-topic-hero {
grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.6fr);
}
@@ -1628,9 +1804,12 @@ html[data-theme="light"] .chrnx-music-landing .chrnx-character-stage {
}
.chrnx-podcast-landing {
width: min(calc(100vw - 2rem), var(--wp--style--global--wide-size));
position: relative;
max-width: none;
margin-inline: calc((100% - min(calc(100vw - 2rem), var(--wp--style--global--wide-size))) / 2);
left: 50%;
width: min(calc(100vw - 2rem), 1200px);
margin-inline: 0;
transform: translateX(-50%);
}
.chrnx-entry--page:has(.chrnx-music-landing) > .wp-block-post-title,
@@ -1638,6 +1817,37 @@ html[data-theme="light"] .chrnx-music-landing .chrnx-character-stage {
text-align: center;
}
.chrnx-podcast-landing .chrnx-character-stage,
.chrnx-podcast-landing > .wp-block-chrnx-latest-podcast {
width: 100%;
max-width: none;
}
.chrnx-track-meta__description {
grid-column: 1 / -1;
max-width: 70ch;
margin: 0;
color: var(--chrnx-muted);
}
.chrnx-track-meta__share {
justify-self: start;
min-height: 2.5rem;
padding-inline: 0.9rem;
border: 1px solid color-mix(in srgb, var(--chrnx-accent) 45%, var(--chrnx-line));
border-radius: 0.35rem;
background: transparent;
color: inherit;
font: inherit;
cursor: pointer;
}
.chrnx-track-meta__share:hover,
.chrnx-track-meta__share:focus-visible {
background: color-mix(in srgb, var(--chrnx-accent) 18%, transparent);
color: var(--chrnx-text);
}
/* Landscape backdrops sit behind everything and stay quiet under the copy. */
.chrnx-character-stage__atmosphere > .chrnx-responsive-atmosphere {
position: absolute;
@@ -1751,6 +1961,10 @@ html[data-theme="light"] .chrnx-music-landing .chrnx-character-stage {
@media (max-width: 780px) {
.chrnx-music-landing .chrnx-release-card__main {
grid-template-columns: 1fr;
}
.chrnx-topic-hero {
min-height: 0;
}
+7
View File
@@ -104,6 +104,13 @@
return el(
wp.editPost.PluginDocumentSettingPanel,
{ name: 'chrnx-track', title: __( 'Track', 'chrnx' ) },
el( wp.components.TextareaControl, {
label: __( 'Track description', 'chrnx' ),
value: meta.chrnx_track_description || '',
onChange( value ) {
setMeta( 'chrnx_track_description', value );
},
} ),
el( wp.components.TextControl, {
label: __( 'Track number', 'chrnx' ),
type: 'number',
+32
View File
@@ -0,0 +1,32 @@
( function () {
'use strict';
document.addEventListener( 'click', function ( event ) {
const button = event.target.closest( '[data-chrnx-share]' );
if ( ! button ) {
return;
}
const title = button.dataset.shareTitle || document.title;
const url = button.dataset.shareUrl || window.location.href;
const done = function () {
const original = button.dataset.originalLabel || button.textContent;
button.dataset.originalLabel = original;
button.textContent = 'Enlace copiado';
window.setTimeout( function () {
button.textContent = original;
}, 1800 );
};
if ( navigator.share ) {
navigator.share( { title, url } ).catch( function () {} );
return;
}
if ( navigator.clipboard && navigator.clipboard.writeText ) {
navigator.clipboard
.writeText( url )
.then( done )
.catch( function () {} );
}
} );
} )();
+38 -12
View File
@@ -6,12 +6,14 @@
*/
$chrnx_heading = chrnx_get_heading_level( $attributes['headingLevel'] ?? 4, 4 );
$chrnx_terms = get_terms(
array(
'taxonomy' => 'chrnx_release',
'hide_empty' => false,
)
);
$chrnx_release_order = array( 'el-hermoso-caos', 'ando-bien-arriba', 'aqui-se-rompio-una-jerga', 'side-b' );
$chrnx_terms = array();
foreach ( $chrnx_release_order as $chrnx_release_slug ) {
$chrnx_release_term = get_term_by( 'slug', $chrnx_release_slug, 'chrnx_release' );
if ( $chrnx_release_term instanceof WP_Term ) {
$chrnx_terms[] = $chrnx_release_term;
}
}
if ( is_wp_error( $chrnx_terms ) || empty( $chrnx_terms ) ) {
return;
}
@@ -25,9 +27,7 @@ if ( is_wp_error( $chrnx_terms ) || empty( $chrnx_terms ) ) {
$chrnx_links = chrnx_get_release_links( $chrnx_term->term_id );
?>
<article class="chrnx-release-card">
<?php if ( ! is_wp_error( $chrnx_link ) ) : ?>
<a class="chrnx-release-card__link" href="<?php echo esc_url( $chrnx_link ); ?>">
<?php endif; ?>
<div class="chrnx-release-card__main">
<span class="chrnx-release-card__art">
<?php
$chrnx_cover_markup = $chrnx_cover > 0 ? wp_get_attachment_image( $chrnx_cover, 'chrnx-card', false, array( 'class' => 'chrnx-release-card__cover' ) ) : '';
@@ -38,14 +38,40 @@ if ( is_wp_error( $chrnx_terms ) || empty( $chrnx_terms ) ) {
<?php echo chrnx_get_topic_portrait_markup( 'placeholder-release', '', 'chrnx-release-card__fallback' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Helper returns escaped, allowlisted markup. ?>
<?php endif; ?>
</span>
<div class="chrnx-release-card__content">
<?php if ( ! is_wp_error( $chrnx_link ) ) : ?>
<a class="chrnx-release-card__title-link" href="<?php echo esc_url( $chrnx_link ); ?>">
<?php endif; ?>
<h<?php echo esc_attr( $chrnx_heading ); ?> class="chrnx-release-card__title"><?php echo esc_html( $chrnx_term->name ); ?></h<?php echo esc_attr( $chrnx_heading ); ?>>
<?php
if ( ! is_wp_error( $chrnx_link ) ) :
?>
</a><?php endif; ?>
<?php if ( '' !== $chrnx_status ) : ?>
<p class="chrnx-release-card__status"><?php echo esc_html( $chrnx_status ); ?></p>
<?php endif; ?>
<?php if ( ! is_wp_error( $chrnx_link ) ) : ?>
</a>
<?php endif; ?>
<?php echo chrnx_get_platform_links_markup( $chrnx_links, 'chrnx-platform-links' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
<details class="chrnx-release-card__description">
<summary><?php echo esc_html__( 'Sobre el disco', 'chrnx' ); ?></summary>
<?php if ( '' !== trim( $chrnx_term->description ) ) : ?>
<p><?php echo esc_html( $chrnx_term->description ); ?></p>
<?php else : ?>
<p><?php echo esc_html__( 'Descripción pendiente.', 'chrnx' ); ?></p>
<?php endif; ?>
</details>
<?php $chrnx_preview_tracks = chrnx_get_release_track_ids( $chrnx_term->slug, 3 ); ?>
<?php if ( ! empty( $chrnx_preview_tracks ) ) : ?>
<ol class="chrnx-release-card__tracks">
<?php foreach ( $chrnx_preview_tracks as $chrnx_track_index => $chrnx_track_id ) : ?>
<li><span><?php echo esc_html( str_pad( (string) ( $chrnx_track_index + 1 ), 2, '0', STR_PAD_LEFT ) ); ?></span><a href="<?php echo esc_url( get_permalink( $chrnx_track_id ) ); ?>"><?php echo esc_html( get_the_title( $chrnx_track_id ) ); ?></a></li>
<?php endforeach; ?>
</ol>
<?php endif; ?>
<?php if ( ! is_wp_error( $chrnx_link ) ) : ?>
<a class="chrnx-release-card__lyrics" href="<?php echo esc_url( $chrnx_link ); ?>"><?php echo esc_html__( 'Ver letras', 'chrnx' ); ?> <span aria-hidden="true">↗</span></a>
<?php endif; ?>
</div>
</div>
</article>
<?php endforeach; ?>
</div>
+5
View File
@@ -14,6 +14,7 @@ $chrnx_release = chrnx_get_track_release( $chrnx_post_id );
$chrnx_player = chrnx_get_track_player_markup( $chrnx_post_id );
$chrnx_links = chrnx_get_track_links( $chrnx_post_id );
$chrnx_number = absint( get_post_meta( $chrnx_post_id, 'chrnx_track_number', true ) );
$chrnx_description = (string) get_post_meta( $chrnx_post_id, 'chrnx_track_description', true );
// Nothing invented: without any track data this block stays silent.
if ( null === $chrnx_release && '' === $chrnx_player && empty( $chrnx_links ) ) {
@@ -42,5 +43,9 @@ $chrnx_release_link = null !== $chrnx_release ? get_term_link( $chrnx_release )
</p>
<?php endif; ?>
<?php echo chrnx_get_platform_links_markup( $chrnx_links, 'chrnx-platform-links' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
<?php if ( '' !== trim( $chrnx_description ) ) : ?>
<p class="chrnx-track-meta__description"><?php echo esc_html( $chrnx_description ); ?></p>
<?php endif; ?>
<button class="chrnx-track-meta__share" type="button" data-chrnx-share data-share-title="<?php echo esc_attr( get_the_title( $chrnx_post_id ) ); ?>" data-share-url="<?php echo esc_url( get_permalink( $chrnx_post_id ) ); ?>"><?php echo esc_html__( 'Compartir', 'chrnx' ); ?></button>
</div>
</section>
@@ -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.
@@ -0,0 +1,69 @@
# 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-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 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/` 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: `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-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.
### 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`, 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.
@@ -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.
@@ -0,0 +1,29 @@
# Music release cards design
## Goal
Preserve the existing Music landing composition while making its release area wider, more useful, and specific to The No Names.
## Approved design
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 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 `<details><summary>` 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/<slug>/`. 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 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
Keep body and lyric text readable. Use distressed/grunge treatment on release labels, headings, borders, and background texture rather than applying an extreme decorative font to long lyrics. Any font addition must be local or explicitly approved; no runtime third-party font dependency is required for this increment.
## Interaction and accessibility
Descriptions use native `<details><summary>` 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 `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.
+9
View File
@@ -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' );
+13
View File
@@ -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 ) {
+1 -1
View File
@@ -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.
'<li><a class="%1$s__link" href="%2$s" target="_blank" rel="noopener noreferrer external"><svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">%3$s</svg><span class="chrnx-screen-reader-text">%4$s</span></a></li>',
'<li><a class="%1$s__link" href="%2$s" target="_blank" rel="noopener noreferrer external"><svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">%3$s</svg><span class="%1$s__label">%4$s</span></a></li>',
esc_attr( $class_name ),
esc_url( $url ),
$platforms[ $platform ]['icon'], // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+1
View File
@@ -52,6 +52,7 @@ function chrnx_get_editorial_taxonomies() {
'el-hermoso-caos' => __( 'El Hermoso Caos que habita en mi cabeza', 'chrnx' ),
'ando-bien-arriba' => __( 'Ando Bien Arriba', 'chrnx' ),
'aqui-se-rompio-una-jerga' => __( 'Aquí se Rompió una Jerga', 'chrnx' ),
'side-b' => __( 'Side B', 'chrnx' ),
),
),
'chrnx_project' => array(
+1
View File
@@ -26,6 +26,7 @@ function chrnx_get_track_meta_definitions() {
$definitions = array(
'chrnx_track_number' => 'absint',
'chrnx_track_audio' => 'absint',
'chrnx_track_description' => 'sanitize_textarea_field',
);
foreach ( array_keys( chrnx_get_release_platforms() ) as $platform ) {
+1 -1
View File
@@ -24,7 +24,7 @@
<!-- wp:html --><div class="chrnx-character-stage__art"><?php echo chrnx_get_topic_portrait_markup( 'music', __( 'The No Names musician portrait', 'chrnx' ), 'chrnx-music-landing__portrait' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Helper returns escaped, allowlisted markup. ?></div><!-- /wp:html -->
</div>
<!-- /wp:group -->
<!-- wp:paragraph {"className":"chrnx-music-note"} --><p class="chrnx-music-note"><?php echo esc_html__( 'El proceso usa generative AI anclada en la voz humana real de Chrnx. Es una herramienta de producción, no una mitología ficticia ni una promesa sobre lo que la tecnología puede hacer.', 'chrnx' ); ?></p><!-- /wp:paragraph -->
<!-- wp:paragraph {"className":"chrnx-music-note"} --><p class="chrnx-music-note"><?php echo esc_html__( '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.', 'chrnx' ); ?></p><!-- /wp:paragraph -->
<!-- wp:heading {"level":3} --><h3 class="wp-block-heading"><?php echo esc_html__( 'Releases in progress', 'chrnx' ); ?></h3><!-- /wp:heading -->
<!-- wp:chrnx/release-list /-->
</section>
+274
View File
@@ -0,0 +1,274 @@
<?php
/** Local-only The No Names importer. Never run against a public host. */
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals, WordPress.WP.GlobalVariablesOverride.Prohibited, WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents, WordPress.WP.AlternativeFunctions.file_system_operations_file_put_contents
$host = wp_parse_url( home_url( '/' ), PHP_URL_HOST );
if ( ! in_array( $host, array( 'localhost', '127.0.0.1' ), true ) ) {
WP_CLI::error( 'Refusing to seed a non-local WordPress site.' );
}
$source_root = '/var/www/html/wp-content/suno-source/discs';
$releases = array(
'el-hermoso-caos' => array(
'name' => 'El Hermoso Caos que habita en mi cabeza',
'source' => 'el-hermoso-caos-que-habita-en-mi-cerebro',
'cover' => 'cover-3000.jpg',
'track_count' => 13,
),
'ando-bien-arriba' => array(
'name' => 'Ando Bien Arriba',
'source' => 'ando-bien-arriba',
'cover' => 'cover-art-v1-1200.jpg',
'track_count' => 6,
),
'aqui-se-rompio-una-jerga' => array(
'name' => 'Aquí se Rompió una Jerga',
'source' => 'aqui-se-rompio-una-jerga',
'cover' => 'cover-art-v1-1200.jpg',
'track_count' => 6,
),
'side-b' => array(
'name' => 'Side B',
'source' => 'el-hermoso-caos-que-habita-en-mi-cerebro/side-b',
'cover' => 'cover-art-v1-1200.jpg',
'track_count' => 19,
),
);
function chrnx_local_frontmatter( string $path ): array {
$text = (string) file_get_contents( $path );
if ( ! preg_match( '/\A---\s*\R(.*?)\R---/s', $text, $match ) ) {
return array();
}
$data = array();
foreach ( preg_split( '/\R/', $match[1] ) as $line ) {
if ( preg_match( '/^([a-z_]+):\s*(.*)$/', $line, $field ) ) {
$data[ $field[1] ] = trim( trim( $field[2] ), "\"'" );
}
}
return $data;
}
function chrnx_local_concept( string $path ): string {
$text = (string) file_get_contents( $path );
if ( preg_match( '/^## Concept\s*\R(.*?)(?=^## |\z)/ms', $text, $match ) ) {
$paragraphs = preg_split( '/\R\s*\R/', trim( $match[1] ) );
return trim( preg_replace( '/[`*_]/', '', (string) reset( $paragraphs ) ) );
}
return '';
}
function chrnx_local_lyrics( string $path ): string {
$text = (string) file_get_contents( $path );
if ( preg_match( '/^## Lyrics\s*\R(.*?)(?=^## |\z)/ms', $text, $match ) ) {
return trim( $match[1] );
}
return '';
}
function chrnx_local_cover( string $path, string $key ): int {
$existing = get_posts(
array(
'post_type' => 'attachment',
'post_status' => 'inherit',
'posts_per_page' => 1,
'fields' => 'ids',
'meta_key' => '_chrnx_fixture_key',
'meta_value' => $key,
)
);
if ( ! empty( $existing ) ) {
return absint( $existing[0] );
}
$uploads = wp_upload_dir();
$name = sanitize_file_name( basename( $path ) );
$target = trailingslashit( $uploads['path'] ) . $name;
wp_mkdir_p( dirname( $target ) );
file_put_contents( $target, file_get_contents( $path ) );
$type = wp_check_filetype( $name );
$id = wp_insert_attachment(
array(
'post_mime_type' => $type['type'] ?? 'image/jpeg',
'post_title' => sanitize_text_field( pathinfo( $name, PATHINFO_FILENAME ) ),
'post_status' => 'inherit',
),
$target
);
update_post_meta( $id, '_chrnx_fixture_key', $key );
return absint( $id );
}
function chrnx_local_attachment( string $path, string $key ): int {
$existing = get_posts(
array(
'post_type' => 'attachment',
'post_status' => 'inherit',
'posts_per_page' => 1,
'fields' => 'ids',
'meta_key' => '_chrnx_fixture_key',
'meta_value' => $key,
)
);
if ( ! empty( $existing ) ) {
return absint( $existing[0] );
}
$uploads = wp_upload_dir();
$name = sanitize_file_name( basename( $path ) );
$target = trailingslashit( $uploads['path'] ) . $key . '-' . $name;
wp_mkdir_p( dirname( $target ) );
file_put_contents( $target, file_get_contents( $path ) );
$type = wp_check_filetype( $name );
$id = wp_insert_attachment(
array(
'post_mime_type' => $type['type'] ?? 'audio/mp4',
'post_title' => sanitize_text_field( pathinfo( $name, PATHINFO_FILENAME ) ),
'post_status' => 'inherit',
),
$target
);
update_post_meta( $id, '_chrnx_fixture_key', $key );
return absint( $id );
}
foreach ( get_posts(
array(
'post_type' => 'post',
'post_status' => 'any',
'posts_per_page' => -1,
'fields' => 'ids',
'meta_key' => '_chrnx_fixture_key',
'meta_value' => 'the-no-names-',
'meta_compare' => 'LIKE',
)
) as $old_id ) {
wp_delete_post( $old_id, true );
}
$old_release_posts = get_posts(
array(
'post_type' => 'post',
'post_status' => 'any',
'posts_per_page' => -1,
'fields' => 'ids',
'tax_query' => array(
array(
'taxonomy' => 'chrnx_release',
'field' => 'slug',
'terms' => array_keys( $releases ),
),
),
)
);
foreach ( $old_release_posts as $old_id ) {
wp_delete_post( $old_id, true );
}
foreach ( $releases as $slug => $release ) {
$source_dir = trailingslashit( $source_root ) . $release['source'];
$disc_path = trailingslashit( $source_dir ) . 'disc.md';
$term = get_term_by( 'slug', $slug, 'chrnx_release' );
if ( ! $term instanceof WP_Term ) {
$insert = wp_insert_term( $release['name'], 'chrnx_release', array( 'slug' => $slug ) );
$term = get_term( $insert['term_id'] );
}
$description = is_readable( $disc_path ) ? chrnx_local_concept( $disc_path ) : 'Material experimental y alterno de The No Names: pruebas, desvíos y canciones que todavía están buscando dónde caer.';
$cover_id = 0;
wp_update_term(
$term->term_id,
'chrnx_release',
array(
'name' => $release['name'],
'description' => $description,
)
);
update_term_meta( $term->term_id, 'chrnx_release_status', 'in production' );
foreach ( array(
'suno' => 'https://suno.com/playlist/local-the-no-names',
'spotify' => 'https://open.spotify.com/album/local-the-no-names',
'apple' => 'https://music.apple.com/us/album/local-the-no-names',
) as $platform => $url ) {
update_term_meta( $term->term_id, 'chrnx_release_url_' . $platform, $url );
}
$cover_path = trailingslashit( $source_dir ) . $release['cover'];
if ( is_readable( $cover_path ) ) {
$cover_id = chrnx_local_cover( $cover_path, 'the-no-names-cover-' . $slug );
update_term_meta( $term->term_id, 'chrnx_release_cover', $cover_id );
}
$track_dirs = glob( trailingslashit( $source_dir ) . '[0-9][0-9]-*', GLOB_ONLYDIR );
if ( 'side-b' === $slug ) {
$track_dirs = glob( trailingslashit( $source_dir ) . '[0-9][0-9]-*', GLOB_ONLYDIR );
}
foreach ( $track_dirs as $track_dir ) {
$song_path = trailingslashit( $track_dir ) . 'song.md';
if ( ! is_readable( $song_path ) ) {
$alternate_song = trailingslashit( $track_dir ) . 'song-hibrido.md';
if ( is_readable( $alternate_song ) ) {
$song_path = $alternate_song;
}
}
if ( ! is_readable( $song_path ) ) {
continue;
}
$meta = chrnx_local_frontmatter( $song_path );
$num = 0;
if ( preg_match( '/\A(\d+)-/', basename( $track_dir ), $number_match ) ) {
$num = absint( $number_match[1] );
}
if ( 0 === $num ) {
continue;
}
$key = 'the-no-names-' . $slug . '-' . str_pad( (string) $num, 2, '0', STR_PAD_LEFT );
$posts = get_posts(
array(
'post_type' => 'post',
'post_status' => 'any',
'posts_per_page' => 1,
'fields' => 'ids',
'meta_key' => '_chrnx_fixture_key',
'meta_value' => $key,
)
);
$post = array(
'post_title' => sanitize_text_field( $meta['name'] ?? basename( $track_dir ) ),
'post_name' => sanitize_title( $slug . '-' . $num . '-' . ( $meta['name'] ?? basename( $track_dir ) ) ),
'post_status' => 'publish',
'post_type' => 'post',
'post_content' => wp_kses_post( chrnx_local_lyrics( $song_path ) ),
);
if ( ! empty( $posts ) ) {
$post['ID'] = absint( $posts[0] );
}
$post_id = wp_insert_post( $post, true );
update_post_meta( $post_id, '_chrnx_fixture_key', $key );
update_post_meta( $post_id, 'chrnx_track_number', $num );
wp_set_object_terms( $post_id, $slug, 'chrnx_release', false );
wp_set_object_terms( $post_id, 'music', 'chrnx_topic', false );
wp_set_object_terms( $post_id, 'es', 'chrnx_language', false );
$description = chrnx_local_concept( $song_path );
if ( '' !== $description ) {
update_post_meta( $post_id, 'chrnx_track_description', $description );
}
foreach ( array(
'suno' => 'https://suno.com/song/local-' . $key,
'spotify' => 'https://open.spotify.com/track/local-' . $key,
'apple' => 'https://music.apple.com/us/song/local-' . $key,
) as $platform => $url ) {
update_post_meta( $post_id, 'chrnx_track_url_' . $platform, $url );
}
$audio_path = trailingslashit( $track_dir ) . 'song.mp3';
if ( ! is_readable( $audio_path ) ) {
$audio_path = trailingslashit( $track_dir ) . 'song.m4a';
}
if ( is_readable( $audio_path ) ) {
$audio_id = chrnx_local_attachment( $audio_path, $key . '-audio' );
update_post_meta( $post_id, 'chrnx_track_audio', $audio_id );
}
if ( ! empty( $cover_id ) ) {
set_post_thumbnail( $post_id, $cover_id );
}
}
}
flush_rewrite_rules( false );
WP_CLI::success( 'The No Names local fixture loaded: 4 releases with local test platform URLs.' );
// phpcs:enable
+20
View File
@@ -0,0 +1,20 @@
#!/bin/sh
set -eu
chrnx_script_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
chrnx_project_dir=$(dirname -- "$chrnx_script_dir")
chrnx_docker_cli_dir=${CHRNX_DOCKER_CLI_DIR:-/opt/homebrew/opt/docker/bin}
cd -- "$chrnx_project_dir"
if [ ! -x "$chrnx_docker_cli_dir/docker" ]; then
echo "Docker CLI not found at the approved Colima path: $chrnx_docker_cli_dir/docker" >&2
exit 1
fi
chrnx_host=$(PATH="$chrnx_docker_cli_dir:$PATH" npm exec -- wp-env run cli wp eval 'echo wp_parse_url( home_url( "/" ), PHP_URL_HOST );')
case "$chrnx_host" in
localhost|127.0.0.1) ;;
*) echo "Refusing to seed a non-local WordPress site." >&2; exit 1 ;;
esac
PATH="$chrnx_docker_cli_dir:$PATH" npm exec -- wp-env run cli wp eval-file wp-content/themes/chrnx/scripts/seed-the-no-names-local.php
+1 -1
View File
@@ -12,9 +12,9 @@
</div>
<!-- /wp:group -->
<!-- wp:post-featured-image {"aspectRatio":"3/2"} /-->
<!-- wp:post-content {"layout":{"type":"constrained"}} /-->
<!-- wp:chrnx/podcast-meta /-->
<!-- wp:chrnx/track-meta /-->
<!-- wp:post-content {"layout":{"type":"constrained"}} /-->
<!-- wp:chrnx/related-posts /-->
<!-- wp:chrnx/subscribe-cta {"className":"is-style-quiet"} /-->
</main>
+1 -1
View File
@@ -9,7 +9,7 @@ const landings = [
atmosphere: '.chrnx-character-stage__collage',
art: 'img[src*="the-no-names-musician-cutout-768.webp"]',
internalHeadings: ':scope > h3, .chrnx-release-card h4',
internalHeadingCount: 4,
internalHeadingCount: 5,
next: ':scope > p',
},
{
+4 -3
View File
@@ -176,9 +176,10 @@ class EditorialQueriesTest extends WP_UnitTestCase {
);
$this->assertSame( 3, $args['paged'] );
$this->assertSame( 'hello world', $args['s'] );
$this->assertCount( 2, $args['tax_query'] );
$this->assertCount( 4, $args['tax_query'] );
$this->assertSame( 'code', $args['tax_query'][0]['terms'] );
$this->assertSame( 'es', $args['tax_query'][1]['terms'] );
$this->assertSame( 'NOT EXISTS', $args['tax_query'][2]['operator'] );
}
/** Real topic archives override conflicting request filters and never mix terms. */
@@ -248,7 +249,7 @@ class EditorialQueriesTest extends WP_UnitTestCase {
$this->go_to( get_term_link( $tag ) );
$unsupported = chrnx_get_journal_request_context( array() );
$this->assertArrayNotHasKey( 'post_tag', $unsupported );
$this->assertArrayNotHasKey( 'tax_query', chrnx_get_journal_query_args( $unsupported ) );
$this->assertSame( 'NOT EXISTS', chrnx_get_journal_query_args( $unsupported )['tax_query'][0]['operator'] );
}
/** Show archives constrain Journal results to actual show membership. */
@@ -278,7 +279,7 @@ class EditorialQueriesTest extends WP_UnitTestCase {
)
);
$this->assertArrayNotHasKey( 'tax_query', $args );
$this->assertSame( 'NOT EXISTS', $args['tax_query'][0]['operator'] );
$this->assertSame( 1, $args['paged'] );
$search = $args['s'] ?? '';
$this->assertLessThanOrEqual( 100, mb_strlen( $search, 'UTF-8' ) );
+5 -3
View File
@@ -103,8 +103,9 @@ class PatternsTest extends WP_UnitTestCase {
'Grunge mexicano para cerebros que no se callan.',
'grunge en español mexicano desde Sinaloa',
'estudio crudo, cero live',
'generative AI',
'Chrnx',
'IA generativa',
'AI SLOP',
'Kurt Cobain',
) as $copy ) {
$this->assertStringContainsString( $copy, wp_strip_all_tags( $content ), $copy );
}
@@ -115,6 +116,7 @@ class PatternsTest extends WP_UnitTestCase {
'El Hermoso Caos que habita en mi cabeza',
'Ando Bien Arriba',
'Aquí se Rompió una Jerga',
'Side B',
) as $release ) {
$this->assertContains( $release, $releases, $release );
}
@@ -354,7 +356,7 @@ class PatternsTest extends WP_UnitTestCase {
$this->assertSame( 0, $music_xpath->query( './*[2]//img[contains(@class,"chrnx-character-stage__collage")]', $music_stage )->length );
$this->assertSame( 1, $music_xpath->query( './*[3]//img[@alt="The No Names musician portrait"]', $music_stage )->length );
$this->assertSame( 3, $music_xpath->query( './*[2]/*[self::h2 or self::p]', $music_stage )->length );
$process = $music_xpath->query( './p[contains(.,"El proceso usa generative AI")]', $music_root )->item( 0 );
$process = $music_xpath->query( './p[contains(. ,"Miren, miren: esto es")]', $music_root )->item( 0 );
$releases = $music_xpath->query( './h3[normalize-space()="Releases in progress"]', $music_root )->item( 0 );
$this->assertInstanceOf( DOMElement::class, $process );
$this->assertInstanceOf( DOMElement::class, $releases );
+2 -2
View File
@@ -853,8 +853,8 @@ test( 'Music and Podcast patterns own one ordered three-layer landing compositio
music.indexOf( 'chrnx-character-stage__content' ),
);
assert.ok(
music.indexOf( 'El proceso usa generative AI' ) > music.indexOf( '<!-- /wp:group -->', music.indexOf( 'chrnx-character-stage__art' ) ) &&
music.indexOf( 'El proceso usa generative AI' ) < music.indexOf( 'Releases in progress' ),
music.indexOf( 'Miren, miren: esto es' ) > music.indexOf( '<!-- /wp:group -->', music.indexOf( 'chrnx-character-stage__art' ) ) &&
music.indexOf( 'Miren, miren: esto es' ) < music.indexOf( 'Releases in progress' ),
);
assertLayerOrder( podcast, 'Podcast layer order' );