Skip to content

Improves button progress indicator size calculation.#2485

Merged
JayShortway merged 3 commits into
mainfrom
progress-indicator-size
Jul 7, 2025
Merged

Improves button progress indicator size calculation.#2485
JayShortway merged 3 commits into
mainfrom
progress-indicator-size

Conversation

@JayShortway

Copy link
Copy Markdown
Member

Description

No longer makes the progress indicator as big as the button itself. Dynamically calculates some padding, and sets a maximum size.

With artificially long loading time:

progress.mov

@JayShortway JayShortway requested review from a team and MarkVillacampa July 4, 2025 13:32
@JayShortway JayShortway self-assigned this Jul 4, 2025
@JayShortway JayShortway added the pr:fix A bug fix label Jul 4, 2025

@tonidero tonidero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just one question, but not really a blocker, thanks for fixing this!! 🙏

minDimensionDp >= 24.dp -> minDimensionDp - 16.dp
minDimensionDp >= 16.dp -> 8.dp
minDimensionDp >= 8.dp -> minDimensionDp - 8.dp
else -> 0.dp

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

hopefully devs won't have buttons as small, but better to handle it yeah 😅

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Haha yea, maybe really small icon buttons? 😅

@emerge-tools

emerge-tools Bot commented Jul 4, 2025

Copy link
Copy Markdown

📸 Snapshot Test

648 unchanged

Name Added Removed Modified Renamed Unchanged Errored Approval
TestPurchasesUIAndroidCompatibility Paparazzi
com.revenuecat.testpurchasesuiandroidcompatibility.paparazzi
0 0 0 0 251 0 N/A
TestPurchasesUIAndroidCompatibility
com.revenuecat.testpurchasesuiandroidcompatibility
0 0 0 0 397 0 N/A

🛸 Powered by Emerge Tools

@codecov

codecov Bot commented Jul 4, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.72%. Comparing base (0eee76f) to head (e14e23c).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2485   +/-   ##
=======================================
  Coverage   78.72%   78.72%           
=======================================
  Files         289      289           
  Lines       10519    10519           
  Branches     1509     1509           
=======================================
  Hits         8281     8281           
  Misses       1590     1590           
  Partials      648      648           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JayShortway JayShortway enabled auto-merge July 4, 2025 15:28
@JayShortway JayShortway added this pull request to the merge queue Jul 7, 2025
Merged via the queue into main with commit eb3d010 Jul 7, 2025
14 checks passed
@JayShortway JayShortway deleted the progress-indicator-size branch July 7, 2025 08:44
github-merge-queue Bot pushed a commit that referenced this pull request Jul 9, 2025
**This is an automatic release.**

## RevenueCat SDK
### ✨ New Features
* feat(purchases): Add setPostHogUserId() method to Purchases API
(#2495) via Hussain Mustafa (@hussain-mustafa990)
### 🐞 Bugfixes
* Improves button progress indicator size calculation. (#2485) via
JayShortway (@JayShortway)

### 🔄 Other Changes
* Revert "BC8 migration (#2477)" (#2501) via Toni Rico (@tonidero)
* Add codelab instructions on README file (#2489) via Jaewoong Eum
(@skydoves)
* Use collectAsStateWithLifecycle instead of collectAsState in Compose
(#2488) via Jaewoong Eum (@skydoves)
* Improve Composable stabilities (#2478) via Jaewoong Eum (@skydoves)
* [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule
(#2486) via RevenueCat Git Bot (@RCGitBot)
* BC8 migration (#2477) via Toni Rico (@tonidero)
* Fixes building sample apps with SNAPSHOT dependencies (#2483) via
JayShortway (@JayShortway)
* [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule
(#2484) via RevenueCat Git Bot (@RCGitBot)

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

Labels

pr:fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants