mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-13 15:32:53 +09:00
GET /api/v1/search?q= (JWT, 2-char minimum) fans a term out across the core entity types — services, servers, domains, databases, WordPress sites, cron jobs (admin-only), installed extensions, and vaults (names only, never secret values) — reusing each domain's existing access helpers so a member only sees what their grants allow. Per-type cap of 5; each entity block is isolated so one failing type degrades gracefully instead of 500-ing the search. Wires the frontend api.search() async provider (200ms debounce) into the palette's entity group, replacing the fetch-everything-on-open prefetch. Adds tests/test_search.py covering shape, min-length, cap, member-vs-admin filtering, cron admin-only, and the vaults names-only rule. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>