update UX after feedback from team
This commit is contained in:
parent
e74c642a1d
commit
619f7e41bd
|
@ -105,12 +105,6 @@ export default function ProcessModelShow() {
|
|||
});
|
||||
}, [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 = () => {
|
||||
if (processInstance) {
|
||||
return (
|
||||
|
@ -583,7 +577,7 @@ export default function ProcessModelShow() {
|
|||
a={targetUris.processModelFileCreatePath}
|
||||
ability={ability}
|
||||
>
|
||||
{newUx1 && addFileComponent()}
|
||||
{addFileComponent()}
|
||||
<br />
|
||||
</Can>
|
||||
{processModelFileList()}
|
||||
|
@ -655,7 +649,6 @@ export default function ProcessModelShow() {
|
|||
confirmButtonLabel="Delete"
|
||||
/>
|
||||
</Can>
|
||||
{newUx2PublishAsIcon && (
|
||||
<Can
|
||||
I="POST"
|
||||
a={targetUris.processModelPublishPath}
|
||||
|
@ -668,9 +661,9 @@ export default function ProcessModelShow() {
|
|||
iconDescription="Publish Changes"
|
||||
hasIconOnly
|
||||
onClick={publishProcessModel}
|
||||
disabled={publishDisabled}
|
||||
/>
|
||||
</Can>
|
||||
)}
|
||||
</Stack>
|
||||
<p className="process-description">{processModel.description}</p>
|
||||
<Stack orientation="horizontal" gap={3}>
|
||||
|
@ -693,20 +686,6 @@ export default function ProcessModelShow() {
|
|||
a={targetUris.processModelPublishPath}
|
||||
ability={ability}
|
||||
>
|
||||
{!newUx2PublishAsIcon ? (
|
||||
<Can
|
||||
I="POST"
|
||||
a={targetUris.processModelPublishPath}
|
||||
ability={ability}
|
||||
>
|
||||
<Button
|
||||
disabled={publishDisabled}
|
||||
onClick={publishProcessModel}
|
||||
>
|
||||
Publish Changes
|
||||
</Button>
|
||||
</Can>
|
||||
) : null}
|
||||
<Can
|
||||
I="POST"
|
||||
a={targetUris.processModelTestsPath}
|
||||
|
@ -716,13 +695,6 @@ export default function ProcessModelShow() {
|
|||
<ProcessModelTestRun buttonType="text" />
|
||||
) : null}
|
||||
</Can>
|
||||
<Can
|
||||
I="POST"
|
||||
a={targetUris.processModelFileCreatePath}
|
||||
ability={ability}
|
||||
>
|
||||
{newUx2 ? addFileComponent() : null}
|
||||
</Can>
|
||||
</Can>
|
||||
</Stack>
|
||||
{processModelFilesSection()}
|
||||
|
|
Loading…
Reference in New Issue