Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgraded OTM With New Features #3313

Open
wants to merge 79 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
2496da7
issue-3286, beginning of integratin with inaturalist
tzinckgraf Feb 12, 2020
6202cee
issue-3287 - the start to adding labels
tzinckgraf Feb 26, 2020
955bb13
issue-3287, a typo fix and a migration
tzinckgraf Feb 29, 2020
919807a
Merge branch 'issue-3286' into develop
tzinckgraf Mar 19, 2020
30873f5
develop - fix auth to use only strings
tzinckgraf Mar 21, 2020
2aa3f31
created inat model, cant connect no username password
Mar 22, 2020
bfa214a
still need to add logging and test fixture/network mocks
Mar 22, 2020
b5d3e5a
fixture and network mock, still need to add logging
Mar 22, 2020
95d9dd5
docs and remove background_tasks
Mar 23, 2020
362a955
remove background task
Mar 23, 2020
0d7d96d
Merge pull request #1 from tzinckgraf/inat-pull
njason Mar 23, 2020
8cf5120
custom-fields-web, moved the custom fields on the website as well
tzinckgraf Mar 30, 2020
d528a27
Merge pull request #2 from tzinckgraf/custom-fields-web
tzinckgraf Apr 5, 2020
ff1db30
ui-fixes-for-demo-20200405 - various UI fixes, which include
tzinckgraf Apr 5, 2020
23182ff
Merge pull request #3 from tzinckgraf/ui-fixes-for-demo-20200405
tzinckgraf Apr 7, 2020
8be5831
ui-and-inaturalist-fixes-20200406 - fixed some debugger statements,
tzinckgraf Apr 7, 2020
0bfc1c2
Merge pull request #4 from tzinckgraf/ui-and-inaturalist-fixes-20200406
tzinckgraf Apr 11, 2020
e8338ef
embed-fixes-2000412, fixes for embed and the start of the file upload
tzinckgraf Apr 12, 2020
d5a5303
embed-fixes-20200412
tzinckgraf Apr 15, 2020
9edffb9
20200419_emails_and_embed - fixes and embedding
tzinckgraf Apr 20, 2020
319a115
20200419_emails_and_embed - required emails
tzinckgraf Apr 21, 2020
1362b54
Fixed a minor issues for multiple options
tzinckgraf Apr 26, 2020
4718df3
Fixed a bad field by popping instead of just getting the field
tzinckgraf Apr 26, 2020
7b13973
Removed another bad field
tzinckgraf Apr 26, 2020
ca8d0bf
20200506_stewardship_removal - added better email,
tzinckgraf May 7, 2020
0396733
20200506_stewardship_removal - only valildate certain fields on
tzinckgraf May 7, 2020
ef1dbe8
20200506_stewardship_removal
tzinckgraf May 8, 2020
2df9c82
20200506_stewardship_removal - the database is required field
tzinckgraf May 8, 2020
00a9f2d
20200506_stewardship_removal - remove a random template string in there
tzinckgraf May 8, 2020
4154dfb
20200506_stewardship_removal - fixed emails
tzinckgraf May 14, 2020
cb2f22f
20200518-user-profile-iNat-rate - remove profile and wait between
tzinckgraf May 19, 2020
5545056
20200518-user-profile-iNat-rate - a fix with duplicates on the upload
tzinckgraf May 20, 2020
81254e2
Merge pull request #5 from sustainablejc/20200518-user-profile-iNat-rate
tzinckgraf May 20, 2020
7c6d6c5
20200520-inaturalist-celery - use a celery task so workers do not time
tzinckgraf May 21, 2020
f902001
Merge pull request #6 from sustainablejc/20200520-inaturalist-celery
tzinckgraf May 21, 2020
79efb1c
20200526-empty-tree-pit - create empty tree pits and don't push empty
tzinckgraf May 27, 2020
433c4da
develop - better CSS for a longer logo, inaturalist integration query is
tzinckgraf Jun 1, 2020
dd2e8e2
develop
tzinckgraf Jun 8, 2020
baef20d
develop - add a layer for neighborhoods
tzinckgraf Jun 15, 2020
06f72be
feature-importedRows, add the imported rows as a new layer
tzinckgraf Jun 29, 2020
e593088
feature-inaturalist-set-captive
tzinckgraf Jun 29, 2020
6a042c1
Create Dockerfile for OTM
tzinckgraf Jul 6, 2020
6ab48c9
develop - Add two new shapefiles with the JC neighborhoods
tzinckgraf Jul 7, 2020
989875b
Merge branch 'develop' of github.com:sustainablejc/otm-core into develop
tzinckgraf Jul 7, 2020
d763e18
Script to migrate all images to S3
tzinckgraf Jul 13, 2020
93a98d1
7-group_and_group_export - create groups to prepare exports
tzinckgraf Jul 19, 2020
ad60b5e
7-group_and_group_export - create groups with some basic exports
tzinckgraf Jul 28, 2020
337ba0f
9-layers_and_layers add feature to use layers from the DB for boundaries
tzinckgraf Aug 10, 2020
b0d64d1
reports-20200813, all kinds of new reporting
tzinckgraf Aug 14, 2020
237a0c2
minor fix to allow expanding the page
tzinckgraf Aug 14, 2020
e5d9ae0
develop - added additional reporting
tzinckgraf Aug 15, 2020
5457eb9
develop - fixed the diameter report; removed Liberty State Park from the
tzinckgraf Aug 16, 2020
a20de53
develop - reporting fixes, including using actual wards
tzinckgraf Aug 16, 2020
73a622f
develop - fixed a typo in Species and an incorrect grouping
tzinckgraf Aug 17, 2020
a0a0d44
feature/dashboard, first draft at adding a public dashboard
tzinckgraf Sep 8, 2020
fbd651f
feature/parks_and_sids_aggregation - add some new aggregation levels
tzinckgraf Oct 13, 2020
deaa042
feature/resource-20201010 - fix up the Resources page
tzinckgraf Nov 11, 2020
a9b6e41
Squashed commit of the following:
tzinckgraf Apr 13, 2021
e067f1a
develop - finishing cleanup touches
tzinckgraf Apr 13, 2021
28aad13
develop, fixed the gear for login because there is no sign-up. fixed the
tzinckgraf May 3, 2021
98be801
develop - fix the margins on the dashboard
tzinckgraf May 7, 2021
65adf12
develop - fix the top padding
tzinckgraf May 7, 2021
4286bf3
develop - more padding fixes
tzinckgraf May 7, 2021
bf041e8
develop - edit and location movement working on iPhone by using
tzinckgraf May 23, 2021
41b8005
develop - embed is now working on new map. Removed the old map
tzinckgraf Jun 11, 2021
d3793c2
develop - smaller map icon, remove bad footer
tzinckgraf Jun 11, 2021
ff018ea
develop - embed to open links on new tab
tzinckgraf Jun 11, 2021
66f767f
develop - attempt to fix the offset
tzinckgraf Jul 14, 2021
f5a44cb
develop - try transforming the treemap model
tzinckgraf Jul 14, 2021
32e9d43
develop - added back the ability to submit to iNat. also added a script
tzinckgraf Jul 15, 2021
26e71e7
develop - fix bug with a transform
tzinckgraf Jul 21, 2021
577d8fa
develop - added the personal user dashboard
tzinckgraf Jul 26, 2021
91d3312
develop - added chart.js
tzinckgraf Jul 26, 2021
2489be0
develop - fixed creation after validation and creation of empty tree
tzinckgraf Jul 28, 2021
bb09aa6
develop - use marker reference instead of lat long for position
tzinckgraf Aug 7, 2021
1305363
develop - fixed some test cases and required fields on update
tzinckgraf Aug 12, 2021
ea35856
develop - fix ecobenefits report and change z-index to read labels
tzinckgraf Aug 18, 2021
fda74c7
Added a new layer option for Conditions. This matches a commit in the
tzinckgraf Aug 26, 2021
238f64b
Added a legend for the Tree Condition layer. This legend describes the
tzinckgraf Aug 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": [
"@babel/plugin-proposal-class-properties"
]
}
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# this is what we will be mounting for development
#**/opentreemap
**/node_modules
37 changes: 37 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM python:3.8

#RUN apt-get install -y software-properties-common && add-apt-repository -y ppa:ubuntu-toolchain-r/test

#checkinstall \
#libgdal1-dev \

RUN apt-get update \
&& apt-get install -y \
gettext \
libgeos-dev \
libproj-dev \
build-essential \
python3-dev \
python3-pip \
libfreetype6-dev \
binutils \
libproj-dev \
gdal-bin \
curl

RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && apt-get install -y nodejs

RUN npm install -g yarn

WORKDIR /usr/local/otm/app
# only copy what we need
COPY requirements.txt .
RUN pip install -r requirements.txt
# Bundle JS and CSS via webpack
RUN yarn --force

# then copy everything else
COPY . .
COPY docker/local_settings.py /usr/local/otm/app/opentreemap/opentreemap/settings/local_settings.py

RUN mkdir -p /usr/local/otm/static && mkdir -p /usr/local/otm/media && mkdir -p /usr/local/otm/emails
3 changes: 3 additions & 0 deletions MIGRATE-PYTHON3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
These are notes for migrating to python3

https://github.com/coderholic/django-cities/issues/184
Empty file added __init__.py
Empty file.
3 changes: 2 additions & 1 deletion assets/css/sass/_base.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Where assets used in url(...) are
$staticUrl: '../../' !default;
//$staticUrl: '../../' !default;
$staticUrl: '../../';

