ui/server/src/reviewPlans
the "expected scope" source for Review mode: the saved plans of the CURRENT PROJECT, which are the plans of the processes in the process store (a process stores its plan verbatim, ).
Cockpit server, next. Source: ui/server/src/reviewPlans.mjs.
Functions#
createPlanSource()#
createPlanSource(
deps):object
Defined in: ui/server/src/reviewPlans.mjs:25
Parameters#
deps
records returns the current project's process
records (in production: processesService.store()?.all().processes).
records
() => any[]
Returns#
list
list: () =>
object[] =all
Every plan the picker may offer: {id, title, state, features, files}.
Returns
object[]
resolve()
resolve(
id):object
The listed plan whose id is EXACTLY id, or null. The one place a client string becomes a plan.
Parameters
id
any
Returns
object
features
features:
string[] =t.features
files
files:
any[]
id
id:
any=record.id
state
state:
any=record.state
title
title:
any
expectedOf()#
expectedOf(
plan):object
Defined in: ui/server/src/reviewPlans.mjs:43
What the engine's expected argument is for a resolved plan (features and file paths only).
Parameters#
plan
any
Returns#
object
features
features:
any=plan.features
files
files:
any=plan.files