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

User Task Forms UI and data fetching #81

Merged
merged 4 commits into from
Jan 20, 2023
Merged

User Task Forms UI and data fetching #81

merged 4 commits into from
Jan 20, 2023

Conversation

SebastianStamm
Copy link
Collaborator

Description

This PR changes the way user task forms get their form markup and variables and replaces the previous hacky implementation with the proper one, getting the data from Zeeqs thanks to camunda-community-hub/zeeqs#284

It also changes the complete job UI for user tasks, adding a dedicated form icon and removing the fail and error options from the dropdown because they are not valid options for a user task (for now).

Related issues

closes #10

@CLAassistant
Copy link

CLAassistant commented Jan 17, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@saig0 saig0 left a comment

Choose a reason for hiding this comment

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

@SebastianStamm nice work. 🤩

I found a few issues ❌ that we should fix. And I added some comments with optional suggestions 🔧. Please have a look. 🍪

src/main/resources/public/js/view-bpmn.js Outdated Show resolved Hide resolved
src/main/resources/public/js/view-bpmn.js Outdated Show resolved Hide resolved
src/main/resources/public/js/view-bpmn.js Outdated Show resolved Hide resolved
src/main/resources/public/js/view-bpmn.js Outdated Show resolved Hide resolved
fix: user tasks with custom/external forms no longer fail to load
feat: user tasks without forms can no longer be failed
@SebastianStamm
Copy link
Collaborator Author

@saig0 Great findings, thanks! The bootstrap tooltip behavior stumped me a bit because there was another problem that the tooltip did not appear at all when the user clicked the reload button when the button was already visible. I think bootstrap got confused because a new element was created that had the same id as the old one. Using the classname as selector fixed it though.

I fixed the issues and applied your suggestions with the latest commit, please have look.

Copy link
Collaborator

@saig0 saig0 left a comment

Choose a reason for hiding this comment

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

@SebastianStamm very nice. LGTM. 🚀

@saig0 saig0 merged commit b16d032 into main Jan 20, 2023
@saig0 saig0 deleted the task-forms branch January 20, 2023 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

I can view and complete the form of a user task
3 participants