0.12.5 • Published 19 days ago

@inseefrlab/lunatic-edt v0.12.5

Weekly downloads
-
License
MIT
Repository
github
Last release
19 days ago

Technical documentation of Lunatic-EDT

General information

EDT is a ReactTS PWA front-end application. It was made to allow INSEE (French public services) to do surveys based on their own data management and treatment system. The opensource data engine made by INSEE is called Lunatic. The most reusable front-end components for any surveys such as input fields have been developped inside this project repository called Lunatic-Edt and is used as a library by EDT.

Linked repositories :

Lunatic EDT usage

This lib was designed to be integrated in the future inside another MUI reusable components lib of INSEE. This lib being in development at the time of EDT development, Lunatic-EDT was created to accelerate the process.

It contains all the survey "fields" components and an associated storybook documentation (please refer to Lunatic-EDT local install section to launch the storybook).

Install local development environment

Lunatic EDT local install

Clone the Lunatic-EDT project from github repository :

> git clone https://github.com/InseeFrLab/lunatic-edt

Install dependencies with Yarn :

> cd lunatic-edt
> yarn install

Init husky :

> npx husky install

:::info :information_source: Husky (https://typicode.github.io/husky/#/) is used in this project to ensure the quality of the repository. It is used to add git hooks and run it on each commit. In this project, it obligate the developer to commit meeting the conventional commit standards (https://github.com/conventional-changelog/commitlint/#what-is-commitlint). Husky also runs the yarn lint and yarn format commands to meet INSEE's code lint standards. :::

Run the storybook on local :

> yarn storybook

You should now be able to access the app on :

http://localhost:6006/

Style and CSS

Lunatic-EDT is using TSS-React (https://www.tss-react.dev/) that allows to include the style directly inside de tsx component file. It has been developed using css flex properties as much as possible. The style is made to be responsive and is working on mobile device, tablet or desktop.

Material UI (https://mui.com/) for React is used as much as possible. You will find the EDT material UI custom theme inside the Lunatic-EDT project under the src/ui/theme folder.

Qualimetry and Tests

Sonar

Sonar quality have been treated using INSEE default configuration. You can refer to the Github pipeline to see which configuration is used.

Unit Tests

JEST Unit tests have been done to cover the complexe Lunatic-EDT components such as ActivitySelecter or HourChecker. Run yarn test command inside Lunatic-EDT to execute the tests.

0.12.5

19 days ago

0.12.4

1 month ago

0.12.3

2 months ago

0.12.1

3 months ago

0.12.0

3 months ago

0.11.9

3 months ago

0.11.8

3 months ago

0.11.7

4 months ago

0.11.6

5 months ago

0.11.5

5 months ago

0.11.4

5 months ago

0.11.3

5 months ago

0.9.8

10 months ago

0.9.7

10 months ago

0.9.9

8 months ago

0.10.9

6 months ago

0.10.1

8 months ago

0.11.1

5 months ago

0.10.2

7 months ago

0.11.2

5 months ago

0.10.3

7 months ago

0.10.4

7 months ago

0.10.5

6 months ago

0.10.6

6 months ago

0.10.7

6 months ago

0.10.8

6 months ago

0.10.0

8 months ago

0.9.4

11 months ago

0.9.3

12 months ago

0.9.6

11 months ago

0.9.5

11 months ago

0.9.2

12 months ago

0.9.1

1 year ago

0.8.4

1 year ago

0.8.3

1 year ago

0.8.2

1 year ago

0.8.1

1 year ago

0.7.8

1 year ago

0.7.7

1 year ago

0.7.6

1 year ago

0.7.5

1 year ago

0.7.4

1 year ago

0.7.3

1 year ago

0.7.2

1 year ago

0.7.1

1 year ago

0.7.0

1 year ago

0.6.8

1 year ago

0.6.7

1 year ago

0.6.6

1 year ago