New UI (playwright) job: PHP and MariaDB inside the Playwright image, a
seeded instance (tests/ui/stack.sh, synthetic data only) and 21 tests:
every main page loads with no page errors, console errors or failed
requests, description and comment markdown render safely (#114), and
pages fit a phone screen. Deploys now wait for it.
New UI screenshots (before/after) job: for PRs that change assets/ or
views/, runs the base branch and the PR side by side with the same data
and uploads one side-by-side PNG per page and view (dark, light, phone).
Modelled on Pulse's ui and ui-screenshots jobs.
Fixes found while building it:
- migrate.php split statements on semicolons inside -- comments, so 001
and 003 failed on a fresh database.
- API endpoints applied rate limiting before loading config, so
RATE_LIMIT_DEFAULT/RATE_LIMIT_API from .env and TRUSTED_PROXIES were
ignored there: every user behind the proxy shared one per-IP bucket.
The limiter now loads config itself; the per-IP limits are configurable
(RATE_LIMIT_IP, RATE_LIMIT_IP_API) with unchanged defaults.
- The avatar error fallback was registered in the footer, after the
header avatar, so a fast 404 left a broken image instead of initials.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>