Repository navigation
feat(mobile): switch the dashboard between AI sessions and on screen - #207
Open
nikbackdev wants to merge 1 commit into
Open
nikbackdev wants to merge 1 commit into
nikbackdev wants to merge 1 commit into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
nikbackdev
force-pushed
the
mobile-dashboard-source-switch
branch
from
November 27, 2026 13:47
408b9bb to
053c3ac
Compare
Signed-off-by: Nikita.Bazhenov <226111163+nikbackdev@users.noreply.github.com>
nikbackdev
force-pushed
the
mobile-dashboard-source-switch
branch
from
November 27, 2026 13:51
053c3ac to
542a3dd
Compare
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.
Stacked on #206 (the Android Dashboard page); the base is that branch, and it moves to
mainwhen #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.DashboardStategainssource,sources(what the document has) andcanSwitchSource. Widgets are filtered by their own source, else the document's, else AI sessions.PrimaryTabRow, as in the same round. (The third round replaced the segmented control with these.)261127.1, Android version code5.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.