Skip to content

feat(mobile): switch the dashboard between AI sessions and on screen - #207

Open
nikbackdev wants to merge 1 commit into
mobile-android-dashboardfrom
mobile-dashboard-source-switch
Open

nikbackdev wants to merge 1 commit into
mobile-android-dashboardfrom
mobile-dashboard-source-switch

Conversation

@nikbackdev

Copy link
Copy Markdown
Collaborator

Stacked on #206 (the Android Dashboard page); the base is that branch, and it moves to main when #206 merges.

What changed

The Dashboard page of the phone gets the switch between AI sessions and On screen, on iPhone and on Android. The switch picks which widgets of the computer's document are drawn: those that count AI-tool sessions, or those that count the applications and sites in front.

  • DashboardHolder (shared) keeps the choice next to the day and the span, so both platforms behave alike and moving by day, by week or to a date keeps it. showSource(source) sets it.
  • DashboardState gains source, sources (what the document has) and canSwitchSource. Widgets are filtered by their own source, else the document's, else AI sessions.
  • The switch is hidden when the document has widgets of one source only. If the document changes so that the chosen source is gone, the page falls back to the first source it has. The default is AI sessions.
  • The phone still counts nothing and never asks the computer: a widget of the other source with no numbers for the day shows the existing "not sent" line.
  • iPhone: a row of capsules (chosen one filled, others plain muted text), as in the third round of the mock-up. Android: Material 3 PrimaryTabRow, as in the same round. (The third round replaced the segmented control with these.)
  • Build numbers bumped: iPhone 261127.1, Android version code 5.

Tests

  • DashboardHolderTest (new): the switch changes the widgets drawn and survives moving by day, by week and to a date; going back to AI sessions; widgets of the other source with no numbers are "not sent"; hidden for a document of one source (AI sessions or on screen only); a choice the document no longer offers falls back.
  • DashboardPageTest (instrumented, fixture now has an optional on-screen table): the switch is absent for one source, changes the widgets, and keeps the choice when moving a day. Compiled, not run.

What ran

  • ./gradlew check --continue: everything passes (unit tests, detekt, ktlint, structure checks) except the iPhone tasks (buildChatCoreIos, link…TestIosSimulatorArm64), which need Xcode.
  • compileDebugAndroidTestKotlin: ok.

What did not run

This Mac has no Xcode and no Android emulator image, so iosApp/check.sh, the Simulator and emulator runs on the sync fixture, and the light/dark screenshots next to the mock-up are not done. The Swift change is not compiled.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: edcfa6d5-8c1e-4e64-a660-d809ca8f029c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@nikbackdev
nikbackdev force-pushed the mobile-dashboard-source-switch branch from 408b9bb to 053c3ac Compare November 27, 2026 13:47
Signed-off-by: Nikita.Bazhenov <226111163+nikbackdev@users.noreply.github.com>
@nikbackdev
nikbackdev force-pushed the mobile-dashboard-source-switch branch from 053c3ac to 542a3dd Compare November 27, 2026 13:51

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