Commit graph

65 commits

Author SHA1 Message Date
Dana Lambert
71b4118b4c Add SiteRepository for habitat/zone related requests 2021-11-05 11:18:53 +13:00
Dana Lambert
42bd5845fa Fix typo in PlantRepository 2021-11-05 11:17:47 +13:00
Dana Lambert
2d20c3b2d2 Fix soil selector default value 2021-11-05 11:17:23 +13:00
Dana Lambert
06e6f4322c Add /habitats endpoint and fix plants zone serializer 2021-11-05 11:16:53 +13:00
Dana Lambert
b5b39a5c18 Alter the habitat image model to use a related name images 2021-11-05 11:13:59 +13:00
Dana Lambert
2f165e4b38 Fix load site data command ingestion logic and update fixtures 2021-11-04 15:00:50 +13:00
Dana Lambert
625c637f99 Add zones to plant fixture creation and extract spreadsheet constants 2021-11-04 14:11:50 +13:00
Dana Lambert
d48f202634 Add zones to plant model 2021-11-04 14:08:31 +13:00
Dana Lambert
34561a85bb Add intial zones and habitats fixtures 2021-11-04 11:18:56 +13:00
Dana Lambert
6b65ac77b3 Add command to initially load habitat and zone data 2021-11-04 11:18:42 +13:00
Dana Lambert
745b0b3007 Add Habitat, Zone, HabitatImage and ZoneImageSegment models 2021-11-04 11:18:04 +13:00
Dana Lambert
677ffb2c32 Add results table 2021-11-02 15:47:01 +13:00
Dana Lambert
05121fbdba Update reset operation to also reset filters 2021-11-02 11:30:36 +13:00
Dana Lambert
8638fd3041 Make step content scrollable overflow adjust results step
- Results step is now the last step but doesn't restrict the user from going back
2021-11-02 11:11:55 +13:00
Dana Lambert
039d8d14ec Update plant ingestion script for new spreadsheet format 2021-11-02 09:20:51 +13:00
Dana Lambert
8855bcb2ba Update commonname field to have a max_length of 200 2021-11-02 09:20:47 +13:00
Dana Lambert
bb561b0529 Add summary step to the wizard 2021-10-22 16:11:52 +13:00
Dana Lambert
727dfbe818 Layout adjustments 2021-10-22 16:11:42 +13:00
Dana Lambert
d3acc27339 Add location details to map screen 2021-10-22 16:03:37 +13:00
Dana Lambert
f3d2595b23 Add location repository for frontend 2021-10-22 16:02:36 +13:00
Dana Lambert
49bcc85116 Add api endpoints for collecting location details
- includes soil order name and code, ecological district, ecological region and address from linz
2021-10-22 16:01:38 +13:00
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