feat: add stage management UI, fix null stages

- Add Stage button with inline form (name, tag pattern, max instances, auto deploy)
- Delete stage button per stage header
- Add createStage/updateStage/deleteStage to API client
- Fix null stages crash on env page
- Fix null slices globally in respondJSON via reflection
This commit is contained in:
2026-03-28 14:40:04 +03:00
parent a47f703910
commit d3dd2be421
3 changed files with 104 additions and 4 deletions
+1 -1
View File
@@ -34,7 +34,7 @@
error = '';
try {
const detail = await api.getProject(projectId);
stages = detail.stages;
stages = detail.stages ?? [];
try {
projectEnv = JSON.parse(detail.project.env || '{}');
} catch {