some styling changes and a better end page.

This commit is contained in:
Dan 2023-04-26 19:15:15 -04:00
parent d94ee2cbf5
commit 015754e089
3 changed files with 14 additions and 15 deletions

View File

@ -430,11 +430,10 @@ def _interstitial_stream(process_instance: ProcessInstanceModel) -> Generator[st
task = ProcessInstanceService.spiff_task_to_api_task(processor, processor.next_task())
if task.id not in reported_ids:
task_model = TaskModel.query.filter_by(guid=str(task.id)).first()
extensions = TaskService.get_extensions_from_task_model(task_model)
task.properties = extensions
yield f"data: {current_app.json.dumps(task)} \n\n"
# Note, this has to be done in case someone leaves the page,
# which can otherwise cancel this function and leave completed tasks un-registered.
spiff_task = processor.next_task()
task_model = TaskModel.query.filter_by(guid=str(spiff_task.id)).first()
def get_ready_engine_step_count(bpmn_process_instance: BpmnWorkflow) -> int:

View File

@ -435,17 +435,17 @@ svg.notification-icon {
}
.user_instructions_1 {
filter: opacity(90%);
}
.user_instructions_2 {
filter: opacity(70%);
}
.user_instructions_3 {
.user_instructions_2 {
filter: opacity(50%);
}
.user_instructions_4 {
.user_instructions_3 {
filter: opacity(30%);
}
.user_instructions_4 {
filter: opacity(10%);
}

View File

@ -103,16 +103,16 @@ export default function ProcessInterstitial() {
const getReturnHomeButton = (index: number) => {
if (
index === 0 &&
['WAITING', 'ERROR', 'LOCKED', 'COMPLETED'].includes(getStatus())
['WAITING', 'ERROR', 'LOCKED', 'COMPLETED', 'READY'].includes(getStatus())
)
return (
<>
<br />
<br />
<div style={{ padding: '10px 0 30px 0' }}>
<Button kind="secondary" onClick={() => navigate(`/tasks`)}>
Return to Home
</Button>
</>
<hr/>
</div>
);
return '';
};