feat: workflow template properties (#70)

* feat: add i18n

* refactor/feat: workflow attributes type

* refactor: workflow => gray stat card

* refactor: select menu with search => separator

* feat: workflow => workflow step properties

* fix: workflow type

* fix: dialog properties component => model data

* fix: form flow => prevent toggle expansion with keyboard

* refactor: workflow step data & change status

* fix: form flow properties btn

* refactor: side menu => hide sub index

* feat: workflow => avatar & status on table

* refactor: workflow => drawer id and dialog id

* feat: workflow => card

* fix: agencies => format address
This commit is contained in:
puriphatt 2024-11-12 15:33:15 +07:00 committed by GitHub
parent 8a2a010776
commit 42e2f2b21d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 1257 additions and 225 deletions

View file

@ -1,3 +1,9 @@
import {
PropDate,
PropNumber,
PropOptions,
PropString,
} from '../product-service/types';
import { CreatedBy, Status } from '../types';
export type WorkflowStep = {
@ -16,6 +22,7 @@ export type WorkflowStep = {
user: CreatedBy;
}[];
responsibleInstitution: string[];
attributes: WorkFlowAttributes;
};
export type WorkflowTemplate = {
@ -36,14 +43,7 @@ export type WorkflowTemplatePayload = {
registeredBranchId?: string;
status: Status;
name: string;
step: {
name: string;
type?: string | null;
detail?: string | null;
value?: string[];
responsiblePersonId?: string[];
responsibleInstitution?: string[];
}[];
step: WorkFlowPayloadStep[];
};
export type WorkflowUserInTable = {
@ -60,3 +60,17 @@ export type WorkflowUserInTable = {
code: string;
}[];
};
export type WorkFlowAttributes = {
properties: (PropString | PropNumber | PropDate | PropOptions)[];
};
export type WorkFlowPayloadStep = {
name: string;
type?: string | null;
detail?: string | null;
value?: string[];
responsiblePersonId?: string[];
responsibleInstitution?: string[];
attributes: WorkFlowAttributes;
};