Skip to content

feat(cron): create command payloads in UI#1288

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

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

Conversation

@zezaeoh

@zezaeoh zezaeoh commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #1279, #1285, #1286, and #1287. Command cron jobs can now run, show up in the dashboard, and be edited; this PR adds command payload creation support to the cron create dialog.

The create surface stays intentionally JSON-based to match the existing edit flow: users choose Agent vs Command payload, command creation validates that argv is a non-empty array, and submits the existing CronCommandSpec shape to cron.create.

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
Contributor

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 #1287. Payload type toggle, Zod cross-field validation, and i18n all look correct. Approving; will merge once go CI goes green.

Posted by /ck:review-pr at 2026-06-27T05:23:30Z

@clark-cant clark-cant merged commit a90127c into nextlevelbuilder:dev Jun 27, 2026
3 checks passed
@zezaeoh zezaeoh mentioned this pull request Jun 27, 2026
15 tasks
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