Skip to content
quarry View Ticket
Login

View Ticket

No way to create a team from the web; teams are API-only (G-74)

Closed70f5185020e5bba0c756827a5c7457a381a5fae7Created 75.2 days agoUpdated 68.0 days ago
Description2026-09-16 19:29:50
Found during Jan's e2e campaign (jva), 2026-09-16, build 0.1.0-beta+dd4619ef72b9. Catalog entry G-74: https://zeitforge.app/r/jva/dantest-sandbox/doc/trunk/GOTCHAS.md

Signed in as an ordinary account, /teams lists the teams and offers no button, link or form to create one. /teams/new, /teams/create and /t/new answer 404; /new (repository) and /me carry no team form. The only way to create a team today is POST /api/v1/teams {name, title, descr}, which works and applies the guards (name collisions with accounts and teams, character set, length).

Expected: a 'New team' entry point on /teams (or on /me) that posts to team.create, mirroring /new for repositories. RFC 0018 says any signed-in user may create teams.

Related team findings from the same pass, in the roundup ticket 4bc7035f and the catalog: G-71 team names are case-sensitive (UPPER and upper coexisted), G-72 team.delete has no confirm field, G-52 repo URLs move without redirects when a repo joins or leaves a team.

2026-09-17 21:24:05

Fixed and deployed. A team can be made from the web: GET /teams/new is the form, POST /teams calls team.create, and the empty teams page offers the control instead of claiming "anyone can make one" beside no way to do it.

The op was never the gap — team.create has existed as long as teams have, open to any signed-in account, with the creator becoming first owner in the same operation. What was missing was the door, so from a browser the control genuinely was unreachable.

Landing 748e966ebb28. Also fixed the part the audit did not spot: the Teams tab is hidden while the forge has no teams, so a button on the teams page alone would have sat somewhere unreachable at exactly the moment it was needed. The create menu carries the entry too, and unlike the repository entry beside it, it is not gated on admin — because team.create is not.

Verified live on 0.1.0-beta+5833fef9a792: /teams/new answers 200 with the form and posts to /teams. Guards in internal/web/teamnew_test.go cover the claim-matches-control pairing in both directions, the menu entry, the fields, and the refusal path.


Attachments: