Skip to content

chore(console): remove invite-code and waitlist leftovers - #207

Merged
ryuzdev merged 3 commits into
mainfrom
chore/console-remove-invite-codes
Nov 30, 2026
Merged

ryuzdev merged 3 commits into
mainfrom
chore/console-remove-invite-codes

Conversation

@ryuzdev

@ryuzdev ryuzdev commented Nov 30, 2026

Copy link
Copy Markdown
Member

Open beta: anyone signs up with an email, so invite codes and the access waitlist are obsolete.

What goes away:

  • Console: Admin invite-code cards (Generate/AdminCodes/Waitlist), shell atoms/loaders/mint/revoke/load-more, API types, waitlist_size stat, palette/WebMCP invites-tab references. Legacy ?t=invites links land on the account hub.
  • Server: DELETE auth/invites.rs; /api/console/admin/invites* and /api/console/admin/waitlist handlers+routes; verification.inviteCode writes; admin_stats.waitlist_size; invite_used error; invite fields on OAuth/console sign-in forms.
  • Tests of removed behavior deleted; new closed_signup_admits_known_emails_and_refuses_strangers test pins the kill-switch contract.
  • Docs: STYLE row, console-tour admin bullet, sign-in mentions, faq Q&A; outer.env.example reworded.

Kept per owner decision: OUTER_SIGNUP kill switch (unset = closed, prod runs open; L-26 guard untouched), beta_allowlist + collaborator flow, closed_beta refusal with a plain message ("Sign-ups are paused right now. Try again later."). Closed signup refuses strangers without recording them anywhere.

This also fixes the 3 failing main tests about the account-hub invites tab (expectations updated to the post-removal contract).

Checks run:

  • bun test pages/console: 108 pass; blume build --isolated: OK
  • cargo fmt --all --check: clean; cargo clippy --all-targets --locked -- -D warnings: clean (one pre-existing tower-http unused-dep note, also on main)
  • Targeted: auth 71, http::console 223, moderation 60, mcp 225, config 36, collaborators 15 — all pass
  • rg -i 'invite.?code|waitlist|access.?code' on web/pages/console, crates/outer/src, web/docs, deploy example: only intentional hits (redirect comments, no-copy assertions, zero-rows guard, collaborator test name)

Left for the owner (no migration written, no data deleted): now-unused invite_code and waitlist tables and the verification.inviteCode column.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 21 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0f5de167-07d3-4238-a9eb-67219e2a5ce1
Commits

Reviewing files that changed from the base of the PR and between 71f3c91 and c395d7e.

Files selected for processing: 26

  • README.md
  • crates/outer/src/auth/invites.rs
  • crates/outer/src/auth/mod.rs
  • crates/outer/src/auth/oauth.rs
  • crates/outer/src/auth/pages.rs
  • crates/outer/src/auth/tests.rs
  • crates/outer/src/collaborators.rs
  • crates/outer/src/http/console.rs
  • crates/outer/src/http/console_admin.rs
  • crates/outer/src/mcp/error.rs
  • crates/outer/src/mcp/tests.rs
  • crates/outer/src/moderation/admin.rs
  • deploy/outer.env.example
  • web/docs/STYLE.md
  • web/docs/get-started/console-tour.mdx
  • web/docs/get-started/sign-in.mdx
  • web/docs/help/faq.mdx
  • web/pages/console/_islands/actions/admin-moderation.ts
  • web/pages/console/_islands/actions/console.ts
  • web/pages/console/_islands/api.ts
  • web/pages/console/_islands/common.tsx
  • web/pages/console/_islands/console.tsx
  • web/pages/console/_islands/icons.tsx
  • web/pages/console/_islands/route.test.ts
  • web/pages/console/_islands/views.tsx
  • web/pages/console/_islands/webmcp.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Open beta: anyone signs up with an email, so invite codes and the
access waitlist are obsolete. The Admin invite-code cards, waitlist
table, mint/revoke endpoints, waitlist endpoint and stats field, the
OTP invite carry/consume path, invite form fields, and all docs
mentions are gone.
Kept per owner decision: OUTER_SIGNUP kill switch (unset = closed),
beta_allowlist and the collaborator flow, closed_beta refusal with a
plain paused message. Closed signup now refuses strangers without
recording them; old ?t=invites links land on the account hub.
Checks: bun test pages/console 108 pass; blume isolated build OK;
cargo fmt clean; clippy -D warnings clean (one pre-existing
tower-http unused-dep note, also on main); targeted tests pass:
auth 71, http::console 223, moderation 60, mcp 225, config 36,
collaborators 15. rg for invite.?code|waitlist|access.?code shows
only intentional hits (redirect comments, no-copy assertions, a
zero-rows regression guard). Unused tables left for the owner:
invite_code, waitlist, verification.inviteCode. No migration.
Reviewer lows: closed-signup coverage in both reviewer tests, no
verification row for refused strangers, slimmer check_signup, module
doc fix, hasOwn guard on the legacy tab lookup, stale comment/icon/
copy cleanup. Kill switch and collaborator flow unchanged.
cargo fmt wrap of the verification-row assert.
@ryuzdev
ryuzdev force-pushed the chore/console-remove-invite-codes branch from 45d5dc6 to c395d7e Compare November 30, 2026 22:52
@ryuzdev
ryuzdev merged commit 9e65f92 into main Nov 30, 2026
5 checks passed
@ryuzdev
ryuzdev deleted the chore/console-remove-invite-codes branch November 30, 2026 22:57
ryuzdev added a commit that referenced this pull request Dec 1, 2026
- Migration 0008 drops invite_code (+ index), waitlist and verification.inviteCode; unused since #207, owner approved deleting the data.
- Dry-run on a copy of the prod database: both tables were already empty; integrity_check ok.
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