fixmystreet
fixmystreet copied to clipboard
Pboro bulky frontend step 1
@davea as we spoke I have added comments for the display logic of each element. Please let me know if there is something you don't understand. Important, at the moment the "Bulky waste" section has been hard coded, so if it's merged into master will be displayed in other cobrands.
This should fix: https://github.com/mysociety/societyworks/issues/2910 https://github.com/mysociety/societyworks/issues/2903
Mobile view
It includes a Bulky Waste CTA.
https://user-images.githubusercontent.com/13790153/189643164-e5321b96-2f0f-487c-b1d7-7bd5fce0251b.mov
Desktop (Between 720px and 1500px)
https://user-images.githubusercontent.com/13790153/189643322-386418eb-5f9b-45ef-83db-185cd0bed769.mov
Desktop (Above 1500px)
https://user-images.githubusercontent.com/13790153/189643252-45aa8277-2a7d-4097-93bd-53e86fd011e2.mov
Let me know if you have any feedback =)
Codecov Report
Merging #4098 (06ad10d) into master (1b8e53f) will decrease coverage by
0.30%
. The diff coverage is0.00%
.
:exclamation: Current head 06ad10d differs from pull request most recent head 84430db. Consider uploading reports for the commit 84430db to get more accurate results
@@ Coverage Diff @@
## master #4098 +/- ##
==========================================
- Coverage 83.22% 82.91% -0.31%
==========================================
Files 371 368 -3
Lines 25862 25576 -286
Branches 3973 3886 -87
==========================================
- Hits 21523 21207 -316
- Misses 3123 3179 +56
+ Partials 1216 1190 -26
Impacted Files | Coverage Δ | |
---|---|---|
perllib/FixMyStreet/App/Controller/Waste.pm | 89.58% <0.00%> (-0.14%) |
:arrow_down: |
perllib/FixMyStreet/Cobrand/Peterborough.pm | 91.48% <0.00%> (-0.92%) |
:arrow_down: |
perllib/FixMyStreet/SendReport/EastHants.pm | 17.85% <0.00%> (-0.67%) |
:arrow_down: |
perllib/FixMyStreet/App/Controller/Admin.pm | 76.95% <0.00%> (-0.59%) |
:arrow_down: |
...erllib/FixMyStreet/App/Controller/Admin/Reports.pm | 83.89% <0.00%> (-0.43%) |
:arrow_down: |
perllib/FixMyStreet/Cobrand/UKCouncils.pm | 91.97% <0.00%> (-0.34%) |
:arrow_down: |
perllib/FixMyStreet/Cobrand/Hounslow.pm | 80.70% <0.00%> (-0.34%) |
:arrow_down: |
perllib/FixMyStreet/App/Controller/Admin/Roles.pm | 98.18% <0.00%> (-0.31%) |
:arrow_down: |
perllib/FixMyStreet/Cobrand/Bromley.pm | 92.78% <0.00%> (-0.27%) |
:arrow_down: |
web/js/map-OpenLayers.js | 82.54% <0.00%> (-0.23%) |
:arrow_down: |
... and 34 more |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
Looking good! Once you've done the Sass changes I'll put the conditionals in place for the various different ways data is displayed.
OOI why does the nav jump from the right to the left when the viewport is >1500px wide?
@davea Thanks for the feedback. I have moved the changes so they are applied when the body has the bulky
class.
I have one question regarding the "add to your calendar" element. The way I have it on bin_days_bulky
is under the title, but I assume we won't be using that template. Do you have any idea how we can keep it there without messing the other cobrands? Maybe one idea is to move it inside _service_navigation_bar
template.
I put some logic in the templates to only show calendar link in the new place, use new button styles etc when using the bulky goods feature. As a result this PR should have no effect at all on the appearance of the page unless the bulky feature is enabled.