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

Refactor DeviceTypeView using jetpack compose #464

Merged

Conversation

PavlosTze
Copy link
Member

Why?

Refactor DeviceTypeView using jetpack compose

How?

  • Created CardView as a reusable Card component and MediumText.
  • Then using Jetpack Compose created the layout again with it
  • Removed the old XML-related files
  • Optimized the functions in Navigator to use just one for navigating to the claiming flows.

Testing

Ensure that the UI looks the same as it is now and every card opens the correct claiming flow.

Copy link

github-actions bot commented Jan 17, 2025

Coverage Report (Type: Instructions)

Overall Project 89.13% -0.04%
Files changed 84.16%

File Coverage
DevicesRewardsViewModel.kt 93.3% -3.7%
NetworkStatsViewModel.kt 91.53%

@PavlosTze
Copy link
Member Author

Won't be merged until testing is completed.

* Refactor RetryCardView as composable

* Feature/fe 1495 refactor headerview as a composable (#469)

* Refactor HeaderView as composable

* Enable previews in new composables

* Fix detekt

* Refactor InfoBannerCard as composable (#470)

* Refactor InfoBannerCard as composable

* Refactor RewardIssueCardView to composable. Fix ripple effect on buttons. (#472)
)

* [WIP] Range selector view as composable

* Fix issue of charts not loading properly when API replies very fast
@PavlosTze PavlosTze force-pushed the feature/fe-1494-refactor-devicetypecardview-as-a-composable branch from f7286ad to 5f6e783 Compare February 3, 2025 11:54
@PavlosTze PavlosTze merged commit 21dc465 into main Feb 5, 2025
6 checks passed
@PavlosTze PavlosTze deleted the feature/fe-1494-refactor-devicetypecardview-as-a-composable branch February 5, 2025 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants