feat: add workflow template fields (#63)

* feat: add type detail

* feat: option => agencies type

* feat: agencies i18n

* fix: workflow => add institution type

* refactor: map option specific category, key

* feat: select menu with search components

* feat: workflow => add field step description & agencies

* fix: workflow => table page

* refactor: workflow => floating dialog submit

---------

Co-authored-by: Methapon Metanipat <methapon@frappet.com>
This commit is contained in:
puriphatt 2024-11-07 18:09:00 +07:00 committed by GitHub
parent 55f6a5f84e
commit 9708258e7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 708 additions and 251 deletions

View file

@ -4,6 +4,7 @@ export type WorkflowStep = {
id: string;
order: number;
name: string;
detail?: string;
type: string | null;
// NOTE: for list like type only
@ -14,11 +15,13 @@ export type WorkflowStep = {
userId: string;
user: CreatedBy;
}[];
responsibleInstitution: string[];
};
export type WorkflowTemplate = {
id: string;
name: string;
detail: string | null;
registeredBranchId: string;
step: WorkflowStep[];
status: Status;
@ -36,8 +39,10 @@ export type WorkflowTemplatePayload = {
step: {
name: string;
type?: string | null;
detail?: string | null;
value?: string[];
responsiblePersonId?: string[];
responsibleInstitution?: string[];
}[];
};