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
@@ -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.
|
||||
@@ -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 `<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 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 `<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 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.
|
||||
Reference in new issue
Block a user