From bb9ce52c9dce58a9cd26c7867c46d9b7c54faa75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Gonz=C3=A1lez?= <7822554+AlexTMjugador@users.noreply.github.com> Date: Fri, 26 Sep 2025 17:42:53 +0200 Subject: [PATCH] feat(labrinth): hide orgs without a purpose, re-enable organization creation (#4426) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(labrinth): set `DELPHI_URL` to a valid default in `.env.local` * feat(labrinth): make orgs not publicly visible until they meet some conditions * Revert "Org disabled frontend (#4424)" This reverts commit 2492b11ec0a005d84f04e7460b4bf6665ee8efce. * changelog: update for re-enabling organization creation * chore: run `sqlx prepare` * chore(labrinth): tweak tests to work with new org changes * tweak: apply @triphora's suggestion Co-authored-by: Emma Alexia Signed-off-by: Alejandro González <7822554+AlexTMjugador@users.noreply.github.com> * tweak: document `is_visible_organization` relationship with `Project#is_searchable` --------- Signed-off-by: Alejandro González <7822554+AlexTMjugador@users.noreply.github.com> Co-authored-by: Emma Alexia --- .../components/ui/OrganizationCreateModal.vue | 30 ++++----------- apps/labrinth/.env.local | 2 +- ...31f8853235275e4d5614636b5db524a4920d5.json | 22 +++++++++++ apps/labrinth/src/auth/checks.rs | 38 +++++++++++++++++-- apps/labrinth/src/models/v3/projects.rs | 10 +++-- apps/labrinth/src/routes/v3/organizations.rs | 15 +++++++- apps/labrinth/src/routes/v3/teams.rs | 27 +++++++------ apps/labrinth/tests/scopes.rs | 23 +++++++++++ apps/labrinth/tests/teams.rs | 20 +--------- packages/utils/changelog.ts | 6 +++ 10 files changed, 130 insertions(+), 63 deletions(-) create mode 100644 apps/labrinth/.sqlx/query-eb792d5033d7079fe3555593d8731f8853235275e4d5614636b5db524a4920d5.json diff --git a/apps/frontend/src/components/ui/OrganizationCreateModal.vue b/apps/frontend/src/components/ui/OrganizationCreateModal.vue index 1e2d8fc6d..e1389eda4 100644 --- a/apps/frontend/src/components/ui/OrganizationCreateModal.vue +++ b/apps/frontend/src/components/ui/OrganizationCreateModal.vue @@ -1,14 +1,7 @@