feat: edit existing env vars, labels, and volume mounts (closes #67) #77
No reviewers
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/upaas#77
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/edit-config-entities"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds inline editing for environment variables, labels, and volume mounts on the app detail page.
Changes
/apps/{id}/env-vars/{varID}/edit,/apps/{id}/labels/{labelID}/edit,/apps/{id}/volumes/{volumeID}/editValidateVolumePathensures absolute, clean paths for volume editsTestValidateVolumePathcovering empty, relative, unclean, and valid pathsTest Results
✅
make test— all packages pass✅
golangci-lint run ./...— 0 issuesCloses #67
Add inline edit functionality for environment variables, labels, and volume mounts on the app detail page. Each entity row now has an Edit button that reveals an inline form using Alpine.js. - POST /apps/{id}/env-vars/{varID}/edit - POST /apps/{id}/labels/{labelID}/edit - POST /apps/{id}/volumes/{volumeID}/edit - Path validation for volume host and container paths - Warning banner about container restart after env var changes - Tests for ValidateVolumePath fixes #67CI Results
make test✅ All 10 packages pass
golangci-lint run ./...✅ 0 issues
New test coverage
TestValidateVolumePath: 8 cases (empty, relative, dotdot, trailing slash, double slash, dot, valid absolute, root)