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 4 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 44.44444% with 5 lines in your changes missing coverage. Please review.

Project coverage is 82.61%. Comparing base (30e096e) to head (b5d7376).
Report is 48 commits behind head on master.

Files with missing lines Patch % Lines
perllib/FixMyStreet/Cobrand/Bexley.pm 44.44% 0 Missing and 5 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5275      +/-   ##
==========================================
+ Coverage   82.25%   82.61%   +0.36%     
==========================================
  Files         412      413       +1     
  Lines       32393    33583    +1190     
  Branches     5175     5550     +375     
==========================================
+ Hits        26644    27745    +1101     
- Misses       4204     4260      +56     
- Partials     1545     1578      +33     

☔ 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
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