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

v6.9.0 #2236

Merged
merged 232 commits into from
Sep 17, 2020
Merged

v6.9.0 #2236

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
232 commits
Select commit Hold shift + click to select a range
00f39a1
improve load times after changes from within Docker container
athersharif Feb 15, 2019
6dc8f82
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Feb 22, 2019
05f68a2
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Feb 25, 2019
dceca32
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Feb 28, 2019
9c375f0
Add clickable button to clear internal cache in admin overview interface
MattJ12 Jun 27, 2020
b4ad6c8
Displaying the user's total validations on the mission complete page.
shokiami Jul 2, 2020
8ecd5dc
Cleaned up code and added functionality for mobile.
shokiami Jul 4, 2020
ad10aeb
Fixed overflow issue of the mobile info page.
shokiami Jul 4, 2020
9a16d7e
Resolves issue
nomichka Jul 6, 2020
0aa1abd
Slightly enlarged statux-box element to better fit pictures.
shokiami Jul 6, 2020
e33f1e3
Lists collaborators per city
jstadeusiak Jul 6, 2020
aa83322
Spacing and syntax adjustments
jstadeusiak Jul 6, 2020
8f694ca
Mouseover shows popup
jstadeusiak Jul 7, 2020
c1fe8c0
#1817: Fixed Notes and Temporary_Label_Id columns
rpechuk Jul 7, 2020
ce52aab
Fixed mobile feedback zoom in issue.
shokiami Jul 7, 2020
139c98b
Mouseover for other choropleths
jstadeusiak Jul 8, 2020
a77d4ca
Update Choropleth.js
jstadeusiak Jul 8, 2020
138b583
Update LabelMap.js
jstadeusiak Jul 8, 2020
3090572
Merge branch '2130-missioncomplete-show-total-validations' of https:/…
shokiami Jul 9, 2020
18d3d15
Just some fixes I missed.
shokiami Jul 9, 2020
59d1f1d
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Jul 9, 2020
dfdb3a6
Test if newline is working...
shokiami Jul 9, 2020
767f7eb
Testing newline setting
shokiami Jul 9, 2020
8ef2a9c
fixes bug with mobile translations
misaugstad Jul 9, 2020
8f1b66c
fixes bug with date formatting on admin user page
misaugstad Jul 9, 2020
ef00e92
Final newline test
shokiami Jul 9, 2020
0d031f1
Merge pull request #2166 from ProjectSidewalk/2148-List-collborators-…
misaugstad Jul 9, 2020
a15d119
Alright, I think I got everything...?
shokiami Jul 9, 2020
f7c69b0
Added some padding to the feedback button.
shokiami Jul 9, 2020
7602606
Merge pull request #2163 from ProjectSidewalk/2130-missioncomplete-sh…
misaugstad Jul 9, 2020
53073f7
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Jul 9, 2020
dcb507a
#12: added changes to legend and chart
rpechuk Jul 9, 2020
1e037f4
#1817: fixed the logging issue with mouse movements after RemoveLabel
rpechuk Jul 10, 2020
fc5f7c6
Merge branch 'develop' into 2104-admin-clear-internal-cache
MattJ12 Jul 10, 2020
88e6622
Adds function to AdminController.scala that clears the internal cache…
MattJ12 Jul 10, 2020
047e7ee
Creates an onclick button that triggers the clearing of the internal …
MattJ12 Jul 10, 2020
309f2f2
Adds 'es' and 'en' translations for the button to clear the internal …
MattJ12 Jul 10, 2020
6bea485
Adds function clearInternalCache() to Admin.js that uses ajax to hand…
MattJ12 Jul 10, 2020
6121331
Adds 'en-US', 'en', and 'es' translations for the success method when…
MattJ12 Jul 10, 2020
f8adab6
Adds route for the /adminapi/clearInternalCache request
MattJ12 Jul 10, 2020
953740f
Updates Clear Internal Caches button
MattJ12 Jul 10, 2020
b5e9510
Might be a bit hacky to just delete that whole segment of if a path d…
nomichka Jul 14, 2020
357273d
Deletes comment
nomichka Jul 14, 2020
986a52a
Deletes accidental changes
nomichka Jul 14, 2020
f11ccef
Removed faint lines under status-box elements in the mobile info page.
shokiami Jul 14, 2020
38ee5e2
Fixed label disappearing on mouseover on Safari.
shokiami Jul 14, 2020
6eb7bb2
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Jul 14, 2020
961f6fe
Merge pull request #2165 from ProjectSidewalk/1879-infopage-feedback-…
misaugstad Jul 14, 2020
c1ec3ad
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Jul 14, 2020
1ef84e7
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Jul 14, 2020
f6bda3f
deleted -2 from col-md-2, fixed a typo in localDate.format, and added…
nomichka Jul 14, 2020
7471a96
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Jul 15, 2020
b5d0e2b
Merge pull request #2174 from ProjectSidewalk/2142-minimap-returned-m…
misaugstad Jul 15, 2020
cb8c471
Merge branch 'develop' into 2104-admin-clear-internal-cache
MattJ12 Jul 15, 2020
f033daa
Updates method name to be clearPlayCache()
MattJ12 Jul 15, 2020
90b4d30
Update Play template to call correct method and translate correctly
MattJ12 Jul 15, 2020
d4599f0
Updates Messages translation files to refer to a cache correctly
MattJ12 Jul 15, 2020
d40e9ec
Update routes to route to correct method name
MattJ12 Jul 15, 2020
3f11f16
Updates Ajax function in Admin.js to have correct method name and acc…
MattJ12 Jul 15, 2020
383a307
Update i18next namespace files to refer to a cache correctly
MattJ12 Jul 15, 2020
4ed8959
Merge branch '2104-admin-clear-internal-cache' of https://github.com/…
MattJ12 Jul 15, 2020
fbcec1b
Merge pull request #2173 from ProjectSidewalk/2104-admin-clear-intern…
misaugstad Jul 15, 2020
ac9f7c5
Rest of Choropleths
jstadeusiak Jul 15, 2020
576856a
Commit with issues
nomichka Jul 15, 2020
3835a7e
#1817: added label type to ClickLabel_Delete action and fixed temp id…
rpechuk Jul 16, 2020
2dcf273
Merge branch '1817-Audit-Add-LabelType-and-TempId' of https://github.…
rpechuk Jul 16, 2020
79bf4c3
#1817: removed debug calls
rpechuk Jul 16, 2020
c8fee2b
Made expand button hidden
jstadeusiak Jul 16, 2020
bb449f6
Bottom right map icon hidden
jstadeusiak Jul 17, 2020
143aaa3
Fixes issue by finishing translations
nomichka Jul 18, 2020
73bfa06
Fix stylistic error
nomichka Jul 18, 2020
cdb933d
Prevents iPhones from zooming in to feedback text box.
Jul 18, 2020
fa441e0
#2144: added Data button to navbar
rpechuk Jul 21, 2020
6677ffb
#2144: fixed see results message
rpechuk Jul 21, 2020
c081e1f
If the user is a Turker, then delete the current region.
shokiami Jul 22, 2020
959a937
Replaced method of checking user role.
shokiami Jul 22, 2020
864ea23
Merge branch 'develop' into 2124-admin-add-actual-total-distance-audited
nomichka Jul 25, 2020
e5c31c7
Creates labeling gifs, font differentiation for captions, and removes…
nomichka Jul 26, 2020
d0c4103
Adding file
nomichka Jul 26, 2020
34054c3
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Jul 27, 2020
8e54ad0
Merge pull request #2169 from ProjectSidewalk/933-Mouseover-choroplet…
misaugstad Jul 27, 2020
bafd85b
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Jul 27, 2020
5ea8c02
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Jul 27, 2020
58524ee
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Jul 27, 2020
a8db59a
Merge pull request #2179 from ProjectSidewalk/1221-non-functional-min…
misaugstad Jul 27, 2020
173d240
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Jul 27, 2020
993e4a3
Merge pull request #2171 from ProjectSidewalk/1878-mobile-feedback-zo…
misaugstad Jul 27, 2020
108c17a
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Jul 27, 2020
89c48db
Adding change to remove whitespace (forgot to add earlier)
nomichka Jul 27, 2020
fe69096
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Jul 27, 2020
fad6480
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Jul 27, 2020
5266458
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Jul 27, 2020
7a11ef1
add id to td
nomichka Jul 27, 2020
3843706
Added floating sidebar
nomichka Jul 27, 2020
1835503
Delete unneeded imports
nomichka Jul 27, 2020
4d141f5
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Jul 27, 2020
4566d58
Merge pull request #2180 from ProjectSidewalk/2124-admin-add-actual-t…
misaugstad Jul 27, 2020
989dea4
added new city suggestion triage to README
misaugstad Jul 28, 2020
a334a9a
added suggested plugins in README
misaugstad Jul 28, 2020
365d689
Create pull_request_template.md
shokiami Jul 28, 2020
5156581
Create issue_template.md
shokiami Jul 28, 2020
817c8b2
Rename issue_template.md to ISSUE_TEMPLATE.md
shokiami Jul 28, 2020
f4b446d
Rename pull_request_template.md to PULL_REQUEST_TEMPLATE.md
shokiami Jul 28, 2020
bc0b8fb
adds database dumps to .gitignore
misaugstad Jul 28, 2020
9191706
Merge pull request #2193 from ProjectSidewalk/2191-README-triage-new-…
misaugstad Jul 28, 2020
d300526
updates backbone and underscore js libraries
misaugstad Jul 29, 2020
f19545e
Generic Skyline with cloud overlay
jstadeusiak Jul 29, 2020
01fe133
Update main.css
jstadeusiak Jul 29, 2020
5848e2b
FIxed bugs with sidebar
nomichka Jul 29, 2020
835d0e5
Merge branch '1239-labeling-guide-to-dos-2' of https://github.com/Pro…
nomichka Jul 29, 2020
106c51e
Add newline to end of file
nomichka Jul 30, 2020
e299a7d
adds configs for Pittsburgh server
misaugstad Jul 30, 2020
db7872b
Merge pull request #2196 from ProjectSidewalk/1626-new-city-pittsburgh
misaugstad Jul 30, 2020
fd7f236
#2144: fixed spacing, navbar collapsing, and added spanish translation
rpechuk Jul 30, 2020
46bebd0
Merge branch '2144-NavBar-Add-Data-Dropdown' of https://github.com/Pr…
rpechuk Jul 30, 2020
bbdd19e
test and prod servers get different google analytics ids
misaugstad Jul 30, 2020
262acaf
test servers now link to other test servers on landing page
misaugstad Jul 31, 2020
9f3b8c9
Merge pull request #2200 from ProjectSidewalk/2113-logging-separate-t…
misaugstad Jul 31, 2020
f9be7be
fixes multiple HTML elements having same ID
misaugstad Jul 31, 2020
747034e
Merge pull request #2201 from ProjectSidewalk/2040-warning-fix-html-d…
misaugstad Jul 31, 2020
0c130dd
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Jul 31, 2020
6efa8a7
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Jul 31, 2020
8e5ffa7
Merge pull request #2187 from ProjectSidewalk/1783-safari-labels-disa…
misaugstad Jul 31, 2020
25964a6
Changed it so that the turker is only rerouted if they have less than…
shokiami Jul 31, 2020
d4557b9
Merge branch 'develop' into 2155-Generic-Skyline
jstadeusiak Jul 31, 2020
8aeb43f
Audio now working in Safari!
shokiami Aug 2, 2020
c9d4604
Loading the audio is necessary in Safari.
shokiami Aug 2, 2020
c05e1db
Readded original .wav audio files.
shokiami Aug 2, 2020
e7dba29
Removed audio delay due to loading.
shokiami Aug 3, 2020
9ea8c1c
Making the sidebar itself scrollable
nomichka Aug 3, 2020
bb6b070
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Aug 3, 2020
e874668
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Aug 3, 2020
db54f8e
Changed method name and changed return type to Option[Float].
shokiami Aug 3, 2020
b5c63e1
updates PR template
misaugstad Aug 3, 2020
e3a7f67
Cleaning up some formatting.
shokiami Aug 3, 2020
76afdb5
updates Github issue template
misaugstad Aug 3, 2020
497072a
Merge pull request #2192 from ProjectSidewalk/2190-pr-issue-template
misaugstad Aug 3, 2020
63c8e2d
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Aug 3, 2020
c18ed07
Merge pull request #2186 from ProjectSidewalk/2158-turkers-audit-refr…
misaugstad Aug 4, 2020
d83294c
Making scrollbar of sidebar draggable
nomichka Aug 4, 2020
2fea7ec
Adding comments, assigning variable names to hard-coded numbers.
nomichka Aug 4, 2020
741bf70
Merge branch '1239-labeling-guide-to-dos-2' of https://github.com/Pro…
nomichka Aug 4, 2020
435809d
Merge branch 'develop' into 2155-Generic-Skyline
jstadeusiak Aug 4, 2020
60ccd2a
#2144: fixed sign in button
rpechuk Aug 4, 2020
fdc6701
Merge branch '2144-NavBar-Add-Data-Dropdown' of https://github.com/Pr…
rpechuk Aug 4, 2020
5285559
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Aug 4, 2020
d469cfb
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Aug 4, 2020
6e06540
Updated comment for loading audio early.
shokiami Aug 5, 2020
c5ae70f
Merge pull request #2202 from ProjectSidewalk/2176-safari-no-audio
misaugstad Aug 5, 2020
7bdab17
Merge branch '2155-Generic-Skyline' of https://github.com/ProjectSide…
jstadeusiak Aug 5, 2020
cc16f57
Generic Cityscape styling
jstadeusiak Aug 5, 2020
21d0212
Removed Extra PNG
jstadeusiak Aug 5, 2020
05d658f
Removed another png
jstadeusiak Aug 5, 2020
82faecd
Fix bug when expanding sidebar at the bottom, add CSS classes
nomichka Aug 5, 2020
498f706
Merge branch '1239-labeling-guide-to-dos-2' of https://github.com/Pro…
nomichka Aug 5, 2020
3e00ca7
Delete unnecessary code
nomichka Aug 5, 2020
7c853f2
Fix bug where the last sidebar subtopic would be cut off a bit.
nomichka Aug 5, 2020
f6111dd
#12: fixed wrapping issue and added to admin dashboard
rpechuk Aug 6, 2020
50c06ae
#1817: fixed Click_LabelDelete error
rpechuk Aug 7, 2020
0264274
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Aug 9, 2020
6986198
Merge pull request #2189 from ProjectSidewalk/1239-labeling-guide-to-…
misaugstad Aug 9, 2020
141b9f3
Delete unnecessary function, fixes bug
nomichka Aug 10, 2020
63db765
Actually fixes bug. Re-adds function and gets tagId through language-…
nomichka Aug 10, 2020
dc6cdec
Style: add tab
nomichka Aug 10, 2020
d6c07b6
Merge branch 'develop' into 2155-Generic-Skyline
jstadeusiak Aug 11, 2020
67cd065
Colored flag for spgg and cdmx
jstadeusiak Aug 11, 2020
4805e3c
Fixed Rounding for remaning neighborhood distance
jstadeusiak Aug 12, 2020
28427d1
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Aug 12, 2020
54fd378
#12: fixed admin legend
rpechuk Aug 14, 2020
26e1a4d
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
rpechuk Aug 14, 2020
b696e20
Merge branch '12-Map-add-label-counts-to-legend' of https://github.co…
rpechuk Aug 14, 2020
c8ac089
2199 Mean and Std For Label Severity
jstadeusiak Aug 18, 2020
1a6d693
Update ModalMissionComplete.js
jstadeusiak Aug 18, 2020
7f799be
Update Admin.js
jstadeusiak Aug 18, 2020
4a380ce
Fixed "no sidewalk" labels not being counted when audit page refreshed.
shokiami Aug 21, 2020
ae51d08
Removed a console.log I accidentally left in.
shokiami Aug 21, 2020
c17a0e2
Merge pull request #2172 from ProjectSidewalk/12-Map-add-label-counts…
misaugstad Aug 22, 2020
c6e4095
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Aug 22, 2020
a4a7722
Merge pull request #2206 from ProjectSidewalk/2182-visual-bug-Spanish…
misaugstad Aug 22, 2020
2af5ea4
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Aug 22, 2020
f425d26
changes order stats are displayed
misaugstad Aug 23, 2020
41f3042
Merge pull request #2209 from ProjectSidewalk/2199-Admin-Dash-Average…
misaugstad Aug 23, 2020
1703e9b
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Aug 23, 2020
aa7fcf6
Merge pull request #2214 from ProjectSidewalk/2168-audit-no-sidewalk-…
misaugstad Aug 23, 2020
8a04ec9
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Aug 23, 2020
f5ca993
Merge pull request #2210 from ProjectSidewalk/1094-neigborhood-comple…
misaugstad Aug 23, 2020
6e61d49
#2144: fixed dropdown menu placement
rpechuk Aug 24, 2020
ac71984
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Aug 24, 2020
bf8c24a
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Aug 24, 2020
93caeac
Does not display a visual without any data.
shokiami Aug 27, 2020
6447bbc
Added a clarifying comment.
shokiami Aug 27, 2020
7f462c7
Removed the "points into traffic" tag from the tutorial.
shokiami Aug 28, 2020
42a1dcc
Added spanish translation.
shokiami Sep 1, 2020
b444240
Added visibility logging functionality.
shokiami Sep 1, 2020
67ac6cb
Added visibility logging functionality.
shokiami Sep 4, 2020
08bc3b8
Merge branch '1785-log-page-visibility' of https://github.com/Project…
shokiami Sep 4, 2020
f7264a5
Removed logging code from scala.html files.
shokiami Sep 4, 2020
8a21240
Removed some white space I accidentally added.
shokiami Sep 4, 2020
db70e66
Removed some white space I accidentally added.
shokiami Sep 4, 2020
11b9c90
Merge pull request #2219 from ProjectSidewalk/2197-admin-dashboard-vi…
misaugstad Sep 10, 2020
4a01336
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Sep 11, 2020
6e4836d
improves logging of #1449 error
misaugstad Sep 12, 2020
7b361d2
Logs when page has focus.
shokiami Sep 12, 2020
5b36f81
Merge pull request #2220 from ProjectSidewalk/2203-tutorial-remove-po…
misaugstad Sep 12, 2020
734ae7f
Changed log entries so focus state in action name instead of note.
shokiami Sep 13, 2020
c15b95a
Merge branch 'develop' into 2155-Generic-Skyline
jstadeusiak Sep 13, 2020
98b5990
Updated class names and compressed images
jstadeusiak Sep 14, 2020
45a24a2
Added an initial check to see if page is in focus.
shokiami Sep 15, 2020
d66c5df
Initial check now after mission_id has been initialized.
shokiami Sep 16, 2020
ea9ce81
#1817: fixed Click_LabelDelete typo
rpechuk Sep 16, 2020
433a88f
finishing merge
rpechuk Sep 16, 2020
2240ef4
changed order of buttons in navbar
rpechuk Sep 16, 2020
c0fc7db
changed order of buttons in navbar and fixed closed navbar dropdown
rpechuk Sep 16, 2020
b38c995
Merge pull request #2170 from ProjectSidewalk/1817-Audit-Add-LabelTyp…
misaugstad Sep 16, 2020
1f75112
Merge pull request #2222 from ProjectSidewalk/1785-log-page-visibility
misaugstad Sep 16, 2020
3e3ac40
Small Fixes
jstadeusiak Sep 16, 2020
0917d67
removed extra changes
rpechuk Sep 16, 2020
27778e7
removed extra changes from any other PRs
rpechuk Sep 17, 2020
b196595
updates suggested plugins in README
misaugstad Sep 17, 2020
f1723b5
adjusts SPGG maps to add Del Valle neighborhood
misaugstad Sep 17, 2020
4ed3b95
Merge pull request #2234 from ProjectSidewalk/2232-spgg-add-del-valle…
misaugstad Sep 17, 2020
09226af
Merge pull request #2184 from ProjectSidewalk/2144-NavBar-Add-Data-Dr…
misaugstad Sep 17, 2020
4de019b
Merge branch 'develop' of https://github.com/ProjectSidewalk/Sidewalk…
misaugstad Sep 17, 2020
6607cc5
Merge branch 'develop' into 1473-dev-environment-slow-to-update-javas…
misaugstad Sep 17, 2020
727557c
Merge pull request #1474 from ProjectSidewalk/1473-dev-environment-sl…
misaugstad Sep 17, 2020
b599867
Merge pull request #2204 from ProjectSidewalk/2155-Generic-Skyline
misaugstad Sep 17, 2020
6f69217
fixes bug where terms and conditions does not show
misaugstad Sep 17, 2020
894e2c1
Merge pull request #2235 from ProjectSidewalk/2226-terms-and-conditio…
misaugstad Sep 17, 2020
4092e83
fixes dev env bug with docker volumes
misaugstad Sep 17, 2020
dd4b3a0
upgrades lodash 4.17.15 -> 4.17.20 in dev env
misaugstad Sep 17, 2020
60ef644
updates http to https in resolver for dev env
misaugstad Sep 17, 2020
b5cc603
6.8.5 -> 6.9.0
misaugstad Sep 17, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!-- Note that this template has a lot of sections that _could_ be filled in, but you don't need to fill them all in. If you don't have answers to some questions and/or you don't have time to figure it out right now, just skip them, we can always fill it in later. Having the issue filed at all is what's most important. -->
##### Brief description of issue/feature

