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 V2] Extend paywall content below sticky footer #2125

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tonidero
Copy link
Contributor

@tonidero tonidero commented Feb 7, 2025

Description

Currently the sticky footer and main paywall content are part of a column, so there is no overlap between them. This makes it so the paywall content can extend below the sticky footer in case the sticky footer has a transparent background.
Ignore the extended badge but now the background extends below the footer:

image

@tonidero tonidero changed the base branch from main to new-overrides-system February 7, 2025 12:24
@tonidero tonidero changed the title Extend paywall content below sticky footer [Paywalls V2] Extend paywall content below sticky footer Feb 7, 2025
@tonidero tonidero force-pushed the extend-paywall-content-below-sticky-footer branch from dfad7b6 to ddac42d Compare February 7, 2025 12:31
Copy link

emerge-tools bot commented Feb 7, 2025

📸 Snapshot Test

2 modified, 197 unchanged

Name Added Removed Modified Renamed Unchanged Errored Approval
TestPurchasesUIAndroidCompatibility
com.revenuecat.testpurchasesuiandroidcompatibility
0 0 2 0 197 0 ⏳ Needs approval

🛸 Powered by Emerge Tools

.verticalScroll(rememberScrollState()),
)
Box(modifier = modifier.background(background)) {
var footerHeight by remember { mutableIntStateOf(0) }
Copy link
Contributor Author

@tonidero tonidero Feb 7, 2025

Choose a reason for hiding this comment

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

I thought about using SubcomposeLayout for this instead but I was running into issues applying the padding and making it look right and this seemed easier for this use case. wdyt?

Copy link

codecov bot commented Feb 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.76%. Comparing base (28d8c3e) to head (5cf6c41).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2125      +/-   ##
==========================================
+ Coverage   80.73%   80.76%   +0.02%     
==========================================
  Files         274      274              
  Lines        9228     9252      +24     
  Branches     1295     1297       +2     
==========================================
+ Hits         7450     7472      +22     
- Misses       1230     1234       +4     
+ Partials      548      546       -2     

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

@tonidero
Copy link
Contributor Author

tonidero commented Feb 7, 2025

The preview changes in emerge are due to the recomposition caused by the onSizeChange, but it's actually centered within the same view.

@tonidero tonidero marked this pull request as ready for review February 7, 2025 14:25
@tonidero tonidero requested review from JayShortway and a team February 7, 2025 14:25
Base automatically changed from new-overrides-system to main February 7, 2025 15:06
@tonidero tonidero force-pushed the extend-paywall-content-below-sticky-footer branch from dc9b4d2 to 5cf6c41 Compare February 7, 2025 15:07
@tonidero tonidero marked this pull request as draft February 10, 2025 09:57
@tonidero
Copy link
Contributor Author

We still want to do this but not for the open beta. Until then, leaving this as draft

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.

1 participant