feat(ui): schedules table, runs page and Schedule trigger
Schedules list as a table with enable, run now, edit, duplicate, delete and view runs; built-ins only enable, retime and run. The runs page links each run's tasks through its capture's dispatches. The Start node gains a Schedule trigger that picks or creates a schedule and binds the schedule source to the workflow. Times show in a per-browser display zone set under Appearance; the cron time zone and run retention are edited on the Schedules page.
This commit is contained in:
1 parent
12dd3084e5
commit
d4e563a19c
52 files changed
+1425
-131
No files matched your search
@@ -206,6 +206,10 @@ type Server struct {
|
||||
// routes 503 and lists bindings without their last outcome.
|
||||
Dispatches storecontract.DispatchLedger
|
||||
|
||||
// Schedules reads and edits the instance's schedules and their runs. Nil
|
||||
// answers the /api/schedules routes 503.
|
||||
Schedules ScheduleStore
|
||||
|
||||
// Sources persists capture sources and their signing setting.
|
||||
// Optional: nil makes every
|
||||
// /api/sources route answer 503 and marks no binding unsigned.
|
||||
@@ -281,6 +285,11 @@ func (s *Server) registerCoreRoutes(mux *http.ServeMux) {
|
||||
mux.HandleFunc("GET /api/skills", instanceOnly(s.handleSkills))
|
||||
mux.HandleFunc("GET /api/curators", instanceOnly(s.handleCurators))
|
||||
mux.HandleFunc("GET /api/captures", s.handleCaptures)
|
||||
mux.HandleFunc("GET /api/schedules", instanceOnly(s.handleSchedules))
|
||||
mux.HandleFunc("PUT /api/schedules/{id}", instanceOnly(s.handleSchedulePut))
|
||||
mux.HandleFunc("DELETE /api/schedules/{id}", instanceOnly(s.handleScheduleDelete))
|
||||
mux.HandleFunc("GET /api/schedules/{id}/runs", instanceOnly(s.handleScheduleRuns))
|
||||
mux.HandleFunc("POST /api/schedules/{id}/runs", instanceOnly(s.handleScheduleRunNow))
|
||||
mux.HandleFunc("GET /api/channels", instanceOnly(s.handleChannels))
|
||||
mux.HandleFunc("POST /api/channels/{id}/reload", instanceOnly(s.handleChannelReload))
|
||||
mux.HandleFunc("GET /api/version", s.handleVersion)
|
||||
|
||||
Reference in new issue
Block a user