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.
This commit is contained in:
23 files changed
+770
-50
No files matched your search
@@ -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',
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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' ) );
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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' );
|
||||
|
||||
Reference in new issue
Block a user