Repository navigation
Feature/home grand bain - Turn Home into the grand bain - #169
Merged
SalimMc merged 3 commits intoOct 30, 2026
Merged
Conversation
Light reflections, pool floor lines, depth markers, a wavy water level, water columns and a counter of lane-rope floats, all drawn with plain shapes in the theme's colors and never animating forever. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Time left until it expires for a dated pass, entries left otherwise, following the same limit as Home's pass message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Home is split into Last swim, Activity and Spending sections along a wall of depth markers. The pass card drains like a pool as it is used and shows an entry-limited pass's entries as floats; the weekly bars are columns of water. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
Part of the "Grand bain" redesign: the Home screen. There are three commits: the decorations, the pass water level, then Home itself.
Decorations (
ui/theme/PoolDecorations.kt, new)Plain shapes in theme colors, no images. Nothing animates forever.
poolCaustics(color): faint wavy light reflections, like the ones at the bottom of a pool.poolFloorLines(color): the dark lane lines on a pool floor, with their "T" ends.poolDepthMarkers(): depth tags (1.0 m,1.5 m, …, seedepthMarkerLabel) every 220 dp down the end edge of a scrolling screen.DEPTH_MARKER_GUTTER(40 dp) is the space to leave free for them.WaterLevel(level, color): water fillinglevel(0–1) of the space, with a wavy surface. It rises once when shown.waterPathandwaterSurfaceYhold the geometry.WaterColumnShape: a shape with a square bottom and a small wave on top.EntryFloats(usedCount, maxEntries, color): an entry counter drawn as lane-rope floats, solid for each entry left and hollow for each used.MAX_ENTRY_FLOATS = 30entries (entryFloats).Pass water level (
ui/home/PassWaterLevel.kt, new)passWaterLevel(subscription, usedCount, now)follows the same limit as Home's pass message:maxEntries = 0is ignored.Home (
ui/home/HomeScreen.kt)LAST SWIM,ACTIVITYandSPENDINGsplit the cards.passWaterLevel);PASS_ENTRY_FLOATS);WaterColumnShape) filled withbarBrush, a vertical gradient.Note for review
The original
HomeScreen.ktdiff was lost: GitHub did not render it on the closed PR #160. This version was rebuilt from that PR's tests and decorations, so please look at this file more closely than the others.Tests
PoolDecorationsTest:PassWaterLevelTest: entry-limited, dated, both limits, expired (including exactly now), added after expiry, no limit,maxEntries = 0.HomeScreenTest:barBrushreturns the expected gradient for highlighted and normal bars../gradlew check ktfmtCheckpasses (unit tests and lint, about 8 minutes). The unit tests ran with an English locale (-Duser.language=en), because twoHistoryListModelTestcases already fail onmainunder a French locale.How to review
🤖 Generated with Claude Code