Skip to content

Add user search to project collaborator invite form - #1447

Draft
dnass wants to merge 5 commits into
mainfrom
1219-improve-project-invites
Draft

dnass wants to merge 5 commits into
mainfrom
1219-improve-project-invites

Conversation

@dnass

@dnass dnass commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Closes #1219.

Replaces email-based project invites with a user search form, similar to the MuckRock Accounts org invite form. Users can be found by a partial name/username match or an exact match on any of their verified email addresses.

Screen.Recording.2026-10-28.at.5.57.41.PM.mov

This PR depends on both MuckRock/squarelet#895 and MuckRock/documentcloud#523. I'm opening it as a draft until those are merged. To test locally, Squarelet's CORS_ORIGIN_WHITELIST env var must include https://www.dev.documentcloud.org, and the production CORS whitelist may need to be updated too.

@github-actions

Copy link
Copy Markdown

Preview deployed: https://preview-1447.staging.documentcloud.org

@dnass
dnass requested review from allanlasser and eyeseast October 28, 2026 22:02
@github-actions

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 53.61% 4299 / 8019
🔵 Statements 52.15% 5052 / 9687
🔵 Functions 47.15% 1614 / 3423
🔵 Branches 50.45% 2223 / 4406
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/lib/api/accounts.ts 90.9% 92.45% 95.45% 90.9% 230-238
src/lib/api/collaborators.ts 100% 100% 100% 100%
src/lib/api/types.d.ts 0% 0% 0% 0%
src/lib/components/forms/InviteCollaborator.svelte 0% 0% 0% 0% 45-67
src/lib/components/forms/UserListItem.svelte 0% 0% 0% 0% 11-20
src/lib/components/inputs/Select.svelte 86.2% 50% 60% 85.18% 39, 54-56
src/routes/(app)/projects/[id]-[slug]/+page.server.ts 0% 0% 0% 0% 11-203
Generated in workflow #1442 for commit 0ebc11b by the Vitest Coverage Report Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve UX when inviting users to collaborate on a project

1 participant