When contributing to this repository, please consider the following aspects
In order to make a release of the frontend, you need to create a tag in the repository. The tag should be named vX.Y.Z
where X.Y.Z
is the version number. The version number should follow semantic versioning. The tag should be created from the master
branch.
Before creating the tag, make sure to:
- Create a PR that updates the
love/package.json
file with the new version numberX.Y.Z
. - Check the
CHANGELOG.md
file is updated with the changes that are going to be released.
Once the PR is merged, create the tag with the following command:
git checkout develop
git pull
git checkout main
git pull
git merge --no-ff develop
git tag -a vX.Y.Z -m "Release vX.Y.Z"
git push origin vX.Y.Z
Container components implement the communication with Redux to obtain the available telemetry/event data. Container components:
- Should be named
component.container.jsx
- Should include and export a
schema
variable with the UIF configuration - Should provide a
subscriptions
prop with the telemetry/event subscription list, to be displayed in the telemetry/event raw data. Also, thecomponent.container.jsx
render method must include:
if (props.isRaw) {
return <SubscriptionTableContainer subscriptions={props.subscriptions}></SubscriptionTableContainer>;
}
The documentation is done with styleguide
. Its source code is located under love/docsrc
and compiled to docs/
according to the configuration file located at love/styleguide.config.js
.
- To edit the docs in a local server run
docker-compose exec frontend
# inside frontend container
yarn guide:start
and go to the pointed address.
- To create a production build in the
docs/
folder run
docker-compose exec frontend
# inside frontend container
yarn guide:build
- Some useful guides to edit the configuration:
-
General configuration
-
Documenting the source code