mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-05 22:51:51 +09:00
Phase B batch 1 — roadmap #16, #19, #20. #16 Passwordless "Auto Login" into wp-admin (the signature managed-WP feature), no heavy plugin. New WordPressService.create_login_url uses the Docker-aware wp_cli bridge to install the wp-cli-login package (idempotent) and mint a one-time magic URL (wp login create --url-only); login slug resolved via wp eval rather than hardcoding /wp-admin. New POST /sites/<id>/login (admin-gated) resolves or provisions a managed admin tied to the operator's panel email (create_user role=administrator), persists admin_user, writes a 'wordpress.admin_login' AuditLog, and returns the URL. A prominent primary "Auto Login" button in the site topbar opens it; Dashboard remains as fallback. #19 Multisite is now detected for real via `wp core is-multisite` (new is_multisite helper): surfaced in get_wordpress_info, set at create_site, and refreshed+persisted on the single-site detail load (never on the hot list endpoint). #20 Site tags/labels for agency organization. New JSON-in-TEXT tags column on WordPressSite (auto-added on boot by _fix_missing_columns; plus an idempotent 009 Alembic revision for determinism), exposed via to_dict, set via PATCH /sites/<id>/tags (normalized/deduped). Frontend: tag chips on each site card and a client-side tag filter bar on the WordPress list. Verified: backend boots (009 migration applies, tags column live, routes + methods present); frontend builds; changed JS lints with 0 errors. No frontend or backend regressions. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>