Commit graph

144 commits

Author SHA1 Message Date
Dana Lambert
2302ed6fc6 Add utils file with helper methods to request data from linz + docs 2021-10-22 16:01:31 +13:00
Dana Lambert
473cc9ca6e Add sample step components for the remaining steps with accompaning text
- rename step subfolders from <name>step to <name>
2021-10-20 16:52:06 +13:00
Dana Lambert
06e33d7ac6 Some refactoring of existing information panels
- extracting out static strings where possible
- create StepInformation component
- rename step components to end in 'Step'
2021-10-20 16:15:15 +13:00
Dana Lambert
dd60ce03ee Fix spelling error for PlantRepository 2021-10-20 15:03:25 +13:00
Dana Lambert
2deb3faec0 Load previous soil variant selection during step navigation 2021-10-20 13:14:12 +13:00
Dana Lambert
6303bca92e Fix filter update method on frontend 2021-10-20 12:38:18 +13:00
Dana Lambert
72110cd19f Add all fields to plant serializer 2021-10-20 12:37:45 +13:00
Dana Lambert
cc3c3e7e9a Add soil variant filter 2021-10-20 12:36:48 +13:00
Dana Lambert
cb348b0f5d Fix soil variant spreadsheet import bug where all variants added 2021-10-20 12:36:06 +13:00
Dana Lambert
c4fdd04e8b Add soil variant step to the frontend
- Renamed location step folder
2021-10-20 09:51:49 +13:00
Dana Lambert
10ae4f46ce Modify frontend api call for plants to be filtered 2021-10-19 16:07:13 +13:00
Dana Lambert
12ebe31cf5 Add coordinate filter on the backend
- filters plants based on ecological region and soil order
2021-10-19 16:06:21 +13:00
Dana Lambert
aa3f9dc7f0 Display selected coordinates on the map in the top right 2021-10-19 16:04:04 +13:00
Dana Lambert
695aceaaa0 Place previously chosen location on map when going back 2021-10-19 10:42:48 +13:00
Dana Lambert
ef3d0e4d7e Set next active only when location is selected 2021-10-19 10:42:48 +13:00
Dana Lambert
5bef4efe36 Update filter state with clicked coordinates. 2021-10-19 10:42:48 +13:00
Dana Lambert
05665b545b Add marker to map on click with coordinate tooltip 2021-10-19 10:42:48 +13:00
Dana Lambert
19b2b00750 Fit map to NZ bounds on load 2021-10-19 10:42:48 +13:00
Dana Lambert
096c534536 Add map and description to location step with layout adjustments 2021-10-19 10:42:48 +13:00
Dana Lambert
d7a97dfb1d Add template Step component with configurable background image and content 2021-10-19 10:41:45 +13:00
Dana Lambert
aa95005fd2 Add header styled like Biosphere Capital site
- Adds Biosphere Capital logo
- Adds dummy nav with no dropdown links
2021-10-19 10:41:45 +13:00
Dana Lambert
530089c19c Add documentation to the spreadsheet processing methods 2021-10-19 10:39:07 +13:00
Dana Lambert
1cb7403f6f Update dev commands with docs 2021-10-15 15:20:14 +13:00
Dana Lambert
299e609c25 Add django command to populate the database with spreadsheet plant data 2021-10-15 14:40:14 +13:00
Dana Lambert
aa57c6e101 Add django command to populate the database with shapefile data 2021-10-15 14:39:03 +13:00
Dana Lambert
b02d7d50de Register models with django admin 2021-10-15 14:38:14 +13:00
Dana Lambert
d47416273d Add django fixtures for base data 2021-10-15 14:34:48 +13:00
Dana Lambert
e068ed047b Add relational models for plants and related fields (excludes habitat and zone) 2021-10-15 14:33:13 +13:00
Dana Lambert
6dfa65ee77 Add django gis extension 2021-10-15 14:31:52 +13:00
Dana Lambert
68b1d80ffa Modify stepper to be linear 2021-10-13 07:34:38 +13:00
Dana Lambert
0104af35f7 Add sample mui stepper 2021-10-07 15:39:12 +13:00
Dana Lambert
80d5b181d9 Add basic plant repository and demo page with plant list 2021-10-07 10:22:44 +13:00
Dana Lambert
9b17536102 Add axios library to frontend with base repository 2021-10-07 10:22:07 +13:00
Dana Lambert
b699e50754 Add django cors headers to backend 2021-10-07 10:17:32 +13:00
Dana Lambert
9faf762224 Create default django admin user on start up 2021-10-07 09:00:27 +13:00
Dana Lambert
bb307d34d2 Add django rest framework and basic plant model
- Adds django rest framework to requirements
- Adds basic plant model with id and name fields
- Adds CRUD endpoints to interact with plant objects
2021-10-07 08:59:57 +13:00
Dana Lambert
aedd224a63 Setup frontend styling
- Add node-sass, bootstrap and reactstrap
- Setup styles directory with themes file and base styles
- Replace create-react-app content with sample content to test styles
2021-10-06 16:18:01 +13:00
Dana Lambert
d98d395bdf Add development environment documentation to README 2021-10-06 14:53:51 +13:00
Dana Lambert
9fc83f5974 Connect database to Django backend 2021-10-06 14:37:29 +13:00
Dana Lambert
a66b8820df Add database initialisation scripts 2021-10-06 14:37:14 +13:00
Dana Lambert
0ea165fcff Add docker-compose file to run applications and postgres locally 2021-10-06 14:06:55 +13:00
Dana Lambert
fb3ad16b62 Add base React frontend project (create-react-app) 2021-10-06 12:36:39 +13:00
Dana Lambert
88f3331c46 Add base Django backend project 2021-10-06 12:36:07 +13:00
Dana Lambert
82a8d407e4 Initial commit 2021-10-06 12:28:07 +13:00