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
Differentiate Deep Dive workshops on map #30549
Conversation
@@ -85,6 +91,13 @@ function createNewMarker(latLng, title, infoWindowContent) { | |||
return marker; | |||
} | |||
|
|||
function iconForSubject(subject) { | |||
if (subject === 'Deep Dive') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we hoist 'Deep dive'
into a common string?
@@ -118,7 +118,9 @@ def k5_public_map_index | |||
# will be to show workshops from all subjects when deep-dive isn't specified. | |||
# But until then, when deep-dive isn't specified, we only show 'Intro' | |||
# workshops. | |||
conditions[:subject] = params['deep_dive_only'] ? 'Deep Dive' : 'Intro' | |||
if params['deep_dive_only'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this change the comment above it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, yes - it makes it irrelevant. Removing!
Codecov Report
@@ Coverage Diff @@
## staging #30549 +/- ##
===========================================
+ Coverage 73.21% 73.21% +<.01%
===========================================
Files 2058 2057 -1
Lines 112978 112945 -33
Branches 3495 3493 -2
===========================================
- Hits 82721 82698 -23
+ Misses 26995 26986 -9
+ Partials 3262 3261 -1
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## staging #30549 +/- ##
===========================================
+ Coverage 73.21% 73.21% +<.01%
===========================================
Files 2058 2057 -1
Lines 112978 112945 -33
Branches 3495 3493 -2
===========================================
- Hits 82721 82698 -23
+ Misses 26995 26986 -9
+ Partials 3262 3261 -1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## staging #30549 +/- ##
===========================================
+ Coverage 73.21% 73.21% +<.01%
===========================================
Files 2058 2057 -1
Lines 112978 112945 -33
Branches 3495 3493 -2
===========================================
- Hits 82721 82698 -23
+ Misses 26995 26986 -9
+ Partials 3262 3261 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with brendan's comments, but otherwise this looks great!
PLC-417 Displays different map info and pin colors depending on whether a CSF workshop is Intro or Deep Dive on code.org/professional-development-workshops/update.
Adds Deep Dive workshops to the map on this page.
Deep Dive workshops get a star on their pin. We collapse workshops at the same location into one pin - in these cases if any of the workshops is deep dive, the pin gets the star. Also adds the workshop subject to the tooltip.
Before:
After: