Skip to content

fix: Share dialog now lists everybody with access: org members and project members - #1210

Merged
Bl3f merged 3 commits into
mainfrom
fix/share-dialog-list-1088
Jul 21, 2026
Merged

fix: Share dialog now lists everybody with access: org members and project members#1210
Bl3f merged 3 commits into
mainfrom
fix/share-dialog-list-1088

Conversation

@ad4mou

@ad4mou ad4mou commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Sharing a chat or story now lets you pick anyone who can access the project, including people who have access through the organization, not just those added directly to the project (#1088).

  • The share list now includes org members, so you can share a specific chat/story with them.
  • Editing who a chat is shared with no longer silently drops org members.
  • Team settings is unchanged -> it still shows only direct project members.
  • Added a backend test covering direct, org-only, both (project role wins), project-only context_admin, and self-hosted (no org) cases.

Closes #1088

Review in cubic

@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

🧹 Preview Removed

The preview deployment for this PR has been cleaned up.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 5 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread apps/backend/src/trpc/shared-chat.routes.ts Outdated

@Bl3f Bl3f left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small question first.

Comment thread apps/backend/src/queries/project.queries.ts Outdated
listAllUsersWithRoles -> listProjectMembersWithRoles (direct project members only)
listProjectAccessibleUsersWithRoles -> listUsersWithProjectAccess (direct + org-inherited)
@ad4mou
ad4mou requested a review from Bl3f July 21, 2026 10:17
@Bl3f
Bl3f merged commit 988010d into main Jul 21, 2026
6 checks passed
@Bl3f
Bl3f deleted the fix/share-dialog-list-1088 branch July 21, 2026 12:20
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.

[bug] Story/chat share dialog only lists org members, not project members

3 participants