Skip to content

feat: show shared items in main Library view#19

Merged
scottgrayson merged 1 commit into
mainfrom
fix/shared-items-in-library
Jul 9, 2026
Merged

feat: show shared items in main Library view#19
scottgrayson merged 1 commit into
mainfrom
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

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>
@scottgrayson
scottgrayson force-pushed the fix/shared-items-in-library branch from 0b5b808 to bf655b1 Compare July 9, 2026 19:04
@scottgrayson
scottgrayson merged commit 6b6d51d into main Jul 9, 2026
9 checks passed
@scottgrayson
scottgrayson deleted the fix/shared-items-in-library branch July 9, 2026 19:07
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