From cf09321432b441966770481eb7a4edebe06e8cd3 Mon Sep 17 00:00:00 2001 From: danfunk Date: Tue, 16 May 2023 13:19:22 -0400 Subject: [PATCH 1/5] Force Go and View buttons to be the same width. --- .../src/components/ProcessInstanceListTable.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx b/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx index af70ff48..c1e62fcb 100644 --- a/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx +++ b/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx @@ -1601,14 +1601,14 @@ export default function ProcessInstanceListTable({ ) { hasAccessToCompleteTask = true; } - + console.log("Has Access to complete task?", hasAccessToCompleteTask, regex, processInstance.potential_owner_usernames) let buttonText = 'View'; if (hasAccessToCompleteTask && processInstance.task_id) { buttonText = 'Go'; } buttonElement = ( - ); From 382e0916f16b00673f6c1b6a7fa71ebc41244881 Mon Sep 17 00:00:00 2001 From: danfunk Date: Tue, 16 May 2023 13:21:40 -0400 Subject: [PATCH 2/5] keep buttons from growing too large. --- .../src/components/ProcessInstanceListTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx b/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx index c1e62fcb..d2fa2e0a 100644 --- a/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx +++ b/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx @@ -1608,7 +1608,7 @@ export default function ProcessInstanceListTable({ } buttonElement = ( - ); From cd99837378ac6ba3b7b87b00a7bac0976ce7bba7 Mon Sep 17 00:00:00 2001 From: danfunk Date: Tue, 16 May 2023 15:26:48 -0400 Subject: [PATCH 3/5] Requested simplification of the interstitial page. --- spiffworkflow-frontend/src/index.css | 6 ++++ .../src/routes/ProcessInterstitial.tsx | 36 +++++++++---------- 2 files changed, 24 insertions(+), 18 deletions(-) diff --git a/spiffworkflow-frontend/src/index.css b/spiffworkflow-frontend/src/index.css index f0413204..cfea25f4 100644 --- a/spiffworkflow-frontend/src/index.css +++ b/spiffworkflow-frontend/src/index.css @@ -478,22 +478,28 @@ svg.notification-icon { .user_instructions_0 { filter: opacity(1); + font-size: 1.2em; + margin-bottom: 30px; } .user_instructions_1 { filter: opacity(60%); + font-size: 1.1em; } .user_instructions_2 { filter: opacity(40%); + font-size: 1em; } .user_instructions_3 { filter: opacity(20%); + font-size: 9em; } .user_instructions_4 { filter: opacity(10%); + font-size: 8em; } .float-right { diff --git a/spiffworkflow-frontend/src/routes/ProcessInterstitial.tsx b/spiffworkflow-frontend/src/routes/ProcessInterstitial.tsx index 368c3285..49c2a9bd 100644 --- a/spiffworkflow-frontend/src/routes/ProcessInterstitial.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessInterstitial.tsx @@ -111,6 +111,16 @@ export default function ProcessInterstitial() { } }; + const getLoadingIcon = () => { + if(getStatus() === 'RUNNING') { + return ( + + ); + } else { + return null; + } + } + const getReturnHomeButton = (index: number) => { if ( index === 0 && @@ -123,6 +133,7 @@ export default function ProcessInterstitial() { kind="secondary" data-qa="return-to-home-button" onClick={() => navigate(`/tasks`)} + style={{marginBottom:30}} > Return to Home @@ -155,7 +166,6 @@ export default function ProcessInterstitial() { if (!myTask.can_complete && userTasks.includes(myTask.type)) { return ( <> -

Waiting on Someone Else

This next task is assigned to a different person or team. There is no action for you to take at this time. @@ -189,6 +199,8 @@ export default function ProcessInterstitial() { if (state === 'CLOSED' && lastTask === null) { navigate(`/tasks`); } + + if (lastTask) { return ( <> @@ -206,21 +218,10 @@ export default function ProcessInterstitial() { ], ]} /> -

- {getStatusImage()} -
-

- {lastTask.process_model_display_name}:{' '} - {lastTask.process_instance_id} -

-
Status: {capitalize(getStatus())}
-
-
-
-
+ {getLoadingIcon()} +
{data.map((d, index) => ( - - + <>
{getReturnHomeButton(index)} - {getHr(index)} - - + ))} +
); } From 02bfa701c5dc96093bc7543d0da3754c96689707 Mon Sep 17 00:00:00 2001 From: danfunk Date: Tue, 16 May 2023 15:29:43 -0400 Subject: [PATCH 4/5] run_pyl, and a little cleanup. --- .../spiffworkflow_backend/config/__init__.py | 12 +-- .../models/process_instance.py | 6 +- .../services/process_instance_processor.py | 12 +-- .../public/interstitial/completed.png | Bin 2997 -> 0 bytes .../public/interstitial/errored.png | Bin 2796 -> 0 bytes .../public/interstitial/locked.png | Bin 2612 -> 0 bytes .../public/interstitial/redirect.png | Bin 2586 -> 0 bytes .../public/interstitial/waiting.png | Bin 2518 -> 0 bytes .../components/ProcessInstanceListTable.tsx | 13 ++- .../src/routes/ProcessInterstitial.tsx | 82 +++++------------- 10 files changed, 47 insertions(+), 78 deletions(-) delete mode 100644 spiffworkflow-frontend/public/interstitial/completed.png delete mode 100644 spiffworkflow-frontend/public/interstitial/errored.png delete mode 100644 spiffworkflow-frontend/public/interstitial/locked.png delete mode 100644 spiffworkflow-frontend/public/interstitial/redirect.png delete mode 100644 spiffworkflow-frontend/public/interstitial/waiting.png diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/config/__init__.py b/spiffworkflow-backend/src/spiffworkflow_backend/config/__init__.py index d61fa085..a7115745 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/config/__init__.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/config/__init__.py @@ -18,13 +18,13 @@ def setup_database_uri(app: Flask) -> None: if app.config.get("SPIFFWORKFLOW_BACKEND_DATABASE_URI") is None: database_name = f"spiffworkflow_backend_{app.config['ENV_IDENTIFIER']}" if app.config.get("SPIFFWORKFLOW_BACKEND_DATABASE_TYPE") == "sqlite": - app.config["SQLALCHEMY_DATABASE_URI"] = ( - f"sqlite:///{app.instance_path}/db_{app.config['ENV_IDENTIFIER']}.sqlite3" - ) + app.config[ + "SQLALCHEMY_DATABASE_URI" + ] = f"sqlite:///{app.instance_path}/db_{app.config['ENV_IDENTIFIER']}.sqlite3" elif app.config.get("SPIFFWORKFLOW_BACKEND_DATABASE_TYPE") == "postgres": - app.config["SQLALCHEMY_DATABASE_URI"] = ( - f"postgresql://spiffworkflow_backend:spiffworkflow_backend@localhost:5432/{database_name}" - ) + app.config[ + "SQLALCHEMY_DATABASE_URI" + ] = f"postgresql://spiffworkflow_backend:spiffworkflow_backend@localhost:5432/{database_name}" else: # use pswd to trick flake8 with hardcoded passwords db_pswd = app.config.get("SPIFFWORKFLOW_BACKEND_DATABASE_PASSWORD") diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/models/process_instance.py b/spiffworkflow-backend/src/spiffworkflow_backend/models/process_instance.py index 1668565c..078925e7 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/models/process_instance.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/models/process_instance.py @@ -129,9 +129,9 @@ class ProcessInstanceModel(SpiffworkflowBaseDBModel): def serialized_with_metadata(self) -> dict[str, Any]: process_instance_attributes = self.serialized process_instance_attributes["process_metadata"] = self.process_metadata - process_instance_attributes["process_model_with_diagram_identifier"] = ( - self.process_model_with_diagram_identifier - ) + process_instance_attributes[ + "process_model_with_diagram_identifier" + ] = self.process_model_with_diagram_identifier return process_instance_attributes @property diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py b/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py index b64cedfd..2020c9d6 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py @@ -415,9 +415,9 @@ class ProcessInstanceProcessor: tld.process_instance_id = process_instance_model.id # we want this to be the fully qualified path to the process model including all group subcomponents - current_app.config["THREAD_LOCAL_DATA"].process_model_identifier = ( - f"{process_instance_model.process_model_identifier}" - ) + current_app.config[ + "THREAD_LOCAL_DATA" + ].process_model_identifier = f"{process_instance_model.process_model_identifier}" self.process_instance_model = process_instance_model self.process_model_service = ProcessModelService() @@ -577,9 +577,9 @@ class ProcessInstanceProcessor: bpmn_subprocess_definition.bpmn_identifier ] = bpmn_process_definition_dict spiff_bpmn_process_dict["subprocess_specs"][bpmn_subprocess_definition.bpmn_identifier]["task_specs"] = {} - bpmn_subprocess_definition_bpmn_identifiers[bpmn_subprocess_definition.id] = ( - bpmn_subprocess_definition.bpmn_identifier - ) + bpmn_subprocess_definition_bpmn_identifiers[ + bpmn_subprocess_definition.id + ] = bpmn_subprocess_definition.bpmn_identifier task_definitions = TaskDefinitionModel.query.filter( TaskDefinitionModel.bpmn_process_definition_id.in_( # type: ignore diff --git a/spiffworkflow-frontend/public/interstitial/completed.png b/spiffworkflow-frontend/public/interstitial/completed.png deleted file mode 100644 index 5dafcebc14d2054e6df49bb0d6a0a555e2e0f8bb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2997 zcmXArc|6m99LK+NY+=q^bJJEKHgau6v0;u1A=cs8R%Y1DW>z^yu8ihPjtU9C{Gyy8 zB;@GONlE4iNkS!2{OI?``}2N$UZ3~t{e1oTNp?AGFDb4f4gi3p10LtL*}XQ)dmDK3 zZ0emz-)v%ZymuG?=sW!l1&lDwDn>hrJZK7{TO6`&1M@?La1RxKRVfv#yFEd zzh7l@2)Z?7&0+@77yykGM)4~uL#%G<23tCg97beN=u8SN1PG!Lsam_~ek4*5S!?T} zt3@HwLXdO{kx4tl@C)9?%ktYaYHt~_46@&rOUs=SOa_cmMtcp6PzES7cOz2_$`oU4 z8X{2Lw>fP0e?%68NCpC!OnMjwiKNlVA;cgG-H*ZC%84YAnSPWYq>+V*nXxHyi)^q3 zHt^>d{0(gI|4RTQgRr^L>o1;0=P)Q|0+;|6i_&so`3F&mS~yy;A0U|e$qps zJNoC%_?w8x8`3XoYh!9(zld?aWl?USNFm`Wc9aY273yMQ!wVif?QwQhUVQB;LKW@I z0d=w?vt)5NSALOa=Mb)<9`PwI;ifc|5}08&c;LUcw^s1==EJl zd$)0>ZnaP@7P z{@}PmJjwIyba}I$2D-NQ`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@=3-Q$J1C4s}^HW7K$BjeG z@1h*HOT$(SB#xRXM4C>9PA0{n_WNmhIe^p0+e|{Qa7QI}3;)g$e-?bpO3tViFOlgLIYhPj{;&D0 zezqo|=TVGm>hIfi;V6yaiRX!GR`M5MD~yP+o)4aRtbxl#KRIFeC0_q6?~oaI;^bj> zg578c{3^C1r{8k2(2IA!^{^_S!iAbCm7E+*4eByjt>Wt}|>TN&Dw?^t_F6tOopKG+TH1AqJDIi})-~e1z_lxQD@gjp$Us z>_yh3tH;%bS}s>mV~n$LuJl{!2d&@egb)mhWmjZdL%X6@-PIYqi;0gt;nPJqbfYFL zuD^Hn20qpPnvu8OF1}K%nf^}Qg0w6er<;#8la;e1(J<@ZG{W%m^E+QuDOyVQ3chPd zUcn0eu4vg&tb$H#xictKb%=ikym)#ZvFh5Ak6-B*D$Px6B)H<0ZU~EQGtgO890(xU zawOJizFB<}Lso0wjB)5d^w zf9WVQdCCI|Mnj*58J;yI?~;>?=<=0YQUE?{!zfO)t7i(3-R?#Z-O_(dv6`S(JJ*Y! z^wnQ-k#2t~h)Q?W-TQYb+S#aQ1Vm_liuC$NDLLw>3hcg!_q`zfZuy_Au_Yjc@FK_SRMI diff --git a/spiffworkflow-frontend/public/interstitial/errored.png b/spiffworkflow-frontend/public/interstitial/errored.png deleted file mode 100644 index a9aaba1e212e779d3b1103290a7ab59b30752560..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2796 zcmX9=c|6l^9G{tCjz-Q26LMr5a^=cdk>l0>G#Ly`MjR@^L{_?_w&47&+GM^_Vzp=1w+62mwiQi)5cnjv*z2NXbbA?A1E$H35#=!kzF*xI_X#CXk4rcoHrSsS9AEqT=z$ zt%)9zfFltx00BoPMJHkt#0pBW0-?s1&@mB@-BKa_2nl$Qv7yl(l#wCI(9F-s)Y8z@ z(%6*9Rk0F~_x~R;IT42k#gNHBk|hR10`Np!JORKalDBeVqVQxaAs%C7VPa-%irI2T zZ5g8?(@}o|qyArs5iJ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jKLu)y(CJ7XiFb;7<*J**jaKq9 zd)8a24|IH;?th8;eZ9I`rS3jryBD6EPRRh3iKG4t8NcxxJ2WnGjW?P- zx7GPKlbV;7$-5xMV(8l$px*}7b!U!z3Gf~rlqn8&zX%CdnHbU6cJHztibZicpf*8$ zmnTf$3}1x1#Io_r?9mV7v=j}CoA>^0mX={xM6|ri~yt&fyX?ua)q3Nr_}w0>GG z|9V|QoV;1>@lv>RFl`aL+MCq;Yj?QhOuW@JY{6QUR@(hCttR>YOw2>1*?DQyTmi!Y$)GbYw~P5ayrH}Q_Ko;`;}bi zXL=0k7_b!6uhkk!FS{^!U2nd3k^C{$;lQvMSQV@z@vL~Z!Q)+SRbhgX0x$H1W`Q?f zLyqzUY!2(x-Epu}O@`?Ov%I4CAY}5hY-obdc;01plYZzncL}*6EZicD`$Vbvr}569 z%9~>Def4o1>I0wY0aZDPidO_zu9+j*`H1wlpg=cPbAHQGIoTFs5 zW+1kZqLmg1Y8m5&`OlA9L+j}G2qBU%V9(y)QIxLpkQ18u?Jzzre`RN&TecqW4O4Z# zFlz7KGf?q6N3}R@BcmqVUus_$cSU@-S*s>37IXu5zR;c$x8w1YepX-E$M<1rnzBnl zHs^p#b(+5^OVcjdc5N(6;dar!uC!=HzHlqzs+YUD)%c#P;Ppqt8umJi*QxR{PHvOk zMGjxeV^AK725eHu=@}w;aFsXbwA*dfQfKb&l~uM~>$Alv@Pp)s4RQfde!fC)3xkC= zw9>P8b!J?@#iHxsA_HDHD!2fnm%V(Vz?1<`!NzY;(ZcKS7FkC zyzc`=KCKgR;}Nqt=`6%kodN%Uc&j6UP|G3Odiqlxw42%0*AiW~$QRC?o|~6pc-zu` z8s}bjP?fjhsm{fY!M^px={DZ6ZyODs4RyYHRJx;U=I+(sQ&@~fc=#K diff --git a/spiffworkflow-frontend/public/interstitial/locked.png b/spiffworkflow-frontend/public/interstitial/locked.png deleted file mode 100644 index 5c7ab7580ec13aa4903da937a8a086227760343f..0000000000000000000000000000000000000000 GI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z3q! z4f)#L@hE6-!RD)M!#6D|ib+2b38OJp!8kPwLY@Zh{MS29ilSy0f7z95HmT6+8xq=D zF6o-6+a9XFzQFuqU6WhzH=%E?4BY!BZWw?Zw0(h>ZF#%gN|?*xWi|FB=r8ZLFMCZG z<<}16wgvIj_e$2=uDm7oT*DD_tEfFZCT4PdSiQ_I#A0)E|2u(%Ks93a_V(uoaIkf@ Jsk0^}{U6skn@Rux diff --git a/spiffworkflow-frontend/public/interstitial/redirect.png b/spiffworkflow-frontend/public/interstitial/redirect.png deleted file mode 100644 index 2d81b3f5e371c17a66d2d5a8bec4b651477e691e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2586 zcmXArdpr~R8^>qv6XiAx%Sw(*c2Sm^6y|=vB%y3(Y%bf(+zGi~&ybEz%c72wl%b?t z7IN=IXlh}SOTR2C$;s_U{qcOC*Z1>%KF|B}=QqdI*+v!w0RaF2Svy;-`%XW$IIFO|v~02>=-A?v}_u#C4+`QH^2c&G4WGF=Fs^A|NIv22Q4gMiTHeBAiMO zzV_J^vNN=2cgQ@7L88(D)Tl@@zT)V~+O(amm!>N?WUr^dFPv9>LBA!U6B2aK7qI;(GKL9`~(hh6x8Oxfuo=`XD zq11C~KKj!n2)3l^kzFZiaR&uONsW+J%I?5&a&EO$b5WJ94PB#-5`NzE(dQwgF=wlX(DxkyZ6NDQ}6GQp9BKJl54{CC37Wcjr zx!2u3-t1L6_uAy{vz`Janr0nz`#refA^E-;uW4vuPhws&$|>B879@a_U1z=- z-l!DK)h+g>p_Ngo)7x5_4X`mG_2@x>9<(Dh(ZC}q>M1iCGz?f( zYS6rV7|lXs1k*~&+^~+kR;9<{Bq)qG$K4lb6Vee*NoVB`1L7t#S z!8fPJ4Xi1twjw1Ql?3sjgVC=O4v4S7VzV~tk448V>qZAG0j)(#IY;36I^5P?%F)hm zXK_gBw^vuYoR_DVnj!8*7A==M6BYZOOJ~;v>8~-~J?}YRAx(qVqYr^gxiMujTZj8J z#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wGGb$ZyD)a)s-2crg$nxLJYLI2pXfYQez$LIxNcyqHLA4_3Ip3k~8BG+Uy1P zK?K+i)XyBiSIy+#(>No!NV%JI$C@JN3d7@b-^jLE4e)5sYB}w&7`xltsJkte7ZN9&H=}X z8Dh&@Yl=h*oX)ZJY@AEv%-_9?CS#PFq}`%=B_ce3E_Dg$_81iobJOWkE^povvwHpP z=TVsCXd6WlQX&8K4yQJuOpKq=)nDR?^UoNu?dGdG2}1+)zd)4xncCZ>Ybp(8wN@QU zb}}g6o51FjYh6voUNB0?oO1uV1_UNj8MmhV1pT7oRA1h#P422~(|lfMs#6PZjgn3x>tU7TDJ3yW42H!fl}RfY-s8Oru9o lJ=PHkNtn|}ZR diff --git a/spiffworkflow-frontend/public/interstitial/waiting.png b/spiffworkflow-frontend/public/interstitial/waiting.png deleted file mode 100644 index 0701cdc996053c635f4b78e1d77522a493e87793..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2518 zcmX9=c|6qX8~u)D7-P#8V`5|^>&)1bHOr7|ZCpka#$YguG4^$cteGKuNGPtZ;-oHS9&T6(F_;(t020nl_Fnw%dr+ca z{uy0{HsUu3%?Td^06K051#+U!Nh69EG>#!wG~)0;~ib^9=2vHcIu(V{N28vuJp2j(q9|v3TU^4GceVIJoVRpN z-$qrCv|@-i66_zSXqzz6r6a~`R6A|2E)bn)qruS&&$Thq)(>*VB}8T>-*z=-lld*9wLQ+U&i}^ z#Tw=t8~3YH6Kxa!Nd=1B7MT-{0{o!qX#v~2)|j0)8U~PgYcaDPgltAy-PS%RMZ7nF zHO`cD?>BmeLfbG0JSUNo}&c1X+*{Hf33KGtu;aCTlhSP=8s!%(oXJ1sOL*7IEQ1 z=QfwN%$HzG6QZd{g#4i??>LKVc|re-Du_QY+Y#>k+VaQkMJO-mvp?AEu(= zG)+n26$|nbEX%60EWT2b3c$l!BW36&%Le}TnP+v6jDVml=V9gTfKmKfN1PR;zZ`;4%rz@pE@dFQeCI}cT{>Z8ar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E3tmZau5@bn}1F6=jOo6eO4e#`+pDJEwNxX%QVRi*5)Wf*4g<9 zqiA>Zmevtr)$1N-ef+<3q*qHzqtga&NmOO5xUD*;yw=(eUr+efJh0)IA1b8kx+kt? z9*1t<8 diff --git a/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx b/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx index d2fa2e0a..5b9826f7 100644 --- a/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx +++ b/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx @@ -1601,14 +1601,23 @@ export default function ProcessInstanceListTable({ ) { hasAccessToCompleteTask = true; } - console.log("Has Access to complete task?", hasAccessToCompleteTask, regex, processInstance.potential_owner_usernames) + console.log( + 'Has Access to complete task?', + hasAccessToCompleteTask, + regex, + processInstance.potential_owner_usernames + ); let buttonText = 'View'; if (hasAccessToCompleteTask && processInstance.task_id) { buttonText = 'Go'; } buttonElement = ( - ); diff --git a/spiffworkflow-frontend/src/routes/ProcessInterstitial.tsx b/spiffworkflow-frontend/src/routes/ProcessInterstitial.tsx index 49c2a9bd..c906a0cd 100644 --- a/spiffworkflow-frontend/src/routes/ProcessInterstitial.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessInterstitial.tsx @@ -2,7 +2,7 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { useNavigate, useParams } from 'react-router-dom'; import { fetchEventSource } from '@microsoft/fetch-event-source'; // @ts-ignore -import { Loading, Grid, Column, Button } from '@carbon/react'; +import { Loading, Button } from '@carbon/react'; import { BACKEND_BASE_URL } from '../config'; import { getBasicHeaders } from '../services/HttpService'; @@ -89,37 +89,18 @@ export default function ProcessInterstitial() { return state; }; - const getStatusImage = () => { - switch (getStatus()) { - case 'RUNNING': - return ( - - ); - case 'LOCKED': - return Locked; - case 'READY': - case 'REDIRECTING': - return Redirecting ....; - case 'WAITING': - return Waiting ....; - case 'COMPLETED': - return Completed; - case 'ERROR': - return Errored; - default: - return getStatus(); - } - }; - const getLoadingIcon = () => { - if(getStatus() === 'RUNNING') { - return ( - - ); - } else { - return null; + if (getStatus() === 'RUNNING') { + return ( + + ); } - } + return null; + }; const getReturnHomeButton = (index: number) => { if ( @@ -133,7 +114,7 @@ export default function ProcessInterstitial() { kind="secondary" data-qa="return-to-home-button" onClick={() => navigate(`/tasks`)} - style={{marginBottom:30}} + style={{ marginBottom: 30 }} > Return to Home @@ -143,34 +124,14 @@ export default function ProcessInterstitial() { return ''; }; - const getHr = (index: number) => { - if (index === 0) { - return ( -
-
-
- ); - } - return ''; - }; - - function capitalize(str: string): string { - if (str && str.length > 0) { - return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase(); - } - return ''; - } - const userMessage = (myTask: ProcessInstanceTask) => { if (!processInstance || processInstance.status === 'completed') { if (!myTask.can_complete && userTasks.includes(myTask.type)) { return ( - <> -

- This next task is assigned to a different person or team. There is - no action for you to take at this time. -

- +

+ This next task is assigned to a different person or team. There is + no action for you to take at this time. +

); } if (shouldRedirect(myTask)) { @@ -200,7 +161,6 @@ export default function ProcessInterstitial() { navigate(`/tasks`); } - if (lastTask) { return ( <> @@ -219,9 +179,9 @@ export default function ProcessInterstitial() { ]} /> {getLoadingIcon()} -
- {data.map((d, index) => ( - <> +
+ {data.map((d, index) => ( + <>
{getReturnHomeButton(index)} - - ))} + + ))}
); From df2b22a6d9cc1d09a30a382aeae1488d7052837f Mon Sep 17 00:00:00 2001 From: burnettk Date: Tue, 16 May 2023 15:37:53 -0400 Subject: [PATCH 5/5] remove console --- .../src/components/ProcessInstanceListTable.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx b/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx index 5b9826f7..2b53d724 100644 --- a/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx +++ b/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx @@ -1601,12 +1601,6 @@ export default function ProcessInstanceListTable({ ) { hasAccessToCompleteTask = true; } - console.log( - 'Has Access to complete task?', - hasAccessToCompleteTask, - regex, - processInstance.potential_owner_usernames - ); let buttonText = 'View'; if (hasAccessToCompleteTask && processInstance.task_id) { buttonText = 'Go';