<!-- This part mostly applies for features/design ideas; delete this if you're just reporting a bug. -->
##### Design ideas & mockups

<!-- Include any of the below that applies to you, delete any headers that don't apply -->
##### Expected behavior

<!-- For current behavior, include screenshots/recordings if applicable; check terminal & browser console for errors -->
##### Current behavior

##### Steps to reproduce

##### Potential solution(s)

<!-- prod vs test vs dev env, which city/cities, language(s), browser(s), OS(s)? -->
##### Where has the error occurred?
24 changes: 24 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Resolves #123

This is a brief description of the problem solved or feature implemented and how you implemented it.

##### Before/After screenshots <!-- delete if not applicable -->

##### Things to check before submitting the PR <!-- if something doesn't apply, just check the box or remove the line -->
- [ ] If there is a visual design component, I've posted before/after screenshots on the relevant issue thread and have been given a thumbs up on my design.
- [ ] I've asked for and added translations for any user facing text that was added or modified.
- [ ] I've updated logging if applicable. Clicks, keyboard presses, and other interactions should be logged in the `audit_task_interaction` or `validation_task_interaction` tables. If you added/modified an element that users can interact with, you may need to add/change the logging. Links between pages should be logged in the `webpage_activity` table. If you're not sure if you need to update the logging, ask Mikey.
- [ ] I've added/modified comments for large or confusing blocks of code.
- [ ] I've made sure my code and comments follow the [style guide](https://github.com/ProjectSidewalk/SidewalkWebpage/wiki/Style-Guide).
- [ ] I've tested on multiple browsers.
- [ ] I've tested as an Anonymous user, Registered user, and as a Turker.
- [ ] I've tested in both English and Spanish.
- [ ] I've tested on both desktop and mobile (as of Aug 2020, only need to test mobile for validation sign in page changes).
- [ ] I've verified that this PR is set to merge into the develop branch.
- [ ] I've written a descriptive PR title.

##### Steps to reproduce the bug <!-- delete if not applicable -->
1.

##### Testing instructions
1.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ coverage/
.ivy2
bower.json
component.json
db/*-dump

### IntelliJ (https://github.com/github/gitignore/blob/master/Global/JetBrains.gitignore)
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Sidewalk Webpage
The Project Sidewalk webpage.
Want a Project Sidewalk server set up for your city/municipality? We have had various discussions on Github about what we are looking for when choosing new cities to deploy in (geographic diversity, presence of local advocates, funding, etc.), which you can read through [here](https://github.com/ProjectSidewalk/SidewalkWebpage/issues/1379), [here](https://github.com/ProjectSidewalk/SidewalkWebpage/issues/1626), and [here](https://github.com/ProjectSidewalk/SidewalkWebpage/issues/281). If you would like to suggest that we deploy in your city/municipality, please email us at sidewalk@cs.uw.edu!

## Development Instructions

Expand Down Expand Up @@ -64,7 +64,7 @@ To run the web server locally, from the root of the SidewalkWebpage directory:
1. SSH into containers: To ssh into the containers, run `make ssh target=[web|db]`. Note that `[web|db]` is not a literal syntax, it specifies which container you would want to ssh into. For example, you can do `make ssh target=web`.

### Programming environment
The IDE [IntelliJ IDEA](https://www.jetbrains.com/idea/) is highly recommended for development, particularly with Scala. You should be able to get a [student license](https://www.jetbrains.com/student/) to use get the "ultimate" edition of IntelliJ IDEA.
The IDE [IntelliJ IDEA](https://www.jetbrains.com/idea/) is highly recommended for development, particularly with Scala. You should be able to get a [student license](https://www.jetbrains.com/student/) to get the "ultimate" edition of IntelliJ IDEA. If using IntelliJ IDEA, we would recommend installing the [Play Routes](https://plugins.jetbrains.com/plugin/10053-play-routes/), [i18n support](https://plugins.jetbrains.com/plugin/12981-i18n-support/), and [HOCON](https://plugins.jetbrains.com/plugin/10481-hocon) plugins.

To look at and run queries on your database, you will want to install a database client. [Valentina Studio](https://www.valentina-db.com/en/valentina-studio-overview) is a good cross-platform database client. People also like using [Postico](https://eggerapps.at/postico/) for Mac or [PGAdmin](https://www.pgadmin.org/download/) on Windows/Mac.

Expand Down
12 changes: 12 additions & 0 deletions app/controllers/AdminController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ import org.geotools.referencing.CRS
import play.api.libs.json.{JsArray, JsError, JsObject, Json}
import play.extras.geojson
import play.api.mvc.BodyParsers
import play.api.Play
import play.api.Play.current
import play.api.cache.Cache
import play.api.cache.EhCachePlugin

import scala.concurrent.Future
import scala.collection.mutable.ListBuffer
Expand Down Expand Up @@ -521,4 +525,12 @@ class AdminController @Inject() (implicit val env: Environment[User, SessionAuth
}
)
}

/** Clears all cached values stored in the EhCachePlugin, which is Play's default cache plugin. */
def clearPlayCache() = UserAwareAction.async { implicit request =>
val cacheController = Play.application.plugin[EhCachePlugin].get.manager
val cache = cacheController.getCache("play")
cache.removeAll()
Future.successful(Ok("success"))
}
}
3 changes: 2 additions & 1 deletion app/controllers/ApplicationController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ class ApplicationController @Inject() (implicit val env: Environment[User, Sessi
if(qString.isEmpty){
WebpageActivityTable.save(WebpageActivity(0, user.userId.toString, ipAddress, "Visit_Index", timestamp))
// Get city configs.
val envType: String = Play.configuration.getString("environment-type").get
val cityStr: String = Play.configuration.getString("city-id").get
val cityName: String = Play.configuration.getString("city-params.city-name." + cityStr).get
val stateAbbreviation: String = Play.configuration.getString("city-params.state-abbreviation." + cityStr).get
Expand All @@ -131,7 +132,7 @@ class ApplicationController @Inject() (implicit val env: Environment[User, Sessi
val otherCityUrls: List[(String, String)] = otherCities.map { otherCity =>
val otherName: String = Play.configuration.getString("city-params.city-name." + otherCity).get
val otherState: String = Play.configuration.getString("city-params.state-abbreviation." + otherCity).get
val otherURL: String = Play.configuration.getString("city-params.landing-page-url." + otherCity).get
val otherURL: String = Play.configuration.getString("city-params.landing-page-url." + envType + "." + otherCity).get
(otherName + ", " + otherState, otherURL)
}
// Get total audited distance. If using metric system, convert from miles to kilometers.
Expand Down
8 changes: 7 additions & 1 deletion app/controllers/AuditController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ class AuditController @Inject() (implicit val env: Environment[User, SessionAuth

request.identity match {
case Some(user) =>
// Get current region if we aren't assigning new one; otherwise assign new region
// If the user is a Turker and has audited less than 50 meters in the current region, then delete the current region.
val currentMeters: Option[Float] = MissionTable.getMetersAuditedInCurrentMission(user.userId)
if (user.role.getOrElse("") == "Turker" && currentMeters.isDefined && currentMeters.get < 50) {
UserCurrentRegionTable.delete(user.userId)
}

// Get current region if we aren't assigning new one; otherwise assign new region.
var region: Option[NamedRegion] = nextRegion match {
case Some("easy") => // Assign an easy region if the query string has nextRegion=easy.
UserCurrentRegionTable.assignEasyRegion(user.userId)
Expand Down
4 changes: 2 additions & 2 deletions app/controllers/ValidationController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class ValidationController @Inject() (implicit val env: Environment[User, Sessio
if (validationData._4.missionType != "validation" || user.role.getOrElse("") == "Turker" || !isMobile(request)) {
Future.successful(Redirect("/audit"))
} else {
Future.successful(Ok(views.html.mobileValidate("Project Sidewalk - Validate", Some(user), validationData._1, validationData._2, validationData._3, validationData._4.numComplete, validationData._5)))
Future.successful(Ok(views.html.mobileValidate("Project Sidewalk - Validate", Some(user), validationData._1, validationData._2, validationData._3, validationData._4.numComplete, validationData._5, validationData._6)))
}
case None =>
Future.successful(Redirect(s"/anonSignUp?url=/mobile"));
Expand All @@ -100,7 +100,7 @@ class ValidationController @Inject() (implicit val env: Environment[User, Sessio
if (validationData._4.missionType != "validation" || user.role.getOrElse("") == "Turker") {
Future.successful(Redirect("/audit"))
} else {
Future.successful(Ok(views.html.rapidValidation("Project Sidewalk - Validate", Some(user), validationData._1, validationData._2, validationData._3, validationData._4.numComplete, validationData._5)))
Future.successful(Ok(views.html.rapidValidation("Project Sidewalk - Validate", Some(user), validationData._1, validationData._2, validationData._3, validationData._4.numComplete, validationData._5, validationData._6)))
}
case None =>
Future.successful(Redirect(s"/anonSignUp?url=/rapidValidate"));
Expand Down
2 changes: 1 addition & 1 deletion app/forms/ForgotPasswordForm.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ object ForgotPasswordForm {
* A play framework form.
*/
val form = Form(
"email" -> email
"emailForgotPassword" -> email
)
}
4 changes: 2 additions & 2 deletions app/forms/ResetPasswordForm.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ object ResetPasswordForm {
*/
val form = Form(
mapping(
"password" -> nonEmptyText,
"passwordConfirm" -> nonEmptyText
"passwordReset" -> nonEmptyText,
"passwordResetConfirm" -> nonEmptyText
)(PasswordData.apply)(PasswordData.unapply)
)

Expand Down
2 changes: 1 addition & 1 deletion app/forms/SignInForm.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ object SignInForm {
val form = Form(
mapping(
"identifier" -> email,
"password" -> nonEmptyText
"passwordSignIn" -> nonEmptyText
)(Credentials.apply)(Credentials.unapply)
)
}
20 changes: 18 additions & 2 deletions app/models/mission/MissionTable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import models.audit.{AuditTask, AuditTaskTable}
import models.daos.slick.DBTableDefinitions.{DBUser, UserTable}
import models.utils.MyPostgresDriver.simple._
import models.region._
import models.user.{RoleTable, UserRoleTable}
import models.user.{RoleTable, UserRoleTable, UserCurrentRegionTable}
import models.label.{LabelTable, LabelTypeTable}
import models.region.RegionPropertyTable
import play.api.Logger
Expand Down Expand Up @@ -510,7 +510,7 @@ object MissionTable {
}

/**
* Get total distance audited by a user in miles.
* Gets total distance audited by a user in miles.
*
* @param userId
* @return
Expand All @@ -519,6 +519,22 @@ object MissionTable {
missions.filter(_.userId === userId.toString).map(_.distanceProgress).sum.run.getOrElse(0F) * METERS_TO_MILES
}

/**
* Gets meters audited by a user in their current mission, if it exists.
*
* @param userId
* @return
*/
def getMetersAuditedInCurrentMission(userId: UUID): Option[Float] = db.withSession { implicit session =>
val currentMeters: Option[Float] = for {
currentRegion <- UserCurrentRegionTable.currentRegion(userId)
currentMission <- getCurrentMissionInRegion(userId, currentRegion)
} yield {
currentMission.distanceProgress.getOrElse(0F)
}
currentMeters
}

/**
* Provides functionality for accessing mission table while a user is auditing while preventing race conditions.
*
Expand Down
10 changes: 10 additions & 0 deletions app/models/user/UserCurrentRegionTable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,14 @@ object UserCurrentRegionTable {
}
regionId
}

/**
* Delete the current region for a user if it exists.
*
* @param userId user ID
* @return
*/
def delete(userId: UUID) = db.withSession { implicit session =>
userCurrentRegions.filter(_.userId === userId.toString).delete
}
}
21 changes: 21 additions & 0 deletions app/views/admin/index.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ <h1>Coverage</h1>
<h1></h1>

</div>
<button onclick="admin.clearPlayCache()">@Messages("admin.clear.play.cache")</button>
<p id="clearPlayCacheSuccess" style="color:green"></p>
</div>
<div class="row">
<h1>Comments</h1>
Expand Down Expand Up @@ -467,6 +469,25 @@ <h2>Daily Label Counts</h2>

<h2>Severity Ratings by Label Type</h2>
<div class="col-lg-12">
<div class="stats-grid">
<p>
<span>Average (curb ramp): </span><span id="curb-ramp-mean"></span><br>
<span>Average (missing curb ramp): </span><span id="missing-ramp-mean"></span><br>
<span>Average (surface problem): </span><span id="surface-mean"></span><br>
<span>Average (obstacle): </span><span id="obstacle-mean"></span><br>
<span>Average (no sidewalk): </span><span id="no-sidewalk-mean"></span><br>
<span>Average (all label types): </span><span id="labels-mean"></span><br>
</p>
<p>
<span>Standard Deviation (curb ramp): </span><span id="curb-ramp-std"></span><br>
<span>Standard Deviation (missing curb ramp): </span><span id="missing-ramp-std"></span><br>
<span>Standard Deviation (surface problem): </span><span id="surface-std"></span><br>
<span>Standard Deviation (obstacle): </span><span id="obstacle-std"></span><br>
<span>Standard Deviation (no sidewalk): </span><span id="no-sidewalk-std"></span><br>
<span>Standard Deviation (all label types): </span><span id="labels-std"></span><br>
</p>
</div>

<div id="severity-histograms"></div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/task.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<link href='@routes.Assets.at("stylesheets/admin.css")' rel="stylesheet"/>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/d3.v3.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/c3.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/underscore.min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/lib/underscore-min.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/Admin/build/Admin.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/SVLabel/src/SVLabel/util/UtilitiesSidewalk.js")'></script>
<script type="text/javascript" src='@routes.Assets.at("javascripts/SVLabel/src/SVLabel/util/UtilitiesColor.js")'></script>
Expand Down
Loading