Skip to content

feat: show shared items in main Library view#19

Open
scottgrayson wants to merge 2 commits intomainfrom
fix/shared-items-in-library
Open

feat: show shared items in main Library view#19
scottgrayson wants to merge 2 commits intomainfrom
fix/shared-items-in-library

Conversation

@scottgrayson
Copy link
Copy Markdown
Contributor

Summary

  • Adds orWhereHas('permissions') to the root-level query in ListLibraryItems so items explicitly shared with a user appear in the main Library view (not just "Shared with Me")
  • Adds a "Shared with you" description label on items shared with the current user
  • Only surfaces root-level shared items (whereNull('parent_id') still applies); items inside personal folders remain in "Shared with Me"

Test plan

  • Admin creates a root-level private folder, shares with User B → User B sees it in Library root
  • Admin creates a folder inside their personal folder, shares with User B → User B sees it in "Shared with Me" only (NOT at root)
  • Public folder with explicit share → no duplicate display
  • Unsharing removes item from user's Library view
  • "Shared with Me" page still works (no regression)
  • Files and links (not just folders) work in all scenarios

🤖 Generated with Claude Code

scottgrayson and others added 2 commits March 31, 2026 12:17
Items explicitly shared with a user now appear in the Library root
alongside public items, instead of only in "Shared with Me." Adds a
"Shared with you" label on items shared with the current user.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant