maps: expand place opening-hours details on tap
- Commit
5089e3edc27a3ecb9ab586c6b2430f907909bf01- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-05 16:25 UTC (22 hours ago)
- Parents
28df82f
Tapping the hours row mounted the full week table in a cut under it. The table now opens through ExpandVisibility, the column-block expansion that helper exists for. Wrap abrupt conditional content in the shared library.ui motion helpers so it expands/fades/pops in instead of popping in cut, and closes up cleanly when it goes away. No raw androidx.compose. animation is used at the call site, per the fatal DirectCompose Animation lint; durations and easing come from the helpers' MaterialTheme motion-scheme defaults. Verified in this worktree with lint, lintVitalRelease and testDevUnitTest for the module (details in the session report; any pre-existing failure was reproduced on the pristine base).
Diff
maps/src/main/java/com/vayunmathur/maps/ui/PlaceSheetHours.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/PlaceSheetHours.kt b/maps/src/main/java/com/vayunmathur/maps/ui/PlaceSheetHours.ktindex bbd877dd52..5fe55efaf6 100644--- a/maps/src/main/java/com/vayunmathur/maps/ui/PlaceSheetHours.kt+++ b/maps/src/main/java/com/vayunmathur/maps/ui/PlaceSheetHours.kt@@ -17,6 +17,7 @@ import androidx.compose.ui.text.SpanStyle import androidx.compose.ui.text.withStyle import androidx.compose.ui.unit.dp import com.vayunmathur.library.ui.Card+import com.vayunmathur.library.ui.ExpandVisibility import com.vayunmathur.library.util.DateNameStyle import com.vayunmathur.library.ui.IconSchedule import com.vayunmathur.library.ui.ListItem@@ -65,7 +66,7 @@ internal fun OsmHours(openingHours: OpeningHours, todayOverride: Pair<DayOfWeek, ) { showDetails = !showDetails }- if (showDetails) {+ ExpandVisibility(visible = showDetails) { Spacer(Modifier.padding(2.dp)) Card(shape = verticalShape(1, 2)) { for ((day, hours) in openingHours.openingHours()) {