docs: widen task 8 to the full retired-feature surface

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
chrnxandClaude Opus 5 committed 2026-08-15 14:06:05 -05:00
1 parent 062c3951fa
commit 6fc35bafd8
1 file changed
+22 -10
@@ -793,12 +793,17 @@ git commit -m "feat: give projects a landing of their own"
### Task 8: Retire the featured picker
**Files:**
**Files:** the surface is wider than a block deletion. Every one of these was verified to reference the retired feature.
- Delete: `blocks/selected-work/`
- Modify: `inc/queries.php` (remove `chrnx_get_selected_project_ids()`, around line 274)
- Modify: `inc/blocks.php` if it names the block explicitly
- Modify: `tests/php/EditorialQueriesTest.php`
- Delete: `blocks/selected-work/` (block.json + render.php)
- Delete: `assets/js/editor-project.js` — the editor sidebar panel exists only to toggle `chrnx_project_featured`, and it self-hides unless the post carries the `projects` topic, which Task 9 retires
- Delete: `tests/js/editor-project.test.js` — four references, all covering the deleted panel
- Modify: `inc/queries.php:274` remove `chrnx_get_selected_project_ids()` and its docblock
- Modify: `inc/blocks.php:235` remove `'selected-work'` from the registration list
- Modify: `inc/editor.php:49-50` remove the `chrnx-editor-project` enqueue, and `:66` its `wp_set_script_translations()` call
- Modify: `scripts/seed-test-content.php:143,147` remove `chrnx_project_featured` from the seeded meta keys and the `update_post_meta()` call
- Modify: `assets/css/components.css` remove `.chrnx-selected-work*` rules
- Modify: `tests/php/EditorialQueriesTest.php` drop the coverage of the removed query
**Interfaces:**
@@ -807,12 +812,12 @@ git commit -m "feat: give projects a landing of their own"
- [ ] **Step 1: Confirm nothing else references them**
```bash
grep -rn "selected-work\|selected_project\|chrnx_project_featured" \
grep -rn "selected-work\|selected_project\|chrnx_project_featured\|chrnx-editor-project" \
--include="*.php" --include="*.js" --include="*.json" --include="*.html" --include="*.mjs" \
inc blocks patterns templates assets tests
--include="*.css" inc blocks patterns templates assets tests scripts
```
Every hit must be one of the files listed above. A hit anywhere else means this task is incomplete; handle it before deleting.
Note `scripts` in the search path and `--include="*.css"` in the filters: the first pass of this plan omitted both and missed four real references. Every hit must be one of the files listed above. A hit anywhere else means this task is incomplete; handle it before deleting. Re-run this grep after the deletions and expect zero output.
- [ ] **Step 2: Confirm production stores no copy of the block**
@@ -835,9 +840,16 @@ git rm -r blocks/selected-work
Then remove `chrnx_get_selected_project_ids()` from `inc/queries.php` along with its docblock, and drop the tests covering it from `tests/php/EditorialQueriesTest.php`.
- [ ] **Step 4: Remove the post meta registration**
- [ ] **Step 4: Confirm the post meta registration is gone**
The `chrnx_project_featured` registration is already gone, because Task 2 replaced the whole file. Confirm with the grep from Step 1.
Task 2 replaced `inc/project-meta.php` wholesale, so the `register_post_meta()` call for `chrnx_project_featured` no longer exists. What survives is every CONSUMER of that meta, listed in this task's file map. Confirm with the grep from Step 1 that none remain.
- [ ] **Step 4b: Run the JavaScript suite**
Deleting an editor script and its test file changes the JS surface, which the PHP suite does not cover.
Run: `npm run test:js && npm run lint:js`
Expected: PASS, with one fewer suite than before.
- [ ] **Step 5: Run the full local suite**