New run: start a run from the app, on the working copy
The site promises simulated inputs and mocked sensor values, and nothing in the app was that. A run already is: the values are the caller's, the state is the run's own namespace, and nothing it computes reaches the live flow. What was missing was a screen to do it from, and the draft flag being honoured. `/runs/new` is a flow, a field per declared input, a seed and Run; `/runs` stays the log. A comma-separated list in a number field expands into the grid `fluksio sweep --param` builds and goes to the sweep route, so launching one no longer needs a terminal. Only numbers split: a comma in a string is content, and one in JSON is syntax. `RunCreate.draft` was validated at submit and dropped before the run executed, so "try the working copy" ran the published one. `Run.draft` is a column now, the driver reads the same copy the submit checked, and a retry carries it. `FlowSummary.mode` came with it so the rail can say which flows are batch before one is picked. Also here: a Retry button on a finished run, which the route has always had and the UI never did, and parameter cells truncated to their column with the full value on hover. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013TTfoK82awm8wvxXhHz3XF
This commit is contained in:
@@ -29,6 +29,7 @@ import { Route as LayoutAdminRouteImport } from './routes/_layout/admin'
|
||||
import { Route as LayoutRunsIndexRouteImport } from './routes/_layout/runs/index'
|
||||
import { Route as LayoutFlowsIndexRouteImport } from './routes/_layout/flows/index'
|
||||
import { Route as LayoutDashboardsIndexRouteImport } from './routes/_layout/dashboards/index'
|
||||
import { Route as LayoutRunsNewRouteImport } from './routes/_layout/runs/new'
|
||||
import { Route as LayoutRunsIdRouteImport } from './routes/_layout/runs/$id'
|
||||
import { Route as CanvasFlowsFlowNameRouteImport } from './routes/_canvas/flows/$flowName'
|
||||
import { Route as CanvasDashboardsNameRouteImport } from './routes/_canvas/dashboards/$name'
|
||||
@@ -131,6 +132,11 @@ const LayoutDashboardsIndexRoute = LayoutDashboardsIndexRouteImport.update({
|
||||
path: '/dashboards/',
|
||||
getParentRoute: () => LayoutRoute,
|
||||
} as any)
|
||||
const LayoutRunsNewRoute = LayoutRunsNewRouteImport.update({
|
||||
id: '/runs/new',
|
||||
path: '/runs/new',
|
||||
getParentRoute: () => LayoutRoute,
|
||||
} as any)
|
||||
const LayoutRunsIdRoute = LayoutRunsIdRouteImport.update({
|
||||
id: '/runs/$id',
|
||||
path: '/runs/$id',
|
||||
@@ -166,6 +172,7 @@ export interface FileRoutesByFullPath {
|
||||
'/dashboards/$name': typeof CanvasDashboardsNameRoute
|
||||
'/flows/$flowName': typeof CanvasFlowsFlowNameRoute
|
||||
'/runs/$id': typeof LayoutRunsIdRoute
|
||||
'/runs/new': typeof LayoutRunsNewRoute
|
||||
'/dashboards/': typeof LayoutDashboardsIndexRoute
|
||||
'/flows/': typeof LayoutFlowsIndexRoute
|
||||
'/runs/': typeof LayoutRunsIndexRoute
|
||||
@@ -189,6 +196,7 @@ export interface FileRoutesByTo {
|
||||
'/dashboards/$name': typeof CanvasDashboardsNameRoute
|
||||
'/flows/$flowName': typeof CanvasFlowsFlowNameRoute
|
||||
'/runs/$id': typeof LayoutRunsIdRoute
|
||||
'/runs/new': typeof LayoutRunsNewRoute
|
||||
'/dashboards': typeof LayoutDashboardsIndexRoute
|
||||
'/flows': typeof LayoutFlowsIndexRoute
|
||||
'/runs': typeof LayoutRunsIndexRoute
|
||||
@@ -215,6 +223,7 @@ export interface FileRoutesById {
|
||||
'/_canvas/dashboards/$name': typeof CanvasDashboardsNameRoute
|
||||
'/_canvas/flows/$flowName': typeof CanvasFlowsFlowNameRoute
|
||||
'/_layout/runs/$id': typeof LayoutRunsIdRoute
|
||||
'/_layout/runs/new': typeof LayoutRunsNewRoute
|
||||
'/_layout/dashboards/': typeof LayoutDashboardsIndexRoute
|
||||
'/_layout/flows/': typeof LayoutFlowsIndexRoute
|
||||
'/_layout/runs/': typeof LayoutRunsIndexRoute
|
||||
@@ -240,6 +249,7 @@ export interface FileRouteTypes {
|
||||
| '/dashboards/$name'
|
||||
| '/flows/$flowName'
|
||||
| '/runs/$id'
|
||||
| '/runs/new'
|
||||
| '/dashboards/'
|
||||
| '/flows/'
|
||||
| '/runs/'
|
||||
@@ -263,6 +273,7 @@ export interface FileRouteTypes {
|
||||
| '/dashboards/$name'
|
||||
| '/flows/$flowName'
|
||||
| '/runs/$id'
|
||||
| '/runs/new'
|
||||
| '/dashboards'
|
||||
| '/flows'
|
||||
| '/runs'
|
||||
@@ -288,6 +299,7 @@ export interface FileRouteTypes {
|
||||
| '/_canvas/dashboards/$name'
|
||||
| '/_canvas/flows/$flowName'
|
||||
| '/_layout/runs/$id'
|
||||
| '/_layout/runs/new'
|
||||
| '/_layout/dashboards/'
|
||||
| '/_layout/flows/'
|
||||
| '/_layout/runs/'
|
||||
@@ -448,6 +460,13 @@ declare module '@tanstack/react-router' {
|
||||
preLoaderRoute: typeof LayoutDashboardsIndexRouteImport
|
||||
parentRoute: typeof LayoutRoute
|
||||
}
|
||||
'/_layout/runs/new': {
|
||||
id: '/_layout/runs/new'
|
||||
path: '/runs/new'
|
||||
fullPath: '/runs/new'
|
||||
preLoaderRoute: typeof LayoutRunsNewRouteImport
|
||||
parentRoute: typeof LayoutRoute
|
||||
}
|
||||
'/_layout/runs/$id': {
|
||||
id: '/_layout/runs/$id'
|
||||
path: '/runs/$id'
|
||||
@@ -494,6 +513,7 @@ interface LayoutRouteChildren {
|
||||
LayoutWorkersRoute: typeof LayoutWorkersRoute
|
||||
LayoutIndexRoute: typeof LayoutIndexRoute
|
||||
LayoutRunsIdRoute: typeof LayoutRunsIdRoute
|
||||
LayoutRunsNewRoute: typeof LayoutRunsNewRoute
|
||||
LayoutDashboardsIndexRoute: typeof LayoutDashboardsIndexRoute
|
||||
LayoutFlowsIndexRoute: typeof LayoutFlowsIndexRoute
|
||||
LayoutRunsIndexRoute: typeof LayoutRunsIndexRoute
|
||||
@@ -508,6 +528,7 @@ const LayoutRouteChildren: LayoutRouteChildren = {
|
||||
LayoutWorkersRoute: LayoutWorkersRoute,
|
||||
LayoutIndexRoute: LayoutIndexRoute,
|
||||
LayoutRunsIdRoute: LayoutRunsIdRoute,
|
||||
LayoutRunsNewRoute: LayoutRunsNewRoute,
|
||||
LayoutDashboardsIndexRoute: LayoutDashboardsIndexRoute,
|
||||
LayoutFlowsIndexRoute: LayoutFlowsIndexRoute,
|
||||
LayoutRunsIndexRoute: LayoutRunsIndexRoute,
|
||||
|
||||
Reference in New Issue
Block a user