Skip to content

Add user collections#362

Open
pontusab wants to merge 3 commits intomainfrom
feature/collections
Open

Add user collections#362
pontusab wants to merge 3 commits intomainfrom
feature/collections

Conversation

@pontusab
Copy link
Copy Markdown
Collaborator

@pontusab pontusab commented Mar 20, 2026

collections.mp4

Summary

  • Users can create, edit, and share curated collections of plugins, MCP servers, rules, and skills
  • "Collect" button on plugin detail pages and collection item cards lets users add components to existing collections or quick-create a new one via a modal
  • Post-create share page with OG image preview and X/copy-link sharing for viral distribution
  • Collection detail page with follow/unfollow (optimistic count updates), owner edit, and "Add to Cursor" per item
  • Collection cards on the startpage ("Popular Collections") and browse page at /collections
  • Profile page shows user's collections
  • Collection editor with popularity-weighted randomized item browsing and lazy load-more

Database

New tables: collections, collection_items, collection_follows with RLS policies and triggers for item_count/follower_count maintenance. Migration file included at supabase/migrations/20260320090000_add_collections.sql.

Test plan

  • Create a collection from /collections/new and verify redirect to share page
  • Add a component to a collection from a plugin detail page using the Collect (+) button
  • Quick-create a collection from the Collect button when user has no collections
  • Follow/unfollow a collection as a non-owner and verify count updates
  • Verify OG image renders correctly with plugin logos
  • Check startpage shows popular collections section
  • Verify collection detail page layout matches plugin detail page style

Pontus Abrahamsson added 2 commits March 20, 2026 09:49
…tion" from plugin pages

- Add collections SQL migration (collections, collection_items, collection_follows tables with RLS and triggers)
- Add collection create/update/follow server actions with quick-create and add-item-to-existing flows
- Add "Collect" button to plugin detail page component rows and collection item cards
- Add post-create share page with OG image preview and X/copy-link sharing
- Add collection editor with popularity-weighted randomized browsing and load-more
- Add collection cards, detail page, and browse page aligned with plugin page styling
- Add popular collections section to the startpage
- Optimistic follower count updates on follow/unfollow

Made-with: Cursor
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cursor-directory Ready Ready Preview, Comment Mar 20, 2026 10:40am

Request Review

@pontusab pontusab changed the title Feature/collections Add user collections Mar 20, 2026
…or rollback

- Switch follow and collection actions to admin client to bypass RLS
- Align follow button and follower count pill with plugin page sizing (text-xs, rounded-full)
- Add optimistic error rollback on follow action failure
- Sync follower count state with prop changes from server revalidation

Made-with: Cursor
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