Phase 13, part 3: signing up, and several teams per person
On the multi-tenant edition anyone can set up a team: their account, the company and its website, whose registered domain the team works on (the profile keeps to it). A person can belong to several teams and switch between them from the sidebar, or set up another. Inviting someone who has an account adds them to the team. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -55,7 +55,7 @@ tools over MCP, approvals, limits and visibility, and the JSON API. Schema
|
||||
39.
|
||||
|
||||
**Phase 13 (multi-tenant) is under way** on branch `phase13`, with a
|
||||
Postgres schema per team (decided 2026-11-26); parts 1–2 are built.
|
||||
Postgres schema per team (decided 2026-11-26); parts 1–3 are built.
|
||||
|
||||
**Phase 12 (signing in with the Core, OIDC) is set aside for now**
|
||||
(2026-11-26): before it starts, the user will share the Federated Core's
|
||||
@@ -2825,6 +2825,29 @@ stand.
|
||||
(managed Postgres gives it to the main user). Dropping a team drops its
|
||||
role and what it was granted; tests leave no roles or schemas behind.
|
||||
|
||||
**Part 3 built 2026-11-26** on `phase13`.
|
||||
- `/signup` (multi-tenant only; linked from the sign-in page): name, email,
|
||||
password, the company's name and its website. It makes the person, the
|
||||
team (its schema and role), makes them its owner, starts the company
|
||||
profile with the website, and signs them in. An address that has an
|
||||
account signs in instead. Five sign-ups per IP in 15 minutes. The trial
|
||||
comes with Phase 14.
|
||||
- **One website domain per team**: the website's registered domain (the
|
||||
public suffix list, `golang.org/x/net/publicsuffix`: `shop.example.co.uk`
|
||||
is `example.co.uk`), kept on the team. The company profile refuses a
|
||||
website on another domain, and says to set up another team for it. The
|
||||
server edition doesn't check this yet (it has no team row); the local
|
||||
edition keeps its list.
|
||||
- Several teams per person: a team menu at the top of the sidebar (it
|
||||
switches as soon as it's changed; a button without JavaScript), and
|
||||
*New team*. Switching checks the person is in it and that it's active.
|
||||
Signing in opens the team worked in last.
|
||||
- Invitations work within the team; inviting an address that has an
|
||||
account (from another team) adds it to this one with the account it has,
|
||||
and emails them.
|
||||
- Not yet: an email address confirmed at sign-up. Domain proof (part 4)
|
||||
keeps an unconfirmed team from doing anything with a website.
|
||||
|
||||
1. **Teams everywhere.**
|
||||
- Every table that holds a company's data gets `team_id`, and its
|
||||
unique keys include it. The settings table's key becomes
|
||||
|
||||
Reference in New Issue
Block a user