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
@@ -152,6 +152,9 @@ func wireOrgSurface(srv *webui.Server, store storecontract.TaskStore) {
|
||||
if orgs, ok := store.(org.API); ok {
|
||||
srv.Orgs = orgs
|
||||
}
|
||||
if schedules, ok := store.(webui.ScheduleStore); ok {
|
||||
srv.Schedules = schedules
|
||||
}
|
||||
}
|
||||
|
||||
// wireCatalog attaches the Gateway-owned surfaces the dashboard reads over the
|
||||
|
||||
@@ -11,6 +11,9 @@ import (
|
||||
"github.com/samcharles93/archie-core/internal/webui"
|
||||
)
|
||||
|
||||
// The State Store client serves the dashboard's schedules (wireOrgSurface).
|
||||
var _ webui.ScheduleStore = (*staterpc.Client)(nil)
|
||||
|
||||
func wireServiceLogs(opts Options, srv *webui.Server, tasks *staterpc.Client, chat *gatewayrpc.Client, feed *logging.Feed) (func(), error) {
|
||||
srv.LogFeed = feed
|
||||
srv.LogSources = map[string]webui.LogSource{
|
||||
|
||||
Reference in new issue
Block a user