Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ms2/process editor #126

Merged
merged 12 commits into from
Oct 23, 2023
Merged

Ms2/process editor #126

merged 12 commits into from
Oct 23, 2023

Conversation

LucasMGo
Copy link
Contributor

@LucasMGo LucasMGo commented Oct 19, 2023

Summary

Minor bugfixes in process editor concerning process versions. Processes can be added now from scratch in overview page.

Details

  • Bugfix: Process editor only using viewer when showing version; editing only possible for latest version
  • Bugfix: Add content type to header information for put-request on userTasks
  • Added helper functions from old MS to new MS
  • Set version as latest version to edit process
  • Creation of new processes possible
  • Invalidate query after creating version to show updated list of versions in processEditor

Copy link
Contributor

@FelipeTrost FelipeTrost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from the minor comments and the bpmn stuff (which I can't completly follow), it looks good to me

@@ -119,9 +117,9 @@ const Processes: FC<ProcessProps> = () => {
{menu}
<Divider style={{ margin: '4px 0' }} />
<Space style={{ display: 'flex', justifyContent: 'center' }}>
<Button type="text" icon={<PlusOutlined />} onClick={createProcess}>
<ProcessCreationButton type="text" icon={<PlusOutlined />}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Permission check is missing (AuthCan)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also the case in version-toolbar.tsx:199

@@ -61,7 +61,7 @@ const Modeler: FC<ModelerProps> = ({ minimized, ...props }) => {
// This is not the most recent instance, so don't do anything.
if (active !== modeler.current) return;

if (editingDisabled) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

editingDisabled seems to be unused

return (
<Modal
title="Create new Process"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modal close button on the top right gets in the way of the text, maybe closeIcon={null} is a good solution
image

@@ -154,23 +196,26 @@ const VersionToolbar: React.FC<VersionToolbarProps> = () => {
<div style={{ position: 'absolute', zIndex: 10, padding: '12px', top: '80px' }}>
<Space.Compact size="large" direction="vertical">
<Tooltip title="Create as new process">
<Button icon={<PlusOutlined />} onClick={openNewProcessModal}></Button>
<ProcessCreationButton
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Permission check is missing (AuthCan)

@@ -119,9 +117,9 @@ const Processes: FC<ProcessProps> = () => {
{menu}
<Divider style={{ margin: '4px 0' }} />
<Space style={{ display: 'flex', justifyContent: 'center' }}>
<Button type="text" icon={<PlusOutlined />} onClick={createProcess}>
<ProcessCreationButton type="text" icon={<PlusOutlined />}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also the case in version-toolbar.tsx:199

@FelipeTrost FelipeTrost merged commit cb91f82 into main Oct 23, 2023
@FelipeTrost FelipeTrost deleted the ms2/process-editor branch October 23, 2023 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Adding Processes with Meta Data: Name, Description (automatically: Created, Last Modified, Created By)
2 participants