Skip to content

fix(den): count pending invites and restore org drafts#1302

Open
src-opn wants to merge 1 commit intodevfrom
den-org-limit-followup
Open

fix(den): count pending invites and restore org drafts#1302
src-opn wants to merge 1 commit intodevfrom
den-org-limit-followup

Conversation

@src-opn
Copy link
Copy Markdown
Collaborator

@src-opn src-opn commented Apr 3, 2026

Summary

  • count pending invitations against the org member limit so invites stop once members plus pending invites reach the cap
  • keep the first org name in local storage when checkout interrupts org creation, then restore it on return with stronger resume copy and CTA text
  • preserve the existing support dialog flow when the invite limit is hit

Testing

  • pnpm install
  • git diff --check
  • tsc -p \"ee/apps/den-api/tsconfig.json\" --noEmit
  • tsc -p \"ee/apps/den-web/tsconfig.json\" --noEmit (still fails on the pre-existing ee/apps/den-web/app/api/_lib/upstream-proxy.ts:179 BodyInit typing issue)
  • Chrome MCP against local Den stack + local den-web: verified 4 pending invites plus the owner hit the member cap and the 5th invite shows the support dialog; verified the saved org draft repopulates the no-org create screen with updated headline/body/button text

Evidence

  • tmp/chrome-invite-limit-dialog.png
  • tmp/chrome-org-draft-return.png

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 3, 2026

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

Project Deployment Actions Updated (UTC)
openwork-app Ready Ready Preview, Comment Apr 3, 2026 1:55am
openwork-den Ready Ready Preview, Comment Apr 3, 2026 1:55am
openwork-den-worker-proxy Ready Ready Preview, Comment Apr 3, 2026 1:55am
openwork-landing Ready Ready Preview, Comment, Open in v0 Apr 3, 2026 1:55am
openwork-share Ready Ready Preview, Comment Apr 3, 2026 1:55am

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

The following comment was made by an LLM, it may be inaccurate:

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