Repository navigation
Conversation
|
@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. |
|
@greptileai review |
|
@greptileai review |
1 similar comment
|
@greptileai review |
|
@greptileai review |
|
@greptileai review |
# Conflicts: # apps/mobile-android/app/src/main/kotlin/so/cap/mobile/features/cap/CapDetailScreen.kt
# Conflicts: # apps/mobile-android/app/src/main/res/values/upper_layer_resources.xml
| val upgraded = session.plan?.upgraded | ||
| QuietRow( | ||
| label = stringResource(R.string.settings_plan), | ||
| value = | ||
| if (upgraded == null) "" | ||
| else if (upgraded) stringResource(R.string.settings_plan_pro) | ||
| else stringResource(R.string.settings_plan_free), | ||
| trailing = { if (upgraded == null) SettingsSpinner() }, |
There was a problem hiding this comment.
Plan never recovers or updates
The redesigned settings page removes Retry, pull-to-refresh and the resume check for the plan. refreshPlan() now runs only when the session starts. If that request fails, this row spins for the rest of the session. If a free user upgrades on the web, the app keeps treating them as free until restart or sign-in. Restore the error/retry state and plan refresh on return.
Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/mobile-android/app/src/main/kotlin/so/cap/mobile/features/settings/SettingsScreen.kt
Line: 436-443
Comment:
**Plan never recovers or updates**
The redesigned settings page removes Retry, pull-to-refresh and the resume check for the plan. `refreshPlan()` now runs only when the session starts. If that request fails, this row spins for the rest of the session. If a free user upgrades on the web, the app keeps treating them as free until restart or sign-in. Restore the error/retry state and plan refresh on return.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.| if (upgraded == false) { | ||
| QuietRow( | ||
| label = stringResource(R.string.settings_upgrade), | ||
| onClick = { openInAppBrowser(context, "https://cap.so/dashboard") }, |
There was a problem hiding this comment.
The upgrade row no longer checks BuildConfig.WEB_UPGRADE, although the flag is still false. Every free user now gets a web upgrade link. The PR explicitly says this must stay off until Cap decides how to handle Google Play’s payment rules. Restore the flag check.
Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/mobile-android/app/src/main/kotlin/so/cap/mobile/features/settings/SettingsScreen.kt
Line: 445-448
Comment:
**Upgrade flag is bypassed**
The upgrade row no longer checks `BuildConfig.WEB_UPGRADE`, although the flag is still `false`. Every free user now gets a web upgrade link. The PR explicitly says this must stay off until Cap decides how to handle Google Play’s payment rules. Restore the flag check.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.| ) | ||
| QuietRow( | ||
| label = stringResource(R.string.settings_help), | ||
| onClick = { openInAppBrowser(context, "https://cap.so/help") }, |
There was a problem hiding this comment.
Help & Support now opens https://cap.so/help, but the website has no /help page or redirect. Documentation lives at /docs, which CapEnvironment.supportUrl already supplies. Use that URL so users reach the documentation instead of a missing page.
Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/mobile-android/app/src/main/kotlin/so/cap/mobile/features/settings/SettingsScreen.kt
Line: 484
Comment:
**Help opens a missing page**
Help & Support now opens `https://cap.so/help`, but the website has no `/help` page or redirect. Documentation lives at `/docs`, which `CapEnvironment.supportUrl` already supplies. Use that URL so users reach the documentation instead of a missing page.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Restore retry and resume refresh for plan loading, keep the web upgrade behind its build flag, and point help links at existing pages.
Only move the detail feed when its own composer opens the keyboard. A keyboard that is already closing from the link sheet can otherwise hide the video for a moment, scroll past the header and leave the cap title hidden after playback returns.
|
@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.
Stacked on the editor PR (#4754), which sits on the earlier Android PRs. Only the top 25 commits are new here, 1d6a637..c34367b: 24 commits and a merge of #4754's latest fixes, from "lay out the settings root in sections" to "ignore organisation reads from before a change". Once the PRs below merge this shows only its own diff.
This PR adds the settings from iOS, in full apart from push.
What is in it
Someone can now edit their profile and photo, run their organisation, choose which emails they get, see their plan, reach help and the legal pages, and ask for their account to be deleted.
Fixes from review
user@plus the whole value, so a stored email address or a comma-separated list showed as invalid and Save stayed disabled even for a name change. Each entry is now checked as a domain or an email address, the same rules as the mobile route.After the first review on this PR, and with #4754's latest fixes merged in:
To test the organisation form on the JVM, its state moved from the screen into OrganizationSettingsModel first, with no change in behaviour.
Screenshots
All on the API 37 emulator before the review fixes, none of which change these screens, signed in to the fixture server as an owner on Cap Pro. The API 29 settings use the same layout.
Where it differs from iOS, on purpose
WEB_UPGRADEbuild flag, which is off, until Cap decides its position on upgrade links under Google Play's payments rules.Tests
:capkit:test: 231 tests, none new in this PR.:app:testDebugUnitTest: 442 tests, 29 of them new. OrganizationSettingsModelTest (8) covers the switch, the email restriction rules, drafts kept across an icon change, a save and an icon change that finish after the screen is gone, a name save that an icon answer cannot undo, a save queued behind an icon change that reaches the server before a switch, and a refresh asked for before a save that cannot bring the old name back. SettingsRequestsTest (4) cancels a stand-in screen scope while the server holds the reply and checks that an account deletion still signs out and a saved name still reaches the app, and checks that a photo answer cannot undo a name save, from the same visit or an earlier one. NotificationSettingsModelTest (13) drives the save queue against a loopback server that holds replies: a second change waits for the first answer, an earlier reply cannot flip a later switch back, a refresh during a save keeps the switches, a read asked for before a change is dropped, a read that overlaps a save and answers last is dropped, and a failed save drops the queue and returns to the server state. SessionModelTest gains 4, for the plan error and retry, for replacing the signed-in user after an edit, for an older bootstrap answer that must not bring the old user back, and for a bootstrap read from before an organisation change that a fresh one replaces. Each review fix's test fails without its fix.Device runs,
connectedDebugAndroidTestonce per API against the fixture server, on this branch before #4754's latest fixes and the review fixes were added:c34367b4e, with the review fixes, SettingsTest (4), SignInTest (13) and ImageEncoderTest (6) pass on both the API 37 and API 29 emulators.Checked
./gradlew spotlessCheck :capkit:test :app:testDebugUnitTest :app:lintDebug :app:assembleDebug :app:assembleRelease :app:assembleDebugAndroidTestpasses on the last commit, c34367b, run once with--no-build-cache --rerun-tasks: 442 JVM tests in 35 classes and 231 capkit tests in 16 classes, no failures, and lint found no errors or warnings.Not checked
c34367b4e; only the settings, sign-in and image encoder classes ran there.Confidence Score: 2/5

The PR still needs fixes for the exposed upgrade link, incomplete plan refresh and upload cancellation that can exceed Android’s broadcast deadline.
Findings
Fix with agent prompt
Summary
This stacked PR adds Android settings for profiles, organisations, notifications, plans and account deletion.
Since the previous review:
No new actionable findings were accepted.
Reviews (23) · Last reviewed commit: "Merge commit '1e2e9c4d530a47f6081bef52a1..." · Reviewed by Greptile