Skip to content

feat: add user preference management system#686

Merged
RUKAYAT-CODER merged 5 commits into
rinafcode:mainfrom
Nimatstar:feat/user-preference-management
May 29, 2026
Merged

feat: add user preference management system#686
RUKAYAT-CODER merged 5 commits into
rinafcode:mainfrom
Nimatstar:feat/user-preference-management

Conversation

@Nimatstar
Copy link
Copy Markdown
Contributor

Summary

Implements a user preference management system allowing users to manage notification preferences, language, and theme settings.

Changes

  • src/user-preferences/entities/user-preference.entity.ts - UserPreference entity with theme, language, and notification preference columns
  • src/user-preferences/dto/update-user-preference.dto.ts - Validated DTO for partial preference updates
  • src/user-preferences/user-preferences.service.ts - Service: get (with auto-create defaults), update, and reset preferences
  • src/user-preferences/user-preferences.controller.ts - REST endpoints under users/:userId/preferences (GET, PATCH, DELETE)
  • src/user-preferences/user-preferences.module.ts - Module wiring

Acceptance Criteria

  • Preferences table created (user_preferences)
  • Settings API endpoints (GET/PATCH/DELETE /users/:userId/preferences)
  • Notification preferences (emailNotifications, pushNotifications, inAppNotifications, marketingEmails, courseUpdates, weeklyDigest)
  • Language selection (en, fr, es, de, ar)

closes #552

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 29, 2026

@Nimatstar Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@RUKAYAT-CODER RUKAYAT-CODER merged commit bfa5b01 into rinafcode:main May 29, 2026
6 of 12 checks passed
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.

Add user preference management system

2 participants