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] Add StickyFooterComponentView #1991

Merged
merged 3 commits into from
Dec 19, 2024
Merged

Conversation

tonidero
Copy link
Contributor

Description

This PR adds StickyFooterComponentView to our components

@tonidero tonidero marked this pull request as ready for review December 18, 2024 11:53
@tonidero tonidero requested a review from a team December 18, 2024 11:54
Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.95%. Comparing base (de98bee) to head (28714ae).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1991   +/-   ##
=======================================
  Coverage   81.95%   81.95%           
=======================================
  Files         260      260           
  Lines        8507     8507           
  Branches     1226     1226           
=======================================
  Hits         6972     6972           
  Misses       1036     1036           
  Partials      499      499           

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

Copy link
Member

@JayShortway JayShortway left a comment

Choose a reason for hiding this comment

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

Amazing!

Comment on lines 85 to 103
Column(modifier = modifier.background(background)) {
val scrollState = rememberScrollState()
ComponentView(
style = style,
state = state,
modifier = Modifier
.fillMaxWidth()
.weight(1f)
.verticalScroll(scrollState),
)
footerComponentStyle?.let {
StickyFooterComponentView(
style = it,
state = state,
modifier = Modifier
.fillMaxWidth(),
)
}
}
Copy link
Member

Choose a reason for hiding this comment

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

I love how simple this is!

@tonidero tonidero enabled auto-merge (squash) December 19, 2024 11:57
@tonidero tonidero merged commit 256a436 into main Dec 19, 2024
9 checks passed
@tonidero tonidero deleted the sticky-footer-component branch December 19, 2024 12:15
tonidero pushed a commit that referenced this pull request Jan 2, 2025
**This is an automatic release.**

## RevenueCat SDK
### 🐞 Bugfixes
* improvements for fr translations (#2019) via Andy Boedo (@aboedo)

### 🔄 Other Changes
* Feedback Surveys (#2010) via Cesar de la Vega (@vegaro)
* [Paywalls V2] Fixes previews (#2015) via JayShortway (@JayShortway)
* [Paywalls V2] Moves validation logic to the Loading phase (#2007) via
JayShortway (@JayShortway)
* Add Cancel subscriptions support (#2008) via Cesar de la Vega
(@vegaro)
* [Paywalls V2] Localizations are kept in a NonEmptyMap (#2001) via
JayShortway (@JayShortway)
* [Paywalls V2] `TextComponentState` handles locale changes (#2000) via
JayShortway (@JayShortway)
* [Paywalls V2] Some minor cleanup (#1994) via JayShortway
(@JayShortway)
* [Paywalls V2] `StackComponentView` handles overrides with
`StackComponentState` (#1993) via JayShortway (@JayShortway)
* Customer Center restores [CC-2] (#1999) via Cesar de la Vega (@vegaro)
* [Paywalls V2] Add more image component previews to test parent being
smaller than image size (#2004) via Toni Rico (@tonidero)
* [Paywalls V2] Add `PurchaseButtonComponent` support (#2002) via Toni
Rico (@tonidero)
* Build Customer Center from JSON (#1998) via Cesar de la Vega (@vegaro)
* Fix missing import after PR merge conflict (#1997) via Toni Rico
(@tonidero)
* [Paywalls V2] Add `StickyFooterComponentView` (#1991) via Toni Rico
(@tonidero)
* [Paywalls V2] `TextComponentView` handles overrides with
`TextComponentState` (#1989) via JayShortway (@JayShortway)

Co-authored-by: revenuecat-ops <[email protected]>
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