Repository navigation
Conversation
This was referenced Dec 2, 2026
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 |
Contributor
Author
|
@greptileai review |
Contributor
Author
|
@greptileai review |
1 similar comment
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 analytics PR (#4761), which sits on the earlier Android PRs. Only the top 13 commits are new here, from
588eb2f0donwards, including merges of the analytics PR atdacb7306fand091f9bfbfand three fixes from review. Once the PRs below merge this shows only its own diff.This PR adds Live Updates, the Android counterpart of the iOS Live Activities.
What is in it
The Android counterpart of the two iOS Live Activities (upload progress and screen recording), built on the upload notifications from the upload PR. Someone uploading a file or importing from Loom now sees the same phases and wording as on an iPhone, in the shade and, on Android 16 QPR2 and later, as a promoted Live Update with a status bar chip.
Notificationslives in the app's services and owns two low importance channels, "Uploads" and "Screen recording".Notification.ProgressStyle, indeterminate while preparing or finishing, with its percentage as the chip text. Promotion is requested on Android 16 QPR2 (API 36.1) and later, which needsPOST_PROMOTED_NOTIFICATIONS. Earlier versions keep the plain ongoing notification with a progress bar.cap://s/<id>once the Cap exists, and the app before then. The recording notification and its Stop action opencap://record/stop, the iOS activity's link.RecordingUploadFeedis a small interface for the recorder side: each update names the Cap, its title and its phase, and the upload centre shows it as an "Uploading recording" notification with the same throttle, stale state and dismissal.RecordingUploadFeed, and the screen recorder PR posts the recording notification and acts oncap://record/stop.Screenshots
On the emulators at
38847eef8. A fixture upload finishes too quickly to catch every phase, so each one was posted through the app's ownNotificationsbuilder from a test harness that is not part of this PR; the real upload path is covered by LiveUpdateShadeTest. API 37 shows the promoted Live Update with its chip, and API 29 the plain notification with a progress bar.Where it differs from iOS, on purpose
Fixes from review
The analytics PR is merged in. It comes in at
dacb7306f, with the settings layer it now carries, and again at091f9bfbfwith its own fixes from review, through a merge rather than a rebase, so the commits the device runs below were made on stay in the branch.The Loom import phases follow the shared import checks. The upload PR's
watchLoomImportalready removes the import notification when its checks run out, and its upload queue stops every watch when the account changes. The Live Update phases for an import now run inside those checks throughfollowLoomImport, so LoomImportWatchTest can run them against a local server.An upload whose storage link cannot be renewed is kept. The upload PR renews an expired storage link through
/api/mobile/uploads/:id/target, which feat(web): re-sign a mobile upload's storage target #4744 adds. Against a server without that route the renewal answers 404, storage refuses the old link with 403, and the worker used to delete the saved upload and fail it for good. It now keeps the upload and leaves WorkManager to try again, so the upload goes through once a server with feat(web): re-sign a mobile upload's storage target #4744 can renew the link. A renewed link that storage also refuses still fails as before. UploadTargetRefreshTest gains one test, and its test for a server without the route now expects the upload to be kept for another try.The preparing notification stays until the worker takes over. It was removed as soon as the upload was queued, so while Android held the worker back, for example until there was a network, nothing showed that an upload was waiting. It now stays until the worker reports progress, which it does after posting its own notification, or until the work ends. Once the Cap exists the notification is tagged with the Cap's ID rather than a random one, so the worker clears it when it shows its own notification or finishes, even if the app was closed in between. UploadTest gains two tests for this.
Depends on
/api/mobile/uploads/:id/target, which feat(web): re-sign a mobile upload's storage target #4744 adds. Without it a late upload is kept and tried again rather than lost, but it cannot finish until feat(web): re-sign a mobile upload's storage target #4744 is deployed.Tests
:capkit:test: 232 tests, 1 of them new in this PR.:app:testDebugUnitTest: 472 tests, 10 of them new in this PR. Another 8 come in through the analytics PR: 6 from the settings commits and 2 from its fixes from review. LoomImportWatchTest (2): an import that never finishes is cleared after the last check, and a finished one stays as done. LiveUpdateTest (6): every kind and phase, fresh and stale, maps to the iOS status line; percentages round and stay in range; the screen recording wording; thecap://slink; the 2 percent or 2 second throttle; and the 45 second stale state, on virtual time.Device runs,
connectedDebugAndroidTestonce per API against the fixture server:0ac84d286: 85 tests, 81 passed. LiveUpdateShadeTest failed, in the run and when the class was run again: the notification was posted with the right title and text, but the test looked for it before the shade had finished opening.38847eef8makes it wait for the text in the shade, and with that it passes on API 37. The other 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 run again, and this PR does not touch playback.38847eef8: 85 tests, 85 passed, LiveUpdateShadeTest included.Checked
./gradlew spotlessCheck :capkit:test :app:testDebugUnitTest :app:lintDebug :app:assembleDebug :app:assembleRelease :app:assembleDebugAndroidTestpasses on the last commit,6cb746a47: capkit 232 tests and JVM 472 tests with no failures, and no lint errors or warnings. It also passed on the earlier merge,788ae5167, and before it, on38847eef8.Not checked
Notifications.postand a manual check.Confidence Score: 4/5

The latest focus changes add no confirmed issue, but the existing Loom Cancel action still needs fixing before merge.
Findings
Fix with agent prompt
Summary
Adds Android Live Updates for uploads, Loom imports, and recording hooks.
Reviews (20) · Last reviewed commit: "Merge commit '7c4199357efe874dec69abeef3..." · Reviewed by Greptile