// Fonts
@import url(//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700|Roboto:100,400,700);
Expand Down
8 changes: 4 additions & 4 deletions assets/css/sass/partials/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@
position: relative;

img {
max-width: 300px;
max-width: 700px;
max-height: 78px;
}
}

.instance-header .logo {
@media #{$screen-ltmd} {
display: none;
}
//@media #{$screen-ltmd} {
// display: none;
//}
}

.toolbar-wrapper {
Expand Down
20 changes: 19 additions & 1 deletion assets/css/sass/partials/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ body {
position: absolute;
overflow: hidden;
margin: 0;
top: 196px;
top: 210px;
width: 100%;

left: 0;
Expand Down Expand Up @@ -219,6 +219,14 @@ body {
background: $light-gray-color;
border-radius: 6px;

// this is from the old bootstrap
min-height: 20px;
padding: 19px;
margin-bottom: 20px;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);

> :last-child {
margin-bottom: 0;
}
Expand Down Expand Up @@ -355,4 +363,14 @@ body {
height: calc(100% - #{$navbar-height});
}
}

// with react, we cannot easily add the above to the DOM,
// so we solve that by adding to these elements
.header.hide-search {
margin-top: -90px;
}
.content.explore-map.hide-search {
margin-top: 9px;
height: calc(100% - #{$navbar-height});
}
}
7 changes: 7 additions & 0 deletions assets/css/sass/partials/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@
margin-right: 15px;
}

&.mr-auto {
margin-left: 5px;
}
&.ml-auto {
margin-right: 30px;
}

> li {
margin-left: 20px;
height: #{$navbar-height - 1px};
Expand Down
10 changes: 9 additions & 1 deletion assets/css/sass/partials/pages/_addtree.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
}

.add-step-header:before {
content: counter(steps) ". ";
//content: counter(steps) ". ";
counter-increment: steps;
}
.add-step-header {
Expand Down Expand Up @@ -256,6 +256,10 @@
}
}

.photo-success {
background: $primary-color
}

@include checkboxes;
}
.add-step-footer {
Expand Down Expand Up @@ -315,3 +319,7 @@
}
}
}

.react-datepicker-popper {
z-index: 3 !important
}
36 changes: 36 additions & 0 deletions assets/css/sass/partials/pages/_map.scss
Original file line number Diff line number Diff line change
Expand Up @@ -302,3 +302,39 @@ $light-to-dark-green: #ffffff 10%,
}
}
}

.leaflet-control-layers:nth-child(2) .leaflet-control-layers-toggle {
background-image: url(#{$staticUrl}img/map_layers_icon.png);
}

// for all our legend information
.info
{
padding: 6px 8px;
font: 13px/16px Verdana, Geneva, sans-serif;
background: white;
background: rgba(255,255,255,0.8);
box-shadow: 0 0 15px rgba(0,0,0,0.2);
border-radius: 10px;
}

.legend {
line-height: 19px;
padding:7px;
color: #555;
}

.legend i {
width: 15px;
height: 15px;
float: left;
margin-right: 8px;
opacity: 0.7;
}

.circle
{
float: left;
border: 1px solid #222;
border-radius: 50%;
}
2 changes: 2 additions & 0 deletions assets/css/sass/partials/pages/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
width: 100%;
position: static;
flex: 0 1 auto;
// tzinckgraf
overflow-y: auto;
}

> div {
Expand Down
20 changes: 18 additions & 2 deletions assets/css/sass/partials/pages/_treedetails.scss
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,10 @@
background: darken($light-gray-color, 5%);
border-radius: 9px;

.item {
.carousel-item {
.inspect-photo {
display: block;
text-align: center;
img {
width: auto;
height: auto;
Expand All @@ -192,14 +193,29 @@
font-size: 3rem;
opacity: 0;
position: absolute;
right: 0px;
right: 25px;
top: 0px;

}
&:hover .delete-photo {
display: block;
opacity: .9;
}
.photo-label {
position: absolute;
left: 6px;
top: 6px;
opacity: 0.85;
width: auto;
background: black;
color: white;
border: none;
transition: opacity 0.3s;
z-index: 999;
padding: 5px 12px;
font-size: 1.2rem !important;
border-radius: 6px;
}
}
}
> a.carousel-control {
Expand Down
Loading