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
@@ -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' ) );
|
||||
|
||||
Reference in new issue
Block a user