Skip to content

fix!: generate correct CSS class name for adhoc subprocess#3058

Merged
tbouffard merged 4 commits into
masterfrom
fix/subprocess_adhoc_css_classname
Mar 25, 2024
Merged

fix!: generate correct CSS class name for adhoc subprocess#3058
tbouffard merged 4 commits into
masterfrom
fix/subprocess_adhoc_css_classname

Conversation

@tbouffard

@tbouffard tbouffard commented Mar 22, 2024

Copy link
Copy Markdown
Member

The CSS class name associated to the adhoc subprocess was incorrect. It was bpmn-sub-process-ad_hoc instead of bpmn-sub-process-adhoc.

The tests checking the CSS class names were incorrectly written. Test inputs used hard coded string instead of the actual value of the various enum entries. So, they were unable to detect the problem.

BREAKING CHANGES:

  • The CSS class name associated to the adhoc subprocess in the DOM have changed. It was bpmn-sub-process-ad_hoc and it is now bpmn-sub-process-adhoc. CSS rules and selectors must be updated accordingly.
  • The value of ShapeBpmnSubProcessKind.AD_HOC changed. As it is not intended to be used directly, no one should be impacted.

Notes

Detected in #2756

The CSS class name associated to the adhoc subprocess was incorrect.
It was `bpmn-sub-process-ad_hoc` instead of `bpmn-sub-process-adhoc`.

The tests checking the CSS class names were incorrectly written. Test inputs used hard coded string instead of the
actual value of the various enum entries. So, they were unable to detect the problem.

BREAKING CHANGES:
  - The CSS class name associated to the adhoc subprocess in the DOM have changed.
  It was `bpmn-sub-process-ad_hoc` and it is now `bpmn-sub-process-adhoc`. CSS rules and selectors must be updated
  accordingly.
  - The value of `ShapeBpmnSubProcessKind.AD_HOC` changed. As it is not intended to be used directly, applications
  should not be impacted.
@tbouffard tbouffard added the bug Something isn't working label Mar 22, 2024
Comment thread src/model/bpmn/internal/shape/kinds.ts Outdated
*/
export enum ShapeBpmnSubProcessKind {
AD_HOC = 'ad_hoc',
AD_HOC = 'adHoc',

@tbouffard tbouffard Mar 22, 2024

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

thought: value could be set to adhoc without impact if we prefer to only use lower-case values.
For consistency with other enum values, I would prefer to use a lower-case value.

@github-actions

github-actions Bot commented Mar 22, 2024

Copy link
Copy Markdown

♻️ PR Preview 4fdd8a1 has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@github-actions

github-actions Bot commented Mar 22, 2024

Copy link
Copy Markdown

♻️ PR Preview 4fdd8a1 has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@tbouffard tbouffard marked this pull request as ready for review March 22, 2024 10:30
@tbouffard tbouffard requested a review from csouchet March 22, 2024 10:30
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@tbouffard tbouffard merged commit f608382 into master Mar 25, 2024
@tbouffard tbouffard deleted the fix/subprocess_adhoc_css_classname branch March 25, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants