Repository navigation
feat(mobile): show the dashboard on Android - #206
Draft
nikbackdev wants to merge 1 commit into
Draft
nikbackdev wants to merge 1 commit into
nikbackdev wants to merge 1 commit into
Conversation
Signed-off-by: Nik <226111163+nikbackdev@users.noreply.github.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
|
This was referenced Nov 27, 2026
This branch has not been deployed
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 changed
feature/dashboard, Compose): the computer's dashboard from the copy on the phone, in one scrolling column. It draws every widget kind (total, bars per day, table with share bars, summary of a day), the time of the last update, a Day/Week segmented control, previous/next, a Material date picker that stops at today, a "Today" button when the page is not on today, the "not sent" line for a day or week the copy has no numbers for (no zeros), the hidden-projects line, and the empty state. The texts follow the iPhone page. Colours and spacing come from the shared tokens; the page never asks the computer.MainActivityshows the page, with a view model that keeps the holder across a turn of the screen and reads the copy again when a sync only brings it up to date.DashboardHolder: after each read it waits until the computer's next midnight and reads again, so a page left open across midnight moves to the new day on Android and on iPhone. A day the person picked stays where it is.CURRENT_PROJECT_VERSION261126.2 → 261126.3).Tests
DashboardHolderTest.todayMovesWhenTheClockPassesMidnightWhileThePageIsOpen: with the clock at 23:30 on the computer, today stays until midnight and then becomes the next day, with that day's numbers.DashboardHolderTest.aDayThePersonPickedStaysWhenTheClockPassesMidnight: a picked day is kept across midnight; only "today" moves.DashboardPageTest(instrumented, on a copy written the way a sync writes it, with no connection to a computer): every widget kind with today's numbers and the update time; previous day, previous week ("not sent") and a picked date; a day with no numbers says so and shows no zero; next is disabled on today; hidden-projects line; empty state before the first copy and after "Delete everything"; numbers stay with no computer.What ran
./gradlew :feature:dashboard:testAndroidHostTest: 17 tests, 0 failures (includes the two new ones)../gradlew check --continue: ktlint, detekt,checkStructure, and all Android tasks pass. The only failures are the iPhone ones (buildChatCoreIos,link…IosSimulatorArm64): this Mac has no Xcode app (xcode-select -pis the Command Line Tools,xcrun --sdk iphoneoscannot find the SDK).DashboardPageTestcompiles (compileDebugAndroidTestKotlin).Not done yet
DashboardPageTesthas not run on an emulator: the emulator and system image on this Mac are an incomplete install and are still downloading.iosApp/check.shand the iPhone Simulator check of the midnight move (needs Xcode).This is a draft until those run.