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

feat: support editing zeebe:priorityDefinition #1072

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

Skaiir
Copy link
Contributor

@Skaiir Skaiir commented Aug 14, 2024

Proposed Changes

Adds an entry in the properties panel to edit the zeebe:priorityDefinition::priority of a user task. Should have a tooltip with some info and a (currently empty) link to docs.

Closes #1069

image

npx @bpmn-io/sr bpmn-io/bpmn-js#main -l bpmn-io/bpmn-js-properties-panel#1069-support-priority-editing

@Skaiir Skaiir requested review from a team, philippfromme and abdul99ahad and removed request for a team August 14, 2024 16:03
@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Aug 14, 2024
@Skaiir Skaiir changed the title Feat: support editing zeebe:priorityDefinition feat: support editing zeebe:priorityDefinition Aug 14, 2024
@philippfromme
Copy link
Contributor

Thanks for the contribution @Skaiir! Will have a look! 🫶

commandStack.execute('properties-panel.multi-command-executor', commands);
};

const tooltip = <div>
Copy link
Contributor

Choose a reason for hiding this comment

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

We keep the tooltips in the respective provider. Also, the link doesn't point anywhere at the moment. I guess that's because the documentation doesn't exist yet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey there, yeah it's because it doesn't exist yet. Raised a follow-up here: #1073.

Copy link
Contributor Author

@Skaiir Skaiir Aug 15, 2024

Choose a reason for hiding this comment

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

On a related topic, there will come a time where this method of translating won't be enough. Not being able to move divs around relative to each-other prevents things like links or formatting inside of sentences. And the more different from English the languages become, the more formatting quirks will need to be involved.

I think something similar to the Trans component of react-i18next might make sense. Just floating the idea around.

Copy link
Member

Choose a reason for hiding this comment

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

I think something similar to the Trans component of react-i18next might make sense. Just floating the idea around.

Let's keep things simple and not over-engineer. Quoting from the site you mentioned:

image

@bpmn-io-tasks bpmn-io-tasks bot added in progress Currently worked on and removed needs review Review pending labels Aug 15, 2024
@Skaiir Skaiir force-pushed the 1069-support-priority-editing branch from 4c4c00f to 2dab16b Compare August 15, 2024 12:31
@Skaiir
Copy link
Contributor Author

Skaiir commented Aug 15, 2024

Made the adjustments, removed the link entirely for now, follow up here: #1073.

@bpmn-io-tasks bpmn-io-tasks bot added needs review Review pending and removed in progress Currently worked on labels Aug 15, 2024
Copy link
Contributor

@philippfromme philippfromme left a comment

Choose a reason for hiding this comment

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

Great contribution! 🚀

@philippfromme philippfromme merged commit d9e03d4 into main Aug 15, 2024
10 checks passed
@philippfromme philippfromme deleted the 1069-support-priority-editing branch August 15, 2024 14:23
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Aug 15, 2024
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.

Support editing priority in Zeebe
3 participants