Skip to content

feat(cron): edit command payloads in UI#1287

Merged
clark-cant merged 1 commit into
nextlevelbuilder:devfrom
zezaeoh:feat/cron-command-edit
Jun 27, 2026
Merged

feat(cron): edit command payloads in UI#1287
clark-cant merged 1 commit into
nextlevelbuilder:devfrom
zezaeoh:feat/cron-command-edit

Conversation

@zezaeoh

@zezaeoh zezaeoh commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #1279, #1285, and #1286. Command cron jobs can now be run/configured and are visible in the cron dashboard; this PR adds editing support for existing command payloads from the job detail page.

The edit surface is intentionally JSON-based for now: it exposes the existing CronCommandSpec shape, validates that argv is a non-empty array before saving, and only sends a command patch when the payload JSON changed.

Type

  • Feature
  • Bug fix
  • Hotfix (targeting main)
  • Refactor
  • Docs
  • CI/CD

Target Branch

Targets dev.

Checklist

  • go build ./... passes
  • go build -tags sqliteonly ./... passes (if Go changes)
  • go vet ./... passes
  • Tests pass: go test -race ./...
  • Web UI builds: cd ui/web && pnpm build (if UI changes)
  • No hardcoded secrets or credentials
  • SQL queries use parameterized $1, $2 (no string concat)
  • New user-facing strings added to all 3 locales (en/vi/zh)
  • Migration version bumped in internal/upgrade/version.go (if new migration)

Test Plan

  • corepack prepare pnpm@10.30.1 --activate && pnpm --dir ui/web build
  • env -u GOCLAW_CONFIG -u GOCLAW_DATA_DIR -u GOCLAW_HOST -u GOCLAW_PORT -u GOCLAW_PUBLIC_URL -u GOCLAW_ALLOWED_ORIGINS PATH=/usr/local/go/bin:$PATH go build ./...
  • env -u GOCLAW_CONFIG -u GOCLAW_DATA_DIR -u GOCLAW_HOST -u GOCLAW_PORT -u GOCLAW_PUBLIC_URL -u GOCLAW_ALLOWED_ORIGINS PATH=/usr/local/go/bin:$PATH go build -tags sqliteonly ./...

@clark-cant clark-cant left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — clean follow-up to #1286. JSON-based edit surface with argv validation is solid. i18n across 4 locales ✓. CI all green ✓.

@clark-cant clark-cant merged commit 7a9210b into nextlevelbuilder:dev Jun 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants