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

Paywalls: fix template 5 header aspect ratio #1465

Merged
merged 2 commits into from
Nov 14, 2023

Conversation

NachoSoto
Copy link
Contributor

Before:

image

After

Screenshot 2023-11-13 at 18 10 09

@NachoSoto NachoSoto requested a review from a team November 14, 2023 02:10
Copy link

codecov bot commented Nov 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7c04213) 83.92% compared to head (1074eee) 83.92%.
Report is 3 commits behind head on main.

❗ Current head 1074eee differs from pull request most recent head decf6d5. Consider uploading reports for the commit decf6d5 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1465   +/-   ##
=======================================
  Coverage   83.92%   83.92%           
=======================================
  Files         208      208           
  Lines        6893     6893           
  Branches      999      999           
=======================================
  Hits         5785     5785           
  Misses        714      714           
  Partials      394      394           

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

Copy link
Contributor

@tonidero tonidero left a comment

Choose a reason for hiding this comment

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

Applied the fix to template 1 in #1466. But yeah, great catch!

@tonidero
Copy link
Contributor

Actually, I wonder about why the snapshot tests are not failing... seems like there might be something wrong there... Will take a look.

Co-authored-by: Toni Rico <toni.rico.diez@revenuecat.com>
@NachoSoto NachoSoto changed the title Paywalls: fix template 5 header aspect ratio Paywalls: fix template 5 header aspect ratio Nov 14, 2023
@NachoSoto NachoSoto enabled auto-merge (squash) November 14, 2023 17:28
tonidero added a commit that referenced this pull request Nov 14, 2023
### Description
Similar to #1465 but in template 1. This was caused by a bad refactor
when extracting the `aspectRatio` calculation to an extension.
@tonidero
Copy link
Contributor

Actually, I wonder about why the snapshot tests are not failing... seems like there might be something wrong there... Will take a look.

It was entering the == 0 branch, so we can merge this 👍

@NachoSoto NachoSoto merged commit b176d99 into main Nov 14, 2023
@NachoSoto NachoSoto deleted the paywalls-template-5-header-ratio branch November 14, 2023 17:31
NachoSoto pushed a commit that referenced this pull request Nov 14, 2023
**This is an automatic release.**

### RevenueCatUI
* Paywalls: fix template 5 header aspect ratio (#1465) via NachoSoto
(@NachoSoto)
* Paywalls: Fix template 1 header aspect ratio (#1466) via Toni Rico
(@tonidero)
* Paywalls: Support condensed footer in template 4 (#1469) via Toni Rico
(@tonidero)
* `Paywalls`: improve image loading (#1464) via NachoSoto (@NachoSoto)
* `Paywalls`: override locale with paywall localization (#1418) via
NachoSoto (@NachoSoto)
### Other Changes
* Paywalls: Fix purchasing regression by providing real activity (#1467)
via Toni Rico (@tonidero)
* Bump compile/target version to 34 (#1462) via Toni Rico (@tonidero)
* Update circleci orb to latest version (#1456) via Toni Rico
(@tonidero)
* `Snapshots`: fix Fastlane job (#1461) via NachoSoto (@NachoSoto)
* Update gradle plugin to version 8.1.1 (#1458) via Toni Rico
(@tonidero)

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
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