docs: keep projects out of the journal request-parameter list

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
chrnxandClaude Opus 5 committed 2026-08-15 14:24:44 -05:00
1 parent aea2c6754b
commit 7b69f2e519
1 file changed
+5 -3
@@ -584,7 +584,7 @@ git commit -m "feat: list every project with its status and links"
- Create: `blocks/project-detail/block.json`, `blocks/project-detail/render.php`
- Modify: `inc/blocks.php:235` — add `'project-detail'` to the `$blocks` array, exactly as Task 4 added `'project-list'`
- Modify: `inc/blocks.php:32` — add `'chrnx_project'` to the `is_tax()` list
- Modify: `inc/queries.php` lines 377, 404, 434, 489, 529 — add `'chrnx_project'` to each taxonomy list
- Modify: `inc/queries.php` lines 377, 434, 489, 529 — add `'chrnx_project'` to each taxonomy list. NOT line 404: see below
- Test: `tests/php/ProjectBlocksTest.php` (extend)
**This block renders a HEADER ONLY. It does not list posts.** `blocks/release-detail/render.php` also renders a tracklist, and the first draft of this plan said to clone it line for line. That was wrong twice over: projects have no track numbers, and the posts belonging to a project are ordinary reverse-chronological editorial posts — which is exactly what `chrnx/journal-stream` already renders on an archive.
@@ -596,14 +596,16 @@ The correct model is `chrnx_show`, not `chrnx_release`. Podcast programmes list
- Consumes: `chrnx_get_project_links()`, `chrnx_get_project_link_slots()`, `chrnx_get_topic_portrait_markup()`.
- Produces: block `chrnx/project-detail`, consumed by `templates/taxonomy-chrnx_project.html`.
- [ ] **Step 1: Add `chrnx_project` to every taxonomy list**
- [ ] **Step 1: Add `chrnx_project` to the archive taxonomy lists**
Five in `inc/queries.php` and one in `inc/blocks.php`. Read each one before editing; two of them list only two taxonomies rather than three.
Four in `inc/queries.php` (377, 434, 489, 529) and one in `inc/blocks.php:32`. Read each before editing.
```bash
grep -n "chrnx_topic', 'chrnx_language'" inc/queries.php inc/blocks.php
```
**Do NOT add it to `inc/queries.php:404`.** That list belongs to `chrnx_get_journal_request_context()` and governs which taxonomies are accepted as user-supplied query parameters. `chrnx_show` is deliberately absent from it, and project must follow show: `chrnx_get_journal_archive_filter()` force-injects the queried term into the context at lines 415-418 regardless of that loop, so the archive works without it. Adding it would accept `?chrnx_project=slug` on page one and then lose it, because `blocks/journal-stream/render.php:125-133` builds its pagination filter arguments from topic, language, show and search only. A filter that survives one page and then forgets itself is worse than no filter.
- [ ] **Step 2: Write the failing test**
Append to `tests/php/ProjectBlocksTest.php`: