mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 15:50:16 +02:00
Restores TestHomeRowSamples.kt (sample-data + sanity tests that survived an earlier soft-reset on disk but never got staged). Updates the RecentlyAdded sample to use the new cardSizeMultiplier and spacingMultiplier fields. Adds InterfaceHelpersTest.kt covering: - Int.withinBoundsOrDefault (in-range, below-min, above-max, boundary equality) for both CardSize and Spacing preferences. - resolveCardHeight (newly extracted pure helper underneath the composable resolvedCardHeight): sentinel 0, legacy 172, explicit per-row override, multiplier path. - InterfaceCustomization.cardHeightDp / spacingDp math. - migrateLegacyRowSpacing: absent / default / non-default / snapping / clamping / does-not-overwrite-existing-multiplier. Adds migrateLegacyRowSpacing in HomeSettingsService and wires it into decode(): when a row's raw JSON still carries the legacy "spacing" field (from before this PR deleted the absolute spacing data field), translate the value into the new spacingMultiplier so users keep the same visual gap after upgrade. Extracts resolveCardHeight as a pure helper from the @Composable resolvedCardHeight so the resolution math is testable without the Compose runtime. |
||
|---|---|---|
| .. | ||
| config | ||
| schemas/com.github.damontecres.wholphin.data.AppDatabase | ||
| src | ||
| .gitignore | ||
| build.gradle.kts | ||
| proguard-rules.pro | ||