Repository navigation
feat: shared workspace card for teams already on Cap - #4859
Draft
richiemcilroy wants to merge 13 commits into
Draft
richiemcilroy wants to merge 13 commits into
richiemcilroy wants to merge 13 commits into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
…bbf787 # Conflicts: # apps/web/lib/public-email-domains.ts
Member
Author
|
hey @greptileai, please re-review the PR |
Comment on lines
+213
to
+215
| return email | ||
| .slice(email.lastIndexOf("@") + 1) | ||
| .replace(/^ +| +$/g, "") |
Member
Author
|
hey @greptileai, please re-review the PR |
This branch was successfully 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.
Adds a small card on My Caps for people on a work email whose colleagues already have Cap accounts. It shows a rounded count of other people on the same domain, then lets them name a shared workspace, invite teammates through the existing invite flow and buy Pro seats through the existing checkout. "Not now" hides it for 90 days.
emailVerifiedwhen the provider confirms the address.users.emailDomainis a stored generated column with an(emailDomain, emailVerified)index. Migration:0068_users_email_domain.@cap/database/public-email-domainsnow include a vendored free email provider list, used by both the card and the Loops work email signal.CAP_TEAM_PATH_EXCLUDED_DOMAINSexcludes extra domains.checkout_sourceonpurchase_completed.CAP_TEAM_PATH_CARD.Demo and checks to follow.
Confidence Score: 5/5

The latest changes appear safe to merge and address both earlier findings.Summary
Adds an optional shared-workspace card, checks eligibility on the server, records provider-confirmed email addresses, and tracks purchases started from the card.
The latest changes address both earlier findings:
No new actionable issues were found. Checks were based on source review; no runtime tests or browser checks were run.
Reviews (2) · Last reviewed commit: "fix(database): trim the stored email dom..." · Reviewed by Greptile