Skip to content

feat(mobile): show the dashboard on Android - #206

Draft
nikbackdev wants to merge 1 commit into
mainfrom
mobile-android-dashboard
Draft

nikbackdev wants to merge 1 commit into
mainfrom
mobile-android-dashboard

Conversation

@nikbackdev

Copy link
Copy Markdown
Collaborator

What changed

  • Android Dashboard page (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.
  • Wiring: the Dashboard tab in MainActivity shows 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.
  • "Today" follows the clock in the shared 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.
  • README updated; build number bumped (Android version code 3 → 4, CURRENT_PROJECT_VERSION 261126.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 -p is the Command Line Tools, xcrun --sdk iphoneos cannot find the SDK).
  • DashboardPageTest compiles (compileDebugAndroidTestKotlin).

Not done yet

  • DashboardPageTest has not run on an emulator: the emulator and system image on this Mac are an incomplete install and are still downloading.
  • iosApp/check.sh and the iPhone Simulator check of the midnight move (needs Xcode).
  • Screenshots in light and dark next to the mock-up.
  • The numbers against the computer's dashboard on a real phone (the person's check after merge).

This is a draft until those run.

Signed-off-by: Nik <226111163+nikbackdev@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant