Skip to content

feat: let colleagues find a workspace by email domain - #4862

Draft
richiemcilroy wants to merge 14 commits into
building/team-path-87bbf787from
building/workspace-discovery-968c4543
Draft

richiemcilroy wants to merge 14 commits into
building/team-path-87bbf787from
building/workspace-discovery-968c4543

Conversation

@richiemcilroy

@richiemcilroy richiemcilroy commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Stacked on #4859.

Adds an admin setting in Settings, Members: "Let people at acme.com find this workspace". It can only be turned on for a domain the admin holds a verified email on, or one verified through the workspace's SSO connection. People with a verified email on that exact domain then see the workspace on My Caps and can ask to join.

  • Requests wait for an admin to approve or decline, or join straight away when the admin turns on auto-approve. Joiners arrive as members without a Pro seat.
  • Approve and decline are idempotent and record who decided and when. Turning the setting off or changing the domain revokes pending requests.
  • Requests are rate limited per person and per workspace.
  • Migration: 0069_workspace_discovery (organization columns plus organization_join_requests).
  • Off by default behind CAP_WORKSPACE_DISCOVERY. Admin emails are behind CAP_WORKSPACE_DISCOVERY_EMAILS, also off.

Demo and checks to follow.

Confidence Score: 5/5RetriggerView in Greptile

No new blocking issue was found in this re-review.

Summary

Adds workspace discovery by verified email domain, join requests, admin decisions, optional automatic approval, and admin emails.

  • Admins can set which email domain can find a workspace and review requests.
  • Colleagues with a verified work email can find matching workspaces and ask to join.

Reviews (3) · Last reviewed commit: "fix(web): filter closed requests before ..." · Reviewed by Greptile

@vercel

vercel Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Skipped Skipped Dec 4, 2026 3:06pm UTC

@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

@vercel
vercel Bot temporarily deployed to Preview – cap-status December 4, 2026 14:55 Inactive
Comment thread apps/web/lib/rate-limit.ts Resolved
@vercel
vercel Bot temporarily deployed to Preview – cap-status December 4, 2026 15:00 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

Comment thread apps/web/lib/workspace-discovery.ts Resolved
…o building/workspace-discovery-968c4543

# Conflicts:
#	apps/web/app/(org)/dashboard/caps/components/TeamPathSlot.tsx
@vercel
vercel Bot temporarily deployed to Preview – cap-status December 4, 2026 15:06 Inactive
@vercel
vercel Bot temporarily deployed to Preview – cap-status December 4, 2026 15:06 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – cap-web — bd96fe63 Deployed Dec 4, 2026 by vercel[bot]
Preview – cap-status — bd96fe63 Deployed Dec 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant