Skip to content

feat(study-groups): add study groups and collaboration#64

Open
nymulinfoinlet wants to merge 1 commit intomainfrom
feat/study-groups
Open

feat(study-groups): add study groups and collaboration#64
nymulinfoinlet wants to merge 1 commit intomainfrom
feat/study-groups

Conversation

@nymulinfoinlet
Copy link
Copy Markdown
Contributor

Summary

  • Add study-groups backend module with full CRUD: create group, join via 6-char invite code, leave, list members, share study sets, and activity feed
  • Add database migration (015_study_groups.sql) creating study_groups, study_group_members, group_study_sets, and group_activity tables with proper FK constraints and indexes
  • All endpoints are authenticated; membership is verified before accessing group resources

Closes #49

Endpoints

Method Path Description
POST /study-groups Create a group
GET /study-groups List my groups
POST /study-groups/join Join via invite code
GET /study-groups/:id Group details
GET /study-groups/:id/members List members
POST /study-groups/:id/share Share a study set
GET /study-groups/:id/study-sets Shared study sets
GET /study-groups/:id/activity Activity feed
DELETE /study-groups/:id/leave Leave group

Test plan

  • Run npx tsc --noEmit in backend/ -- 0 errors
  • Run migration against a local database and verify tables are created
  • Create a group, verify invite code is generated and creator is admin
  • Join with invite code from a second user account
  • Share a study set and confirm it appears in group study sets
  • Verify activity feed captures join/share events
  • Verify last-admin cannot leave if other members exist

🤖 Generated with Claude Code

Add study groups with invite codes, membership management, study set
sharing, and activity feeds to enable collaborative learning.
Closes #49

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
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.

feat(collaboration): Study groups, shared deck editing, and peer review

1 participant