diff --git a/seed/tasks/TASKS.md b/seed/tasks/TASKS.md index 6c728ce6..a0a14c26 100644 --- a/seed/tasks/TASKS.md +++ b/seed/tasks/TASKS.md @@ -36,7 +36,30 @@ trigger: inputs: - name: input_name description: What this input is. + type: string required: true + - name: count + description: How many items to process. + type: number + default: 10 + required: false + - name: verbose + description: Enable verbose output. + type: boolean + default: false + required: false + - name: format + description: Output format. + type: select + default: json + required: false + options: + - value: json + label: JSON + - value: csv + label: CSV + - value: md + label: Markdown --- ``` @@ -56,7 +79,12 @@ inputs: | `inputs` | object[] | no | Inputs the task expects. | | `inputs[].name` | string | yes | Name of the input parameter. | | `inputs[].description` | string | yes | Description of the input. | +| `inputs[].type` | string | no | Input type. Determines how a task runner renders the input. One of: `string`, `number`, `boolean`, `select`. Defaults to `string`. | +| `inputs[].default` | any | no | Default value for the input. | | `inputs[].required` | boolean | no | Whether the input is required. | +| `inputs[].options` | object[] | no | Available choices when `type` is `select`. Each option has a `value` and a `label`. | +| `inputs[].options[].value` | string | yes | The value passed to the task. | +| `inputs[].options[].label` | string | yes | Human-readable label displayed in the UI. | ### Body diff --git a/src/apps/officer-web/App.tsx b/src/apps/officer-web/App.tsx index c1aa3d20..97c474dd 100644 --- a/src/apps/officer-web/App.tsx +++ b/src/apps/officer-web/App.tsx @@ -41,11 +41,11 @@ export function App() { } /> } /> } /> - } /> - } /> - } /> - } /> - } /> + } /> + } /> + } /> + } /> + } /> } /> } /> } /> diff --git a/src/apps/officer-web/Screens/Authentication/ForgotPassword/ForgotPassword.tsx b/src/apps/officer-web/Screens/Authentication/ForgotPassword/ForgotPassword.tsx index 605f1a07..d7dc1d2e 100644 --- a/src/apps/officer-web/Screens/Authentication/ForgotPassword/ForgotPassword.tsx +++ b/src/apps/officer-web/Screens/Authentication/ForgotPassword/ForgotPassword.tsx @@ -53,7 +53,7 @@ export function ForgotPassword() {