@openmrs/esm-user-onboarding-app 4.0.1-pre.27 → 4.0.1-pre.273

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/.husky/pre-commit +1 -1
  2. package/README.md +62 -13
  3. package/dist/1904.js +2 -0
  4. package/dist/1904.js.map +1 -0
  5. package/dist/282.js +2 -0
  6. package/dist/282.js.LICENSE.txt +32 -0
  7. package/dist/282.js.map +1 -0
  8. package/dist/4055.js +1 -1
  9. package/dist/439.js +1 -0
  10. package/dist/6022.js +1 -1
  11. package/dist/6399.js +1 -1
  12. package/dist/6399.js.map +1 -1
  13. package/dist/6478.js +1 -0
  14. package/dist/6478.js.map +1 -0
  15. package/dist/6589.js +1 -0
  16. package/dist/8371.js +1 -0
  17. package/dist/8690.js +1 -1
  18. package/dist/8690.js.map +1 -1
  19. package/dist/8719.js +2 -0
  20. package/dist/{553.js.LICENSE.txt → 8719.js.LICENSE.txt} +0 -20
  21. package/dist/8719.js.map +1 -0
  22. package/dist/9538.js +1 -1
  23. package/dist/961.js +2 -0
  24. package/dist/961.js.LICENSE.txt +19 -0
  25. package/dist/961.js.map +1 -0
  26. package/dist/main.js +1 -1
  27. package/dist/main.js.map +1 -1
  28. package/dist/openmrs-esm-user-onboarding-app.js +1 -1
  29. package/dist/openmrs-esm-user-onboarding-app.js.buildmanifest.json +215 -95
  30. package/dist/openmrs-esm-user-onboarding-app.js.map +1 -1
  31. package/dist/routes.json +1 -1
  32. package/e2e/README.md +9 -7
  33. package/e2e/core/test.ts +1 -1
  34. package/e2e/fixtures/api.ts +1 -1
  35. package/e2e/pages/home-page.ts +2 -2
  36. package/e2e/specs/onboarding-test.spec.ts +8 -27
  37. package/jest.config.js +1 -0
  38. package/package.json +10 -10
  39. package/src/config-schema.ts +76 -112
  40. package/src/index.ts +1 -1
  41. package/src/root.component.tsx +32 -28
  42. package/src/routes.json +5 -5
  43. package/src/tooltip/tooltip.component.tsx +4 -8
  44. package/src/tooltip/tooltip.scss +16 -16
  45. package/src/tutorial/modal.component.tsx +16 -8
  46. package/src/tutorial/{modal.component.test.tsx → modal.test.tsx} +10 -8
  47. package/src/tutorial/styles.scss +7 -35
  48. package/src/tutorial/{tutorial.tsx → tutorial.component.tsx} +1 -5
  49. package/src/types.ts +15 -5
  50. package/translations/cs.json +9 -0
  51. package/translations/fr.json +7 -7
  52. package/translations/it.json +3 -3
  53. package/translations/ro_RO.json +7 -7
  54. package/translations/sq.json +9 -0
  55. package/translations/zh_TW.json +9 -0
  56. package/dist/553.js +0 -2
  57. package/dist/553.js.map +0 -1
  58. package/dist/5930.js +0 -2
  59. package/dist/5930.js.map +0 -1
  60. package/dist/6920.js +0 -1
  61. package/dist/6920.js.map +0 -1
  62. package/src/root.scss +0 -0
  63. /package/dist/{5930.js.LICENSE.txt → 1904.js.LICENSE.txt} +0 -0
package/.husky/pre-commit CHANGED
@@ -3,5 +3,5 @@
3
3
 
4
4
  set -e # die on error
5
5
 
6
- npx lint-staged
6
+ yarn lint-staged --no-stash
7
7
  yarn turbo extract-translations
package/README.md CHANGED
@@ -1,34 +1,83 @@
1
- ![Node.js CI](https://github.com/openmrs/openmrs-esm-template-app/workflows/Node.js%20CI/badge.svg)
1
+ ![OpenMRS CI](https://github.com/openmrs/openmrs-esm-user-onboarding/workflows/OpenMRS%20CI/badge.svg)
2
+
3
+ New to the Project? Check out the [O3 Developer Documentation](https://openmrs.atlassian.net/wiki/x/IABBHg)
2
4
 
3
5
  # OpenMRS ESM User Onboarding App
4
6
 
5
- This repository contains the user onboarding tutorials for OpenMRS3.
7
+ An interactive walkthrough system for O3 that provides guided tours and tutorials to help users learn the system. Built with React Joyride, it features multiple pre-configured tutorials covering essential workflows like patient registration, chart navigation, recording vitals and biometrics, and more.
8
+
9
+ ## Features
10
+
11
+ - **Interactive Guided Tours**: Step-by-step walkthroughs using spotlight highlighting and tooltips
12
+ - **Auto-progression**: Automatically advance to next step when target elements appear
13
+ - **Multiple Tutorials**: 8 pre-configured tutorials covering core OpenMRS workflows
14
+ - **Configurable**: Customize tutorials through OpenMRS configuration system
15
+ - **Smart Waiting**: Automatically waits for elements to load before proceeding
16
+ - **Interactive Elements**: Support for clickable elements during tutorials
17
+
18
+ ## Available Tutorials
19
+
20
+ 1. **Basic Overview** - Introduction to main dashboard and navigation
21
+ 2. **Registering a Patient** - Complete patient registration workflow
22
+ 3. **Patient Chart** - Navigate and understand patient chart features
23
+ 4. **Finding a Patient** - Search functionality and advanced filters
24
+ 5. **Patient Lists** - Create and manage patient lists
25
+ 6. **Recording Vitals** - Capture patient vitals and biometrics
26
+ 7. **Starting a Patient Visit** - Begin a patient encounter
27
+ 8. **Demo Tutorial** - Development and testing features
28
+
29
+ ## Development
6
30
 
7
- ## Running this code
31
+ ### Prerequisites
32
+
33
+ - Node.js (v22 or higher)
34
+ - Yarn package manager
35
+
36
+ ### Running locally
8
37
 
9
38
  ```sh
10
- yarn # to install dependencies
11
- yarn start # to run the dev server
39
+ yarn # install dependencies
40
+ yarn start # start development server
12
41
  ```
13
42
 
14
- ## Configuring steps
43
+ ## Configuration
44
+
45
+ Enable tutorials by setting `showTutorial: true` in your OpenMRS configuration. Customize tutorial content through the `tutorialData` configuration array.
46
+
47
+ ## Step Configuration
48
+
49
+ ### Basic Step Properties
50
+
51
+ Each tutorial step supports the following properties:
15
52
 
53
+ - `target`: CSS selector for the element to highlight
54
+ - `title`: Optional step title
55
+ - `content`: Step description text
56
+ - `placement`: Tooltip placement (`top`, `bottom`, `left`, `right`, `center`)
57
+ - `spotlightClicks`: Allow clicking on highlighted elements
58
+ - `disableOverlay`: Disable the dark overlay
16
59
 
60
+ ### UI Control Properties
17
61
 
18
- ### Auto transition steps
19
- To automatically transition to the next step when an element appears on the screen, you can add the autoTransition property to the step configuration. This property should be an object with the following properties:
62
+ - `hideBackButton`: Hide the back navigation button
63
+ - `hideNextButton`: Hide the next navigation button
64
+ - `hideFooter`: Hide the entire footer
65
+ - `hideCloseButton`: Hide the close button
20
66
 
21
- - `autoNextOn`: The selector of the element that should trigger the transition.
67
+ ### Auto-transition Steps
22
68
 
23
- Example usage:
69
+ Automatically advance when target elements appear:
24
70
 
25
71
  ```js
26
72
  {
27
- target: '',
28
- title: 'Title',
73
+ target: '[data-extension-id="some-target"]',
74
+ content: 'Click this button to continue',
75
+ spotlightClicks: true,
76
+ hideNextButton: true,
29
77
  data: {
30
- autoNextOn: '[data-extension-id="clinical-appointments-dashboard"]',
78
+ autoNextOn: '[data-extension-id="next-element"]'
31
79
  }
32
80
  }
33
81
  ```
34
82
 
83
+ The step will automatically proceed when the `autoNextOn` selector matches an element on the page.