Repository navigation
Conversation
Contributor
|
@AatmanAJ is attempting to deploy a commit to the Cap Software Inc Team on Vercel. A member of the Team first needs to authorize it. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub. |
Contributor
Author
|
@greptileai review |
Contributor
Author
|
@greptileai review |
Contributor
Author
|
@greptileai review |
1 similar comment
Contributor
Author
|
@greptileai review |
…to p06-finish2/settings
…o p06-finish2/uploads
…nto p06-finish2/analytics
…to p06-finish2/playback
… p06-finish2/social
…into p06-finish2/management
Contributor
Author
|
@greptileai review |
The switch put a Material ripple on its 44dp square touch target, so pressing a toggle showed a grey box around the 44x26 track. CapTheme now provides a press indication that fades the control's own pixels and draws a focus ring only for keyboard focus, so every clickable, selectable and toggleable in the design system presses without a box. The switch itself stretches its knob while held, and CapSwitchTrack lets toggleable rows show the same switch.
The sign-in and first-run heroes blurred each cloud with Modifier.blur inside a fixed box. RenderEffect clips the blur to that box, the widest box was squeezed to the screen width, a page-coloured slab under the bottom cloud blurred into a black smear in dark mode, nothing outside the hero was clipped, and API 29 and 30 had no blur at all. SkyHero now draws the design's exact gradient, rings and clouds, renders the clouds once into a software bitmap with BlurMaskFilter so every API level and vendor gets the same result, clips to its bounds and ends in the page colour. In dark mode the sky runs from blue into the page instead of through a white cloud bank. Both heroes now reach under the status bar, which gains a scrim once the page scrolls.
…ttings Notification rows drew the stock Material switch, which is a different size and colour from the 44x26 design switch every other settings row uses. They now show CapSwitchTrack. The two switch lines on Recording defaults each drew a top and a bottom hairline, so the rule between them was twice as thick as every other divider.
Keeps this layer's theme root, which already wraps Root in the picture in picture box.
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 the settings PR (#4758), which sits on the earlier Android PRs. Only the top 13 commits are new here, from
0d29e8c18onwards, including a merge of the settings PR atc34367b4eand two fixes from review. Once the PRs below merge this shows only its own diff.This PR adds the Analytics tab and the analytics for a single Cap, ported from iOS.
What is in it
Someone on Cap Pro can now see how their organisation's Caps, or one Cap, were watched: totals, a trend over time, where and on what they were watched, and the most watched Caps.
AnalyticsModelports the iOS model: one state per organisation, range and Space (loading, loaded, Cap Pro required, failed), a single load in flight per key, and nothing loaded until the organisation is known. The organisation's cached analytics show first under the iOS keyanalytics-<organisation>-<space or all>-<range>and the server's answer replaces them. A Cap's analytics are never cached, as on iOS. A failure with analytics already showing becomes a toast; otherwise it shows in place.Screenshots
All on the API 37 emulator, signed in to the fixture server, from builds of the live updates PR stacked on this one (
0ac84d286and38847eef8), which change nothing on these screens. The Cap Pro state uses the fixture's account without analytics. The error state was taken at38847eef8by loading 7D, stopping the fixture server and then picking 24H (light) and 30D (dark), ranges that had not loaded yet.Not captured: the chart while dragging, because the emulator captures did not show the selection; the analytics for one Cap; and the skeleton and gallery in dark, because the gallery's theme extra did not switch that screen.
Where it differs from iOS, on purpose
Fixes from review
c34367b4e, come in through a merge rather than a rebase, so the commits the device runs below were made on stay in the branch.Tests
:capkit:test: 231 tests, none new in this PR.:app:testDebugUnitTest: 462 tests, 20 of them new in this PR and 6 from the settings commits merged in. SessionModelTest gains one test for analytics during an organisation switch. AnalyticsModelTest (12) covers the Space filter surviving a switch that does not happen, and covers cached analytics showing first and the server's replacing them, Cap Pro being required, a failure shown in place or as a toast over loaded analytics, loading again only when forced, each range and Space kept apart, nothing loading before the organisation is known, the Space filter clearing on an organisation switch, a Cap's analytics never being cached, and a switch of organisation cancelling the load in flight and dropping its reply. TrendChartTest (4) covers dropped buckets, the round-number axis, the nearest point to a touch and the four date labels. BreakdownCardTest (3) covers the row labels, including ", " and "Unknown".Device runs,
connectedDebugAndroidTestonce per API against the fixture server. They ran on the live updates PR stacked on this one, which contains every commit here:0ac84d286: 85 tests, 81 passed. Three failures are CapDetailTest playback tests: playAndPause and aShareLinkWithATimeOpensTheCapThere timed out waiting for Compose to go idle, and aChosenSpeedIsKeptAfterTheAppIsOpenedAgain found no "Playback speed 1×" button. They failed the same way when the class was run again, and this PR does not touch playback. The fourth, LiveUpdateShadeTest, belongs to the live updates PR and is fixed there.38847eef8: 85 tests, 85 passed.Checked
./gradlew spotlessCheck :capkit:test :app:testDebugUnitTest :app:lintDebug :app:assembleDebug :app:assembleRelease :app:assembleDebugAndroidTestpasses on the last commit,091f9bfbf: capkit 231 tests and JVM 462 tests with no failures, and no lint errors or warnings. It also passed on the settings merge,dacb7306f, and before it, on6cc094a7a.Not checked
Confidence Score: 2/5

The PR is not ready to merge because organization analytics remain unreachable, the folder shortcut can open no dialog, and cancelled uploads can remain unfinished.
Findings
Fix with agent prompt
Summary
This update keeps transcript search above the scrolling list and limits the comment scroll adjustment to when the composer has focus.
Reviews (19) · Last reviewed commit: "Merge commit '9941a81ce301111da7a948dc1d..." · Reviewed by Greptile