chore(deps): migrate Haze to 2.0.0-beta01 - #1257
Merged
Merged
Conversation
Supersedes Dependabot's 2.0.0-alpha03 -> 2.0.0-alpha04 bump (#1234). alpha04 is a hard break for every call site here, and beta01 breaks them again by removing the alpha-era source shims, so migrating straight to beta01 absorbs the churn once instead of twice. beta01 also fixes a cross-window recomposition livelock that affects a HazeState shared between a host composable and a Dialog. API changes applied: - Modifier.hazeEffect { blurEffect { style = ... } } -> Modifier.hazeBlur( HazeInput.Sources(state), style) - HazeBlurStyle(...) constructor -> HazeBlurStyle { } builder; colorEffect becomes colorEffects(List<HazeColorEffect>) - BlurredContent's per-call blur radius override now composes onto the material via HazeBlurStyle.then { blurRadius(...) } The HazeBlurStyle builder is not a @composable scope, so CodeTheme reads are hoisted above it at each call site. HazeState, rememberHazeState, hazeSource and HazeMaterials are unchanged. Verified with :apps:flipcash:app:assembleDebug. The glass surfaces (v2 nav pill, currency title pill, creator upsell card, chat input/send bar, app-bar icon buttons) still need a visual pass.
bmc08gt
force-pushed
the
claude/haze-2-beta01-migration
branch
from
August 20, 2026 12:46
e9da3bb to
c69fd17
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes #1234 (Dependabot's
2.0.0-alpha03->2.0.0-alpha04bump).Why beta01 and not alpha04
alpha04 is a hard break at every call site in this repo — I checked out #1234 and compiled it: 17 errors in
:ui:componentsalone (Unresolved reference 'blurEffect',No value passed for parameter 'input',HazeStateno longer accepted where aHazeEffectFactoryis expected). So #1234 is not mergeable as-is regardless.Given that, taking alpha04 means paying the migration cost twice: beta01 removes the alpha-era
HazeBlurStyle(...)constructor shims and makesHazeColorEffectfactory-only. beta01 also fixes a cross-window recomposition livelock that affects aHazeStateshared between a host composable and aDialog— which this app does.API changes applied
Modifier.hazeEffect(state) { blurEffect { style = s } }Modifier.hazeBlur(HazeInput.Sources(state), s)HazeBlurStyle(blurRadius = …, backgroundColor = …, colorEffect = …)HazeBlurStyle { blurRadius(…); backgroundColor(…); colorEffects(listOf(…)) }blurEffect { this.blurRadius = r; style = m }m.then { blurRadius(r) }HazeState,rememberHazeState,hazeSourceandHazeMaterialsare unchanged.One wrinkle worth flagging for future call sites: the
HazeBlurStyle { }builder is not a@Composablescope, soCodeTheme.*reads have to be hoisted above it. Each migrated site now does that, with a comment.Call sites migrated
ui/components/.../BlurredContent.kt— animated per-call blur radius now composed onto the material viathen { }ui/components/.../CircularIconButton.kt— app-bar glass icon buttonsapps/flipcash/core-ui/.../NavigationBar.kt— v2 nav pillapps/flipcash/features/tokens/.../CurrencyInfoContentV2.kt— currency title pillapps/flipcash/shared/tokens/.../CurrencyCreatorUpsellCard.ktapps/flipcash/features/messenger/.../ChatBottomBar.kt— typing indicator + chat inputapps/flipcash/features/messenger/.../SendCashButton.ktVerification
./gradlew :apps:flipcash:app:assembleDebug— green.Still needed: a visual pass. Compiling proves the API migration, not that the glass still looks right. Worth eyeballing the v2 nav pill (including over the scanner tab), the currency title pill and creator upsell card, the chat input / send-cash bar mid-type, and the app-bar icon buttons.
Once this lands, #1234 can be closed.