- Added graphs for all datastreams reported by each sensor. Graphs also respond to events triggered by the timelapse feature.
- Timelapse components conditionally render based on whether a sensor is selected and if the user is on the Inundation layer or not.
- Added a responsive heatmap as part of the Inundation layer.
- New look for the date-picker! The component now resembles the date-picker used by Google Flights.
- Minor UI and positioning changes to console components.
- A sensor's observations are now reset whenever new data is fetched form the API.
- Fixed the hover popup flickering issue for sensors at the edge of the screen.
- The graphs' tooltips sometimes cover the y-axis labels making text hard to read.
- The plot line that moves on the graphs as the timelapse advances may not disappear when the tooltip disappears.
- The x-axis date labels may have some text cut-off due to limited space.
- Water inundation values don't use actual LIDAR elevation data.
There is no special hardware configuration needed. On the software side, you require node
and yarn
installed on your machine. The project was developed using node v10.15.0
and yarn v1.15.2
however any LTS version of node
and any version of yarn
, respectively, should work.
A list of project dependencies can be found in the package.json
file.
Download this project from Github or clone it using git
:
git clone https://github.com/JIB-8352/chatham_smart_map.git
Once you have the project cloned, you may follow the following instructions to install dependencies, build the project and deploying it.
yarn install
yarn run serve
yarn run build
Note that warning are suppressed by default
yarn run test
yarn run build
yarn start & yarn run wait-on http://localhost:3000
Then, to open the Cypress Test Runner in interactive mode (recommended for debugging purposes):
yarn run cypress open
In the test runner, you can choose your browser and run all or specific tests. Alternatively, you run run tests headlessly (in Chrome):
yarn run cypress run --browser chrome
Note that Cypress tests can be a bit flaky and require the Sea Level Sensors API to be up and running. If you fail a Cypress test while the API is up, and you think that your code should not break the tests, re-running them might be a good idea.
All Cypress tests run by Travis CI are recorded and can be accessed at the Cypress dashboard.
yarn run lint
Note that by default, the master
branch of this repository gets deployed to Heroku whenever commits are made to the branch. The app is deployed to https://chatham-smart-map.herokuapp.com/
- If Cypress fails to install, you may need to do the following:
yarn install
yarn run cypress install
- If you encounter other errors with installing the package dependencies, switch to
node 10.15.0
. We recommend installing and usingnvm
to manage node versions.