2.21.0 • Published 22 hours ago

@careevolution/mydatahelps-ui v2.21.0

Weekly downloads
-
License
MIT
Repository
github
Last release
22 hours ago

MyDataHelpsUI

MyDataHelpsUI is a set of reusable React-based components based on the MyDataHelps.js SDK. Explore the component library at ui.mydatahelps.org.

Utilize this component library to accelerate the development of custom participant views for your digital clinical trial and digital therapeutic application powered by MyDataHelps platform. Integrating MyDataHelpsUI will help you follow best practices for implementing return of results and eCOA within your participant views.

You may also find MyDataHelpsStarterKit to be helpful. The starter kit is a react web app template designed for you to be able to fork/clone as a starting point for developing your custom view.

Install via:

npm install @careevolution/mydatahelps-ui

Example of how to use MyDataHelpsUI in your Participant View

import { Action, Card, Layout, SurveyTaskList } from "@careevolution/mydatahelps-ui"

export default function () {
  return (
    <Layout>
        <Card className='primary-card'>
            <Action
            title="Do you think you have COVID-19?"
            subtitle="It's important to tell us immediately if might have COVID-19.  Click or tap here to report a new infection, symptoms, or close contact."
            onClick={() => MyDataHelps.startSurvey('New COVID Infection')} />
        </Card>
        <Card>
            <SurveyTaskList status="incomplete" title="Tasks" limit={3} />
        </Card>
    </Layout>
    );

© CareEvolution, LLC

Storybook

This library uses Storybook. To look at examples, visit ui.mydatahelps.org.

To run Storybook previews with data from one of your test MyDataHelps participants:

  1. Clone this repo
  2. Get a participant access token - either using browser dev tools while logged in as a test participant at mydatahelps.org, or by using the REST API.
  3. Create a .env file in your root directory with the token details
.env
-----
PARTICIPANT_ACCESS_TOKEN=05e211e4df46ca7537e064bde44148a7 
  1. Run npm ci to install dependencies.
  2. Run npm run storybook to view the storybook.

If you have issues getting storybook to run, particularly around the NODE_OPTIONS being used, try upgrading Node to the latest version.

Components

The components fall into 3 categories:

Presentational Components

Presentational components do NOT fetch data to populate themselves. They are the underlying UI building blocks of the views and connected components. These are things such as buttons, cards, and a display for a single survey task.

Container Components

Container components fetch data via the MyDataHelps.js SDK. These components will only function if used in a view inside MyDataHelps or via manually passing an access token to the SDK.

Views

Views pull the sets of Container and Presentational Components together into fully pre-built experiences. For instance, the "Home View" contains multiple connected components in one:

  • ProjectHeader
  • MostRecentNotification
  • SurveyTaskList
  • ProjectSupport
2.21.0

22 hours ago

2.20.0

3 days ago

2.20.1

3 days ago

2.18.1-RA.7

7 days ago

2.18.1-RA.11

7 days ago

2.18.1-RA.10

7 days ago

2.18.1-RA.9

7 days ago

2.18.1-RA.8

7 days ago

2.18.1-RA.6

9 days ago

2.19.0

11 days ago

2.18.1-RA.3

15 days ago

2.18.1-RA.2

15 days ago

2.18.1-RA.1

15 days ago

2.18.1-RA.0

15 days ago

2.18.1-RA.5

15 days ago

2.18.1-RA.4

15 days ago

2.18.0

24 days ago

2.17.0

1 month ago

2.16.0

2 months ago

2.15.0

2 months ago

2.14.0

2 months ago

2.13.1-bloodtype.0

2 months ago

2.12.1-bloodtype.1

2 months ago

2.13.1-Main.0

2 months ago

2.13.0

2 months ago

2.12.0

3 months ago

2.9.1-AsthmaUI.92

3 months ago

2.9.1-AsthmaUI.93

3 months ago

2.9.1-AsthmaUI.91

3 months ago

2.9.1-AsthmaUI.85

3 months ago

2.9.1-AsthmaUI.86

3 months ago

2.9.1-AsthmaUI.87

3 months ago

2.9.1-AsthmaUI.88

3 months ago

2.9.1-AsthmaUI.89

3 months ago

2.9.1-AsthmaUI.81

3 months ago

2.9.1-AsthmaUI.82

3 months ago

2.9.1-AsthmaUI.83

3 months ago

2.9.1-AsthmaUI.84

3 months ago

2.9.1-AsthmaUI.90

3 months ago

2.9.1-AsthmaUI.80

3 months ago

2.9.1-AsthmaUI.78

3 months ago

2.9.1-AsthmaUI.79

3 months ago

2.9.1-AsthmaUI.76

3 months ago

2.9.1-AsthmaUI.77

3 months ago

2.9.1-AsthmaUI.74

3 months ago

2.9.1-AsthmaUI.75

3 months ago

2.9.1-AsthmaUI.72

3 months ago

2.9.1-AsthmaUI.73

3 months ago

2.11.0

3 months ago

2.9.1-AsthmaUI.66

3 months ago

2.9.1-AsthmaUI.67

3 months ago

2.9.1-AsthmaUI.68

3 months ago

2.9.1-AsthmaUI.69

3 months ago

2.9.1-AsthmaUI.70

3 months ago

2.9.1-AsthmaUI.71

3 months ago

2.9.1-AsthmaUI.65

4 months ago

2.9.1-AsthmaUI.64

4 months ago

2.10.1-InboxUI.0

4 months ago

2.9.1-AsthmaUI.60

4 months ago

2.9.1-AsthmaUI.61

4 months ago

2.9.1-AsthmaUI.62

4 months ago

2.9.1-AsthmaUI.58

4 months ago

2.9.1-AsthmaUI.59

4 months ago

2.9.1-AsthmaUI.52

4 months ago

2.9.1-AsthmaUI.53

4 months ago

2.9.1-AsthmaUI.54

4 months ago

2.9.1-AsthmaUI.55

4 months ago

2.9.1-AsthmaUI.56

4 months ago

2.9.1-AsthmaUI.57

4 months ago

2.9.1-AsthmaUI.50

4 months ago

2.9.1-AsthmaUI.51

4 months ago

2.9.1-AsthmaUI.41

4 months ago

2.9.1-AsthmaUI.42

4 months ago

2.9.1-AsthmaUI.43

4 months ago

2.9.1-AsthmaUI.44

4 months ago

2.9.1-AsthmaUI.45

4 months ago

2.9.1-AsthmaUI.46

4 months ago

2.9.1-AsthmaUI.47

4 months ago

2.9.1-AsthmaUI.48

4 months ago

2.9.1-AsthmaUI.49

4 months ago

2.10.0

4 months ago

2.9.1-AsthmaUI.37

5 months ago

2.9.1-AsthmaUI.38

5 months ago

2.9.1-AsthmaUI.39

5 months ago

2.9.1-AsthmaUI.36

5 months ago

2.9.1-AsthmaUI.32

5 months ago

2.9.1-AsthmaUI.33

5 months ago

2.9.1-AsthmaUI.34

5 months ago

2.9.1-AsthmaUI.35

5 months ago

2.9.1-AsthmaUI.27

5 months ago

2.9.1-AsthmaUI.28

5 months ago

2.9.1-AsthmaUI.29

5 months ago

2.9.1-AsthmaUI.22

5 months ago

2.9.1-AsthmaUI.23

5 months ago

2.9.1-AsthmaUI.25

5 months ago

2.9.1-AsthmaUI.26

5 months ago

2.9.1-AsthmaUI.20

5 months ago

2.9.1-AsthmaUI.21

5 months ago

2.9.1-AsthmaUI.17

5 months ago

2.9.1-AsthmaUI.18

5 months ago

2.9.1-AsthmaUI.19

5 months ago

2.9.1-AsthmaUI.11

5 months ago

2.9.1-AsthmaUI.12

5 months ago

2.9.1-AsthmaUI.13

5 months ago

2.9.1-AsthmaUI.14

5 months ago

2.9.1-AsthmaUI.15

5 months ago

2.9.1-AsthmaUI.16

5 months ago

2.9.1-AsthmaUI.9

5 months ago

2.9.1-AsthmaUI.10

5 months ago

2.9.1-AsthmaUI.4

5 months ago

2.9.1-AsthmaUI.3

5 months ago

2.9.1-AsthmaUI.6

5 months ago

2.9.1-AsthmaUI.5

5 months ago

2.9.1-AsthmaUI.8

5 months ago

2.9.1-AsthmaUI.7

5 months ago

2.9.1-AsthmaUI.0

5 months ago

2.9.1-AsthmaUI.2

5 months ago

2.9.1-AsthmaUI.1

5 months ago

2.9.1-Issue139.0

5 months ago

2.9.1-Issue139.2

5 months ago

2.9.1-Issue139.1

5 months ago

2.9.1-Issue139.4

5 months ago

2.9.1-Issue139.3

5 months ago

2.9.1-Issue139.5

5 months ago

2.4.0

8 months ago

2.8.1

7 months ago

2.8.0

7 months ago

2.5.1-InnerRef.0

8 months ago

2.3.0

9 months ago

2.7.0

7 months ago

2.7.2

7 months ago

2.7.1

7 months ago

2.4.1-Points.5

8 months ago

2.2.1-VB3.3

9 months ago

2.4.1-Points.6

8 months ago

2.2.1-VB3.4

9 months ago

2.2.1-VB3.5

9 months ago

2.2.1-VB3.6

9 months ago

2.4.1-Points.1

8 months ago

2.2.1-VB3.7

9 months ago

2.4.1-Points.2

8 months ago

2.2.1-VB3.8

9 months ago

2.4.1-Points.3

8 months ago

2.2.1-VB3.9

9 months ago

2.4.1-Points.4

8 months ago

2.8.2

7 months ago

2.4.1-Points.0

8 months ago

2.2.1-VB3.0

9 months ago

2.2.1-VB3.1

9 months ago

2.2.1-VB3.2

9 months ago

2.2.1-VB3.12

9 months ago

2.2.1-VB3.13

9 months ago

2.2.1-VB3.14

9 months ago

2.2.1-VB3.15

9 months ago

2.2.1-VB3.10

9 months ago

2.2.1-VB3.11

9 months ago

2.2.1-VB3.16

8 months ago

2.2.1-VB3.17

8 months ago

2.2.0

10 months ago

2.6.1

8 months ago

2.6.0

8 months ago

2.7.4

7 months ago

2.7.1-Colors.2

7 months ago

2.7.3

7 months ago

2.7.1-Colors.1

7 months ago

2.7.1-Colors.0

7 months ago

2.7.5

7 months ago

2.2.1-VB2.0

10 months ago

2.7.1-Colors.5

7 months ago

2.2.1-VB2.1

10 months ago

2.7.1-Colors.4

7 months ago

2.2.1-VB2.2

10 months ago

2.7.1-Colors.3

7 months ago

2.2.1-VB2.3

10 months ago

2.2.1-VB.0

10 months ago

2.2.1-VB.1

10 months ago

2.2.1-VB.2

10 months ago

2.2.1-VB.3

10 months ago

2.5.0

8 months ago

2.9.0

6 months ago

2.1.1

11 months ago

2.1.0

11 months ago

1.12.3

12 months ago

1.12.2

12 months ago

1.12.1

12 months ago

1.12.0

12 months ago

1.12.4

12 months ago

2.0.1

12 months ago

2.0.0

12 months ago

1.10.5

1 year ago

1.10.3

1 year ago

1.10.6

1 year ago

1.11.0

1 year ago

1.10.2

1 year ago

1.9.1

1 year ago

1.9.0

1 year ago

1.8.4

1 year ago

1.8.3

1 year ago

1.10.1

1 year ago

1.10.0

1 year ago

1.8.2

1 year ago

1.8.1

1 year ago

1.8.0

1 year ago

1.7.1

1 year ago

1.7.0

1 year ago

1.6.0

1 year ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.5.7

2 years ago

1.5.6

2 years ago

1.4.1

2 years ago

1.3.7

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago