mirror of
https://github.com/penpot/penpot.git
synced 2026-11-26 21:00:32 +00:00
* ✨ Add nitrate methods to bring owned teams into an organization Nitrate lets an organization owner add the teams they own, outside any organization, from the Admin Console. Three management methods give it what it needs: - get-owned-teams-detail lists the owned, non-default teams of the current profile with the get-teams-detail fields plus member ids, so Nitrate can count members new to the organization. - count-organization-team-invitations-for-non-members counts, per team, the pending invitations for people outside the organization. - send-organization-setup-sso-emails-for-team sends the SSO email to the people an added team brings in, as add-team-to-organization does. get-teams-detail now shares its row query with the new method. AI-assisted-by: claude-opus-5-5 * ♻️ Rename the team detail row helper apart from its method The private helper shared by get-teams-detail and get-owned-teams-detail had the same name as the get-teams-detail RPC method, which read as one calling the other. It is now get-teams-detail-rows. AI-assisted-by: claude-opus-5-5 * 🔧 Test empty lists in the invitation count Cover count-organization-team-invitations-for-non-members at the method boundary: an empty team-ids list gives no counts, and an empty member-ids list, or one whose profiles give no email, counts every pending invitation of the requested teams. AI-assisted-by: claude-opus-5-5