Files
terra-view/templates/admin
serversdown 03f3dca243 fix: empty project dropdown in pending-deployment classify modal
The classify modal's _loadProjects() fetched /api/projects/list and called
.json() on it, but that endpoint returns HTML project cards (used by the
projects overview via htmx). Parsing HTML as JSON threw, the catch swallowed
it, and the Project dropdown came up empty — so deployments couldn't be
assigned to a project.

- Add GET /api/projects/list-json returning assignable projects (id, name,
  status) as JSON, excluding deleted/archived/completed to match the default
  /list view.
- Point the modal's _loadProjects() at the JSON endpoint.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-22 16:43:51 +00:00
..