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:
2026-11-25 12:17:15 -07:00
co-authored by Claude Opus 5.5
parent 210b1e57fc
commit d5fb1898e8
16 changed files with 545 additions and 13 deletions
+3
View File
@@ -527,3 +527,6 @@ fieldset.post-as { border: 0; padding: 0; margin: 0.5rem 0; }
fieldset.post-as label { display: inline-flex; margin-right: 1rem; }
input.tiny { width: 5.5rem; display: inline-block; }
.bare-main:has(.api-tool) { max-width: 52rem; }
.team-switch { display: flex; align-items: center; gap: 0.4rem; padding: 0 0.9rem 0.6rem; flex-wrap: wrap; }
.team-switch select { flex: 1; min-width: 0; padding: 0.3rem 0.5rem; font-size: 0.9rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
+4
View File
@@ -182,4 +182,8 @@
var meta = document.querySelector('meta[name="csrf-token"]');
if (meta && meta.content) e.detail.headers["X-CSRF-Token"] = meta.content;
});
// A select that submits its form when it changes (the team menu).
document.addEventListener("change", function (e) {
if (e.target.matches("select[data-autosubmit]")) e.target.form.requestSubmit();
});
})();