Drupal Default Admin SVG review

Independent review material for Drupal core MR !16166 (default_admin SVG consolidation).

This is a draft review lab, not an official Drupal repository, not an upstream fork, and not RTBC. No claim of full SVG or WCAG conformance is made.

What is here

Path Contents
HANDOFF.md / .html Verified/unverified split, patch order and release status
SVG-IMPROVEMENT-PLAN.md Prioritised plan for missing assets, dark mode, forced colours, WCAG 2.2 AA, testing and optimisation
reconciliation.md / .json Checkmark-family dispositions and evidence
CODE-REVIEW.md Review of the SVG Review Lab tooling
evidence/ Historical findings baseline (schema 4)
lab/ The static SVG Review Lab (acquire.py, usage.py, review.py, template.html)
proposed/interdiff-*.patch Small proposed fixes/optimisations against the MR head
proposed/tests/ Regression checks for the fixes
proposed/reports/ Per-fix evidence, screenshots, validation, currentColor dark-mode audit, SVG property matrix, high-use optimisation and the self-contained asset gallery
review.html Interactive SVG inventory generated from the pinned snapshots
after/ / proposed/ Test fixtures only — not full Drupal themes; see below

Reading “after”, “proposed” and “removed”

See how “used” was determined: the current label is a source/alias scan, not a rendered-page audit.

The 14 assets currently recommended for removal are appearance, blocks, bookmarks, content, files, media, nav-toggle-left, nav-toggle-top, people, reports, structure, user, pretint/chevron-down-default and pretint/remove-default. search and chevron-left are also unused but remain pending a decision.

Quick start

Static review

python3 -m http.server 8770 --bind 127.0.0.1
# open http://127.0.0.1:8770/proposed/reports/patch-gallery.html

patch-gallery.html embeds the SVGs, so the asset gallery works without the Drupal snapshots. The “Open real forced-colours tabs” button needs the local Playwright helper, which is not included in this simplified repo; use Chromium DevTools → Rendering → Emulate forced-colors instead.

review.html is the full generated inventory and also works offline.

Reproduce the full lab

cd lab
python3 acquire.py        # fetches the pinned commits and extracts default_admin
python3 review.py         # writes usage.json, inventory.json, review.html

This requires Git and network access to git.drupalcode.org. Do not commit the acquired before/, after/, drupal.git/, inventory.json or usage.json.

Apply the proposed patches

Apply in this order to a checkout at the MR head:

git apply -p1 proposed/interdiff-checkmark.patch
git apply -p1 proposed/interdiff-forced-colors-status-icons.patch
git apply -p1 proposed/interdiff-svg-optimization-required.patch
git apply -p1 proposed/interdiff-svg-cleanup.patch
git apply -p1 proposed/interdiff-svg-optimization-status-family.patch
git apply -p1 proposed/interdiff-loader-currentcolor.patch
git apply -p1 proposed/interdiff-svg-metadata-normalization.patch
git apply -p1 proposed/interdiff-svg-high-use-optimization.patch
git apply -p1 proposed/interdiff-svg-over-300-optimization.patch

Each patch is small and independently reviewable. Nothing here has been pushed upstream or posted to the issue/MR.

Tests

python3 proposed/tests/checkmark_regression.py
python3 proposed/tests/forced_colors_status_icons.py
python3 proposed/tests/svg_cleanup_test.py
python3 proposed/tests/svg_optimization_pilot.py
python3 proposed/tests/svg_optimization_status_family.py
python3 proposed/tests/loader_dark_test.py
python3 proposed/tests/svg_properties_test.py
python3 proposed/tests/compiled_icons_test.py

The repository includes only the changed-file fixture subset needed by these checks under after/ and proposed/; it is not a full Drupal theme. The full-tree validation report in proposed/reports/validation.json was generated from the complete proposed theme.

Headline findings

Apply the over-300 optimisation patch after the metadata and high-use patches so the compiled icons.css data URIs stay in sync.

Limits

Licence and provenance

Drupal is licensed under GPL-2.0-or-later. The patches, Drupal-derived SVGs, screenshots and evidence in this repository are derived from Drupal core and remain under that licence. See LICENSE and NOTICE.

This repository is not affiliated with or endorsed by the Drupal Association or the Drupal project.

Not done