Requested simplification of the interstitial page.
This commit is contained in:
parent
382e0916f1
commit
cd99837378
|
@ -478,22 +478,28 @@ svg.notification-icon {
|
||||||
|
|
||||||
.user_instructions_0 {
|
.user_instructions_0 {
|
||||||
filter: opacity(1);
|
filter: opacity(1);
|
||||||
|
font-size: 1.2em;
|
||||||
|
margin-bottom: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user_instructions_1 {
|
.user_instructions_1 {
|
||||||
filter: opacity(60%);
|
filter: opacity(60%);
|
||||||
|
font-size: 1.1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user_instructions_2 {
|
.user_instructions_2 {
|
||||||
filter: opacity(40%);
|
filter: opacity(40%);
|
||||||
|
font-size: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user_instructions_3 {
|
.user_instructions_3 {
|
||||||
filter: opacity(20%);
|
filter: opacity(20%);
|
||||||
|
font-size: 9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user_instructions_4 {
|
.user_instructions_4 {
|
||||||
filter: opacity(10%);
|
filter: opacity(10%);
|
||||||
|
font-size: 8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.float-right {
|
.float-right {
|
||||||
|
|
|
@ -111,6 +111,16 @@ export default function ProcessInterstitial() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const getLoadingIcon = () => {
|
||||||
|
if(getStatus() === 'RUNNING') {
|
||||||
|
return (
|
||||||
|
<Loading description="Active loading indicator" withOverlay={false} style={{margin: "auto"}}/>
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const getReturnHomeButton = (index: number) => {
|
const getReturnHomeButton = (index: number) => {
|
||||||
if (
|
if (
|
||||||
index === 0 &&
|
index === 0 &&
|
||||||
|
@ -123,6 +133,7 @@ export default function ProcessInterstitial() {
|
||||||
kind="secondary"
|
kind="secondary"
|
||||||
data-qa="return-to-home-button"
|
data-qa="return-to-home-button"
|
||||||
onClick={() => navigate(`/tasks`)}
|
onClick={() => navigate(`/tasks`)}
|
||||||
|
style={{marginBottom:30}}
|
||||||
>
|
>
|
||||||
Return to Home
|
Return to Home
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -155,7 +166,6 @@ export default function ProcessInterstitial() {
|
||||||
if (!myTask.can_complete && userTasks.includes(myTask.type)) {
|
if (!myTask.can_complete && userTasks.includes(myTask.type)) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<h4 className="heading-compact-01">Waiting on Someone Else</h4>
|
|
||||||
<p>
|
<p>
|
||||||
This next task is assigned to a different person or team. There is
|
This next task is assigned to a different person or team. There is
|
||||||
no action for you to take at this time.
|
no action for you to take at this time.
|
||||||
|
@ -189,6 +199,8 @@ export default function ProcessInterstitial() {
|
||||||
if (state === 'CLOSED' && lastTask === null) {
|
if (state === 'CLOSED' && lastTask === null) {
|
||||||
navigate(`/tasks`);
|
navigate(`/tasks`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (lastTask) {
|
if (lastTask) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
@ -206,21 +218,10 @@ export default function ProcessInterstitial() {
|
||||||
],
|
],
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
<div style={{ display: 'flex', alignItems: 'center', gap: '10px' }}>
|
{getLoadingIcon()}
|
||||||
{getStatusImage()}
|
<div style={{maxWidth:800, margin:"auto", padding:50}}>
|
||||||
<div>
|
|
||||||
<h1 style={{ marginBottom: '0em' }}>
|
|
||||||
{lastTask.process_model_display_name}:{' '}
|
|
||||||
{lastTask.process_instance_id}
|
|
||||||
</h1>
|
|
||||||
<div>Status: {capitalize(getStatus())}</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
{data.map((d, index) => (
|
{data.map((d, index) => (
|
||||||
<Grid fullWidth style={{ marginBottom: '1em' }}>
|
<>
|
||||||
<Column md={6} lg={8} sm={4}>
|
|
||||||
<div
|
<div
|
||||||
className={
|
className={
|
||||||
index < 4
|
index < 4
|
||||||
|
@ -231,10 +232,9 @@ export default function ProcessInterstitial() {
|
||||||
{userMessage(d)}
|
{userMessage(d)}
|
||||||
</div>
|
</div>
|
||||||
{getReturnHomeButton(index)}
|
{getReturnHomeButton(index)}
|
||||||
{getHr(index)}
|
</>
|
||||||
</Column>
|
|
||||||
</Grid>
|
|
||||||
))}
|
))}
|
||||||
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue