allow instructions to collapse in view completed form and make items in text fields a little more readable w/ burnettk (#506)

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
This commit is contained in:
jasquat 2023-09-20 16:03:58 -04:00 committed by GitHub
parent ff9d34fe83
commit 439c8abbe2
3 changed files with 13 additions and 5 deletions

View File

@ -179,7 +179,7 @@ export default function TaskListTable({
</div> </div>
</div> </div>
<hr /> <hr />
<InstructionsForEndUser task={formSubmissionTask} /> <InstructionsForEndUser task={formSubmissionTask} allowCollapse />
<CustomForm <CustomForm
id={formSubmissionTask.guid} id={formSubmissionTask.guid}
formData={formSubmissionTask.data} formData={formSubmissionTask.data}
@ -325,7 +325,7 @@ export default function TaskListTable({
variant="primary" variant="primary"
onClick={() => getFormSubmissionDataForTask(processInstanceTask)} onClick={() => getFormSubmissionDataForTask(processInstanceTask)}
> >
View form View task
</Button> </Button>
); );
} }

View File

@ -840,3 +840,12 @@ div.cds--tag svg {
div.onboarding { div.onboarding {
margin-bottom: 2rem; margin-bottom: 2rem;
} }
.cds--text-input:disabled,
.cds--text-area:disabled,
.cds--date-picker__input:disabled,
.cds--select-input:disabled,
.cds--select-input:hover:disabled {
--cds-text-disabled: rgba(22, 22, 22, .5);
background-color: #ffffff
}

View File

@ -1475,7 +1475,7 @@ export default function ProcessInstanceShow({ variant }: OwnProps) {
<Tab disabled={!canViewLogs}>Milestones</Tab> <Tab disabled={!canViewLogs}>Milestones</Tab>
<Tab disabled={!canViewLogs}>Events</Tab> <Tab disabled={!canViewLogs}>Events</Tab>
<Tab disabled={!canViewMsgs}>Messages</Tab> <Tab disabled={!canViewMsgs}>Messages</Tab>
<Tab>My Forms</Tab> <Tab>My completed tasks</Tab>
</TabList> </TabList>
<TabPanels> <TabPanels>
<TabPanel> <TabPanel>
@ -1511,14 +1511,13 @@ export default function ProcessInstanceShow({ variant }: OwnProps) {
<TaskListTable <TaskListTable
apiPath={`/tasks/completed-by-me/${processInstance.id}`} apiPath={`/tasks/completed-by-me/${processInstance.id}`}
paginationClassName="with-large-bottom-margin" paginationClassName="with-large-bottom-margin"
textToShowIfEmpty="There are no tasks you can complete for this process instance." textToShowIfEmpty="There are no tasks you completed for this process instance."
shouldPaginateTable={false} shouldPaginateTable={false}
showProcessModelIdentifier={false} showProcessModelIdentifier={false}
showProcessId={false} showProcessId={false}
showStartedBy={false} showStartedBy={false}
showTableDescriptionAsTooltip showTableDescriptionAsTooltip
showDateStarted={false} showDateStarted={false}
hideIfNoTasks
showWaitingOn={false} showWaitingOn={false}
canCompleteAllTasks={false} canCompleteAllTasks={false}
showViewFormDataButton showViewFormDataButton