feat: Locker management, package tracking, and referral program backend modules#1254
Open
demilade18-git wants to merge 1 commit into
Open
Conversation
…E-17), and referral program (BE-16) Closes DistinctCodes#1182 Closes DistinctCodes#1183 Closes DistinctCodes#1184 Closes DistinctCodes#1185 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
@demilade18-git is attempting to deploy a commit to the naijabuz's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@demilade18-git 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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements four features assigned to Demilade18-git:
[BE-18] Locker Management: Backend (#1182)
Lockerentity:lockerNumber(unique),floor,size(SMALL/MEDIUM/LARGE),assignedToUserId(nullable FK),assignedAt,isActive,notes, soft-delete supportPOST /lockers— create locker (admin only)PATCH /lockers/:id— update locker details/status (admin only)DELETE /lockers/:id— soft-delete (admin only; only if unassigned)GET /lockers— list all lockers (admin/staff)GET /lockers/mine— returns member's assigned locker or nullPOST /lockers/:id/assign— assign locker to member (admin only)POST /lockers/:id/unassign— release assignment (admin only)LockersModuleregistered inAppModule[FE-16] Locker Management: Frontend (#1183)
/lockerspage showing prominent locker card (large locker number) when assigned, or "No locker assigned" message with Request a Locker CTAuseGetMyLockerReact Query hook callingGET /lockers/mine/lockerslink added toDashboardSidebarnavigation[BE-16] Referral Program: Backend (#1184)
GET /referrals/my-code— returns current user's referral code, shareable link URL, and total referrals countGET /referrals/history— paginated list of successful referrals (referee name, join date)ReferralsModuleregistered inAppModule[BE-17] Package / Mail Tracking: Backend (#1185)
Packageentity:recipientUserId,loggedByStaffId,courierName,trackingNumber,description,arrivedAt,collectedAt,status(ARRIVED/COLLECTED/RETURNED)POST /packages— log package arrival (staff/admin only)PATCH /packages/:id/collect— mark as collected (staff/admin)PATCH /packages/:id/return— mark as returned to sender (staff/admin)GET /packages/mine— member views their own packagesGET /packages— admin/staff views all packages (filterable by status)PackagesModuleregistered inAppModuleCloses #1182
Closes #1183
Closes #1184
Closes #1185