Rename preview to reflect actual state

This commit is contained in:
Jenna Vassar
2026-05-11 11:59:10 -07:00
parent 65ed527384
commit 8d8ac9373e
2 changed files with 5 additions and 2 deletions
@@ -604,6 +604,9 @@ internal fun TimelineViewPreview(
} }
} }
// The jump-to-unread FAB's indicator is always rendered when the FAB is visible — in
// production the FAB only appears when unread content exists above. So `hasUnreadAbove`
// here only varies the scroll-target state, not the upper indicator's visibility.
@Composable @Composable
private fun TimelineViewWithReadMarker( private fun TimelineViewWithReadMarker(
hasUnreadAbove: Boolean, hasUnreadAbove: Boolean,
@@ -648,7 +651,7 @@ private fun TimelineViewWithReadMarker(
@PreviewsDayNight @PreviewsDayNight
@Composable @Composable
internal fun TimelineViewWithReadMarkerNoIndicatorsPreview() = ElementPreview { internal fun TimelineViewWithReadMarkerJumpToUnreadIndicatorOnlyPreview() = ElementPreview {
TimelineViewWithReadMarker(hasUnreadAbove = false, hasUnreadBelow = false) TimelineViewWithReadMarker(hasUnreadAbove = false, hasUnreadBelow = false)
} }
@@ -161,7 +161,7 @@ class KonsistPreviewTest {
"TimelineVideoWithCaptionRowPreview", "TimelineVideoWithCaptionRowPreview",
"TimelineViewMessageShieldPreview", "TimelineViewMessageShieldPreview",
"TimelineViewWithReadMarkerBothIndicatorsPreview", "TimelineViewWithReadMarkerBothIndicatorsPreview",
"TimelineViewWithReadMarkerNoIndicatorsPreview", "TimelineViewWithReadMarkerJumpToUnreadIndicatorOnlyPreview",
"UserAvatarColorsPreview", "UserAvatarColorsPreview",
"UserProfileHeaderSectionWithVerificationViolationPreview", "UserProfileHeaderSectionWithVerificationViolationPreview",
"VoiceItemViewPlayPreview", "VoiceItemViewPlayPreview",