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

[Bexley] Add customised map pins #5275

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MorayMySoc
Copy link
Contributor

@MorayMySoc MorayMySoc requested a review from dracos November 26, 2024 15:32
Copy link

codecov bot commented Nov 26, 2024

Codecov Report

Attention: Patch coverage is 70.00000% with 12 lines in your changes missing coverage. Please review.

Project coverage is 82.65%. Comparing base (6f72070) to head (fa99002).
Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
perllib/FixMyStreet/Cobrand/Bexley.pm 44.44% 0 Missing and 5 partials ⚠️
perllib/FixMyStreet/Cobrand/Borsetshire.pm 20.00% 4 Missing ⚠️
perllib/FixMyStreet/Cobrand/Buckinghamshire.pm 80.00% 0 Missing and 1 partial ⚠️
perllib/FixMyStreet/Cobrand/Gloucestershire.pm 75.00% 0 Missing and 1 partial ⚠️
web/cobrands/oxfordshire/assets.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5275      +/-   ##
==========================================
+ Coverage   82.40%   82.65%   +0.25%     
==========================================
  Files         415      415              
  Lines       32833    33388     +555     
  Branches     5265     5452     +187     
==========================================
+ Hits        27055    27597     +542     
+ Misses       4222     4221       -1     
- Partials     1556     1570      +14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@dracos dracos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what package was used to change the colours, but it's made them very jaggedy in doing so - compare e.g. https://github.com/mysociety/fixmystreet/blob/dc1ba7b689138aa5a6efa0755d61fe0eeeda244d/web/cobrands/bexley/images/pin-aqua-big.png vs https://github.com/mysociety/fixmystreet/blob/master/web/i/pin-yellow-big.png
So that needs sorting somehow, I'm afraid

@MorayMySoc MorayMySoc requested a review from dracos November 27, 2024 11:04
Copy link
Member

@dracos dracos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, that looks better - one bug in the logic though!

return 'orange' if $p->state eq 'action_scheduled';
return 'green' if $p->is_fixed;
return 'spring' if $p->is_closed;
return 'grape' if $p->state eq 'not_council_responsibility';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line will never be reached because it'll match on the is_closed line above.

@MorayMySoc MorayMySoc requested a review from dracos November 27, 2024 15:24
This puts them all under web/i/pins, one directory per 'colour',
path_to_pin_icons is only used for sourcing shadow/spot files.
@dracos dracos force-pushed the fd-4521-bexley-icon-colours branch 2 times, most recently from c2ac201 to 74b5587 Compare December 12, 2024 20:56
@dracos dracos force-pushed the fd-4521-bexley-icon-colours branch from 74b5587 to fa99002 Compare December 13, 2024 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants