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

refactor(demo): simplify the UseCase classes and how to set theme #564

Merged
merged 8 commits into from
Oct 12, 2023

Conversation

csouchet
Copy link
Member

@csouchet csouchet commented Sep 26, 2023

@csouchet csouchet added depends on another PR ⚠️ Pull request depending on another one. The depending must be merged first refactoring Code refactoring labels Sep 26, 2023
@csouchet csouchet force-pushed the refactor/use_cases_in_demos branch 3 times, most recently from 9b3a1d4 to 81b19df Compare October 2, 2023 14:59
@csouchet csouchet removed the depends on another PR ⚠️ Pull request depending on another one. The depending must be merged first label Oct 2, 2023
@csouchet csouchet marked this pull request as ready for review October 2, 2023 15:00
@csouchet csouchet requested a review from tbouffard October 2, 2023 15:00
@csouchet csouchet force-pushed the refactor/use_cases_in_demos branch from 81b19df to c5cea71 Compare October 11, 2023 12:06
Copy link
Member

@tbouffard tbouffard left a comment

Choose a reason for hiding this comment

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

ℹ️ I mainly check the features, less the code changes
Tested commit: c5cea71

✔️ monitoring

✔️ prediction: all use cases are working

❌ hacktoberfest : default ko (others use cases are working: theme and year)

14:34:59,117 Uncaught TypeError: this._bpmnVisualization is undefined
_displayVersionInfoInFooter https://cdn.statically.io/gh/process-analytics/bpmn-visualization-examples/c5cea71/demo/static/js/use-case.js:38
display https://cdn.statically.io/gh/process-analytics/bpmn-visualization-examples/c5cea71/demo/static/js/use-case.js:29
changeUseCase https://cdn.statically.io/gh/process-analytics/bpmn-visualization-examples/c5cea71/demo/hacktoberfest-custom-themes/js/index.js:19
oninput https://cdn.statically.io/gh/process-analytics/bpmn-visualization-examples/c5cea71/demo/hacktoberfest-custom-themes/js/index.js:32
use-case.js:38:29

  • Chrome 118.0.5993.70 (64 bits) on Ubuntu 20.04

use-case.js:38 Uncaught TypeError: Cannot read properties of undefined (reading 'getVersion')
at HacktoberfestUseCase._displayVersionInfoInFooter (use-case.js:38:53)
at HacktoberfestUseCase.display (use-case.js:29:14)
at changeUseCase (index.js:19:19)
at document.getElementById.onchange (index.js:37:5)

@@ -1,17 +1,21 @@
function buildUseCase(type, year, projectName) {
switch (type) {
function buildUseCase() {
Copy link
Member

Choose a reason for hiding this comment

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

praise: much clearer 👍🏿

Comment on lines +49 to +54
if (themeElement.fontFamily) {
style[StyleIdentifiers.STYLE_FONTFAMILY] = themeElement.fontFamily;
}
if (themeElement.fontSize) {
style[StyleIdentifiers.STYLE_FONTSIZE] = themeElement.fontSize;
}
Copy link
Member

Choose a reason for hiding this comment

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

praise: more consistent with the management of other properties

Copy link
Member

@tbouffard tbouffard left a comment

Choose a reason for hiding this comment

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

@csouchet csouchet merged commit 4da857a into master Oct 12, 2023
@csouchet csouchet deleted the refactor/use_cases_in_demos branch October 12, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Code refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants