update UX after feedback from team

This commit is contained in:
burnettk 2023-06-01 10:07:01 -04:00
parent e74c642a1d
commit 619f7e41bd
1 changed files with 16 additions and 44 deletions

View File

@ -105,12 +105,6 @@ export default function ProcessModelShow() {
}); });
}, [reloadModel, modifiedProcessModelId]); }, [reloadModel, modifiedProcessModelId]);
// these options are just here as a sort of A/B test to see which UX is better.
// they will be removed once we learn which UX to go with.
const newUx1 = true;
const newUx2 = false;
const newUx2PublishAsIcon = false;
const processInstanceRunResultTag = () => { const processInstanceRunResultTag = () => {
if (processInstance) { if (processInstance) {
return ( return (
@ -583,7 +577,7 @@ export default function ProcessModelShow() {
a={targetUris.processModelFileCreatePath} a={targetUris.processModelFileCreatePath}
ability={ability} ability={ability}
> >
{newUx1 && addFileComponent()} {addFileComponent()}
<br /> <br />
</Can> </Can>
{processModelFileList()} {processModelFileList()}
@ -655,22 +649,21 @@ export default function ProcessModelShow() {
confirmButtonLabel="Delete" confirmButtonLabel="Delete"
/> />
</Can> </Can>
{newUx2PublishAsIcon && ( <Can
<Can I="POST"
I="POST" a={targetUris.processModelPublishPath}
a={targetUris.processModelPublishPath} ability={ability}
ability={ability} >
> <Button
<Button kind="ghost"
kind="ghost" data-qa="publish-process-model-button"
data-qa="publish-process-model-button" renderIcon={Upload}
renderIcon={Upload} iconDescription="Publish Changes"
iconDescription="Publish Changes" hasIconOnly
hasIconOnly onClick={publishProcessModel}
onClick={publishProcessModel} disabled={publishDisabled}
/> />
</Can> </Can>
)}
</Stack> </Stack>
<p className="process-description">{processModel.description}</p> <p className="process-description">{processModel.description}</p>
<Stack orientation="horizontal" gap={3}> <Stack orientation="horizontal" gap={3}>
@ -693,20 +686,6 @@ export default function ProcessModelShow() {
a={targetUris.processModelPublishPath} a={targetUris.processModelPublishPath}
ability={ability} ability={ability}
> >
{!newUx2PublishAsIcon ? (
<Can
I="POST"
a={targetUris.processModelPublishPath}
ability={ability}
>
<Button
disabled={publishDisabled}
onClick={publishProcessModel}
>
Publish Changes
</Button>
</Can>
) : null}
<Can <Can
I="POST" I="POST"
a={targetUris.processModelTestsPath} a={targetUris.processModelTestsPath}
@ -716,13 +695,6 @@ export default function ProcessModelShow() {
<ProcessModelTestRun buttonType="text" /> <ProcessModelTestRun buttonType="text" />
) : null} ) : null}
</Can> </Can>
<Can
I="POST"
a={targetUris.processModelFileCreatePath}
ability={ability}
>
{newUx2 ? addFileComponent() : null}
</Can>
</Can> </Can>
</Stack> </Stack>
{processModelFilesSection()} {processModelFilesSection()}