Skip to content

Make a human member's email optional - #2

Merged
springfall2008 merged 1 commit into
mainfrom
feat/optional-member-email
Nov 7, 2026
Merged

springfall2008 merged 1 commit into
mainfrom
feat/optional-member-email

Conversation

@springfall2008

Copy link
Copy Markdown
Owner

A member's email is only used to link it to a Supabase login (auth.users), for a possible web UI later. MCP tokens work without one. Until now the admin CLI and setup.ts refused to create a human member without an email.

Changes

  • createMember (scripts/lib/admin-db.ts) no longer requires an email; a blank one is stored as null.
  • admin.ts create-member <name> [--email <address>] | --bot
    • With no email, it creates a human member and reports "(no email)".
    • --human <email> still works as the older spelling.
    • --bot together with an email is refused.
  • setup.ts stores an email only when --email is given. It no longer falls back to git config user.email.
  • README updated.

Testing

  • deno task check is clean.
  • 62 unit tests and 56 integration tests pass. The admin test now asserts that a human member without an email is created with a null email and no auth link.
  • I ran the CLI against the local stack:
    • no email, --email and --human <email> all create the member;
    • --bot --email exits 1.

🤖 Generated with Claude Code

Email is only used to link a member to a Supabase login (auth.users), so
neither the admin CLI nor setup.ts requires it any more. create-member takes
--email <address> (the older --human <email> still works); with neither it
creates a human member with no email. setup.ts no longer falls back to
git config user.email: an email is stored only when given. --bot with an
email is refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@springfall2008
springfall2008 merged commit b65b24b into main Nov 7, 2026
1 check passed
@springfall2008
springfall2008 deleted the feat/optional-member-email branch November 7, 2026 14:52
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