Change task UI layout (#435)
This commit is contained in:
@@ -39,9 +39,11 @@ export type ArtifactApiResponse = {
|
||||
|
||||
export type ActionAndResultApiResponse = [
|
||||
ActionApiResponse,
|
||||
{
|
||||
success: boolean;
|
||||
},
|
||||
[
|
||||
{
|
||||
success: boolean;
|
||||
},
|
||||
],
|
||||
];
|
||||
|
||||
export type StepApiResponse = {
|
||||
@@ -167,6 +169,16 @@ export const ActionTypes = {
|
||||
|
||||
export type ActionType = (typeof ActionTypes)[keyof typeof ActionTypes];
|
||||
|
||||
export const ReadableActionTypes: {
|
||||
[key in ActionType]: string;
|
||||
} = {
|
||||
input_text: "Input Text",
|
||||
click: "Click",
|
||||
select_option: "Select Option",
|
||||
upload_file: "Upload File",
|
||||
complete: "Complete",
|
||||
};
|
||||
|
||||
export type Option = {
|
||||
label: string;
|
||||
index: number;
|
||||
|
||||
Reference in New Issue
Block a user