activemerchant / payment_icons

An easy to use library that allows you to manage and access payment icons
MIT License
144 stars 422 forks source link

Taly new icon #1120

Closed rakholiyasaurav535 closed 7 months ago

rakholiyasaurav535 commented 8 months ago

Why are you adding this icons?

I'm adding/updating this icon(s) because we are developing an offsite payment app in shopify.

Help us identify yourself

Link to the brand guidelines:

Checklist to add new icons

If this pull request is not adding new icons, you can remove this checklist.

Attach a screenshot of the icon along side the example Visa icon

image

If the icons are intended for use by Shopify, please provide the following info:

Who are you working with at Shopify? (avoid adding personal details, provide github handle(preferred) or first name and last name)

What's the expected date of this change to deploy on Shopify?

rakholiyasaurav535 commented 8 months ago

I've added the Ruby 2.7 rails edge to be excluded as mentioned in #1121

adeniyiao commented 8 months ago

Hi @rakholiyasaurav535 we addressed the ruby version issue, but we need you to rebase your branch rakholiyasaurav535:taly_new_icon with activemerchant/master as well. Also the test fails due to issue with SVG as described in screenshot below

image

rakholiyasaurav535 commented 8 months ago

Hey @adeniyiao I've made the changes and svg file and rebased my branch as well, please review it ASAP

adeniyiao commented 8 months ago

Hey @adeniyiao I've made the changes and svg file and rebased my branch as well, please review it ASAP

HI @rakholiyasaurav535, there's another test failing with the svg as seen below. Kindly look into it. Thanks image

PaymentIconTest#test_Every_payment_SVG_meets_accessibility_requirements [/home/runner/work/payment_icons/payment_icons/test/unit/payment_icon_test.rb:89]:
{:message=>"The 'paint0_linear_4947_4625' ID should be pi-taly-paint0_linear_4947_4625 (missing 'pi-' prefix)"}.
Expected /pi-(.*)/ to match "paint0_linear_4947_4625".
rakholiyasaurav535 commented 8 months ago

Hey @adeniyiao I've added the pi prefix to the ID

adeniyiao commented 8 months ago

Hi @rakholiyasaurav535 ,

Another error

Failure: PaymentIconTest#test_Every_payment_SVG_meets_accessibility_requirements [/home/runner/work/payment_icons/payment_icons/test/unit/payment_icon_test.rb:93]: {:message=>"The 'taly' SVG file should have a 'role' attribute on the root <svg> tag"}

rakholiyasaurav535 commented 8 months ago

Hey @adeniyiao

I've added the role attribute ran the github action locally to verify if there's any other change to be made and seems like there's no more, hope this get's merge ASAP now.

hellicarusprime commented 8 months ago

Hi @rakholiyasaurav535 I noticed you're using a gradient fill on the background of the icon. Would it be possible to change this to a solid background color? We request this in our guidelines whenever possible. Have you also considered adding the border that we suggest there?

rakholiyasaurav535 commented 7 months ago

Hey @hellicarusprime We've updated the svg as per the requirements

hellicarusprime commented 7 months ago

Hey @hellicarusprime We've updated the svg as per the requirements

Thanks for the update @rakholiyasaurav535, but it looks like you've got a 4px border-radius now instead of the required 2px.

rakholiyasaurav535 commented 7 months ago

Hey @hellicarusprime, Thanks for pointing out the border-radius issue, I've adjusted it to 2px as needed.

hellicarusprime commented 7 months ago

Hey @hellicarusprime, Thanks for pointing out the border-radius issue, I've adjusted it to 2px as needed.

Hey @rakholiyasaurav535 It doesn't look like it's changed.

rakholiyasaurav535 commented 7 months ago

Hey @hellicarusprime check now

hellicarusprime commented 7 months ago

@rakholiyasaurav535 You have a different issue now. Although the icon is 38 x 24, it's displaying too small due to the fact that it doesn't have a border. I've attached an example of what we need to help explain.

image
rakholiyasaurav535 commented 7 months ago

hey @hellicarusprime check now

hellicarusprime commented 7 months ago

@rakholiyasaurav535 This is much better! One last thing, it looks like you can reduce the file size by ~55% if you run it through SVGO. Once this is done, I'll be happy to approve. Thanks!

rakholiyasaurav535 commented 7 months ago

@hellicarusprime I've reduced the size

miteshpanchal1992 commented 7 months ago

@hellicarusprime Is there anything pending from our end now?

hellicarusprime commented 7 months ago

@hellicarusprime Is there anything pending from our end now?

@miteshpanchal1992 The icon is good, but it looks like there are some branch conflicts. Cc: @adeniyiao

adeniyiao commented 7 months ago

Hi @miteshpanchal1992 Could you please rebase this branch with activemerchant/master to resolve the conflicts. Thanks.

The next release is planned for Feb 7.

rakholiyasaurav535 commented 7 months ago

hey @adeniyiao I've rebased the branch, do let me know if there is anything else pending from our end

adeniyiao commented 7 months ago

Hi @rakholiyasaurav535 , it looks like the rebase was not done correctly as there are other files in the PR this PR that shouldn't be included as they are already merged. Could you please review and correct. Thanks

rakholiyasaurav535 commented 7 months ago

Hey @adeniyiao check now

adeniyiao commented 7 months ago

Still doesn't look right. May be close the PR and open another one as you will see that you have more files (https://github.com/activemerchant/payment_icons/pull/1120/files) than expected in this PR

rakholiyasaurav535 commented 7 months ago

Hey @adeniyiao

I've created a new Pull Request please get this merged ASAP