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

GEN-2831 Comparison API impl #2257

Merged
merged 33 commits into from
Nov 8, 2024
Merged

GEN-2831 Comparison API impl #2257

merged 33 commits into from
Nov 8, 2024

Conversation

panasetskaya
Copy link
Contributor

No description provided.

Base automatically changed from fix/hc-multi-select-edit-insurance to fix/select-deductible-bugs October 24, 2024 11:01
Base automatically changed from fix/select-deductible-bugs to develop October 24, 2024 12:40
# Conflicts:
#	app/data/data-changetier/src/main/kotlin/com/hedvig/android/data/changetier/data/CreateChangeTierDeductibleIntentUseCase.kt
#	app/data/data-changetier/src/main/kotlin/com/hedvig/android/data/changetier/database/TierQuoteMapper.kt
#	app/data/data-chat/src/main/kotlin/com/hedvig/android/data/chat/database/ChangeTierQuoteEntity.kt
#	app/feature/feature-choose-tier/src/main/kotlin/com/hedvig/android/feature/change/tier/ui/stepcustomize/SelectTierDestination.kt
@panasetskaya panasetskaya marked this pull request as ready for review November 6, 2024 20:38
@panasetskaya panasetskaya requested a review from a team as a code owner November 6, 2024 20:38
@panasetskaya panasetskaya changed the title Comparison API impl DRAFT Comparison API impl Nov 6, 2024
panasetskaya and others added 5 commits November 7, 2024 12:40
# Conflicts:
#	app/feature/feature-movingflow/src/main/kotlin/com/hedvig/android/feature/movingflow/ui/summary/SummaryDestination.kt
From the docs
https://developer.android.com/develop/ui/compose/side-effects#derivedstateof
"You should use the derivedStateOf function when your inputs to a composable are changing more often than you need to recompose. This often occurs when something is frequently changing, such as a scroll position, but the composable only needs to react to it once it crosses a certain threshold."
# Conflicts:
#	app/feature/feature-movingflow/src/main/kotlin/com/hedvig/android/feature/movingflow/ui/chosecoveragelevelanddeductible/ChoseCoverageLevelAndDeductibleDestination.kt
@panasetskaya panasetskaya changed the title Comparison API impl GEN-2831 Comparison API impl Nov 7, 2024
Copy link

Implement on Android

This ensures that the speed of the scroll does not get disproportionally
affected by how big the screen itself is and if there are 3 or 4 columns
There was a 16.dp padding around the content making it look clipped.
Move that padding to inside the items themselves so that the clickable
indicator also is included in that space
Adds a not-placed text inside the cells as well so that its size changes
along with the rest of the text.
By first constraining it to a maximum of 40% of the screen before using
the max intrinsic size, we ensure both that the column won't overtake
the entire width of the screen, while also making sure that if the texts
require only part of the available space to them, then they will just
take up the space they need, and no more.
@StylianosGakis StylianosGakis merged commit 76407e5 into develop Nov 8, 2024
4 checks passed
@StylianosGakis StylianosGakis deleted the feature/comparison-api branch November 8, 2024 07:04
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.

2 participants