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

View File

@ -840,3 +840,12 @@ div.cds--tag svg {
div.onboarding {
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}>Events</Tab>
<Tab disabled={!canViewMsgs}>Messages</Tab>
<Tab>My Forms</Tab>
<Tab>My completed tasks</Tab>
</TabList>
<TabPanels>
<TabPanel>
@ -1511,14 +1511,13 @@ export default function ProcessInstanceShow({ variant }: OwnProps) {
<TaskListTable
apiPath={`/tasks/completed-by-me/${processInstance.id}`}
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}
showProcessModelIdentifier={false}
showProcessId={false}
showStartedBy={false}
showTableDescriptionAsTooltip
showDateStarted={false}
hideIfNoTasks
showWaitingOn={false}
canCompleteAllTasks={false}
showViewFormDataButton