@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.
- package/.husky/pre-commit +1 -1
- package/README.md +62 -13
- package/dist/1904.js +2 -0
- package/dist/1904.js.map +1 -0
- package/dist/282.js +2 -0
- package/dist/282.js.LICENSE.txt +32 -0
- package/dist/282.js.map +1 -0
- package/dist/4055.js +1 -1
- package/dist/439.js +1 -0
- package/dist/6022.js +1 -1
- package/dist/6399.js +1 -1
- package/dist/6399.js.map +1 -1
- package/dist/6478.js +1 -0
- package/dist/6478.js.map +1 -0
- package/dist/6589.js +1 -0
- package/dist/8371.js +1 -0
- package/dist/8690.js +1 -1
- package/dist/8690.js.map +1 -1
- package/dist/8719.js +2 -0
- package/dist/{553.js.LICENSE.txt → 8719.js.LICENSE.txt} +0 -20
- package/dist/8719.js.map +1 -0
- package/dist/9538.js +1 -1
- package/dist/961.js +2 -0
- package/dist/961.js.LICENSE.txt +19 -0
- package/dist/961.js.map +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-user-onboarding-app.js +1 -1
- package/dist/openmrs-esm-user-onboarding-app.js.buildmanifest.json +215 -95
- package/dist/openmrs-esm-user-onboarding-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/e2e/README.md +9 -7
- package/e2e/core/test.ts +1 -1
- package/e2e/fixtures/api.ts +1 -1
- package/e2e/pages/home-page.ts +2 -2
- package/e2e/specs/onboarding-test.spec.ts +8 -27
- package/jest.config.js +1 -0
- package/package.json +10 -10
- package/src/config-schema.ts +76 -112
- package/src/index.ts +1 -1
- package/src/root.component.tsx +32 -28
- package/src/routes.json +5 -5
- package/src/tooltip/tooltip.component.tsx +4 -8
- package/src/tooltip/tooltip.scss +16 -16
- package/src/tutorial/modal.component.tsx +16 -8
- package/src/tutorial/{modal.component.test.tsx → modal.test.tsx} +10 -8
- package/src/tutorial/styles.scss +7 -35
- package/src/tutorial/{tutorial.tsx → tutorial.component.tsx} +1 -5
- package/src/types.ts +15 -5
- package/translations/cs.json +9 -0
- package/translations/fr.json +7 -7
- package/translations/it.json +3 -3
- package/translations/ro_RO.json +7 -7
- package/translations/sq.json +9 -0
- package/translations/zh_TW.json +9 -0
- package/dist/553.js +0 -2
- package/dist/553.js.map +0 -1
- package/dist/5930.js +0 -2
- package/dist/5930.js.map +0 -1
- package/dist/6920.js +0 -1
- package/dist/6920.js.map +0 -1
- package/src/root.scss +0 -0
- /package/dist/{5930.js.LICENSE.txt → 1904.js.LICENSE.txt} +0 -0
package/.husky/pre-commit
CHANGED
package/README.md
CHANGED
|
@@ -1,34 +1,83 @@
|
|
|
1
|
-

|
|
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
|
-
|
|
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
|
-
|
|
31
|
+
### Prerequisites
|
|
32
|
+
|
|
33
|
+
- Node.js (v22 or higher)
|
|
34
|
+
- Yarn package manager
|
|
35
|
+
|
|
36
|
+
### Running locally
|
|
8
37
|
|
|
9
38
|
```sh
|
|
10
|
-
yarn #
|
|
11
|
-
yarn start #
|
|
39
|
+
yarn # install dependencies
|
|
40
|
+
yarn start # start development server
|
|
12
41
|
```
|
|
13
42
|
|
|
14
|
-
##
|
|
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
|
-
|
|
19
|
-
|
|
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
|
-
-
|
|
67
|
+
### Auto-transition Steps
|
|
22
68
|
|
|
23
|
-
|
|
69
|
+
Automatically advance when target elements appear:
|
|
24
70
|
|
|
25
71
|
```js
|
|
26
72
|
{
|
|
27
|
-
target: '',
|
|
28
|
-
|
|
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="
|
|
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.
|