feat: add soft-delete - #1741
Merged
Merged
Conversation
|
@ONEONUORA 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! 🚀 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
close #1599
close #1645
close #1643
close #1641
Summary of Changes
This PR resolves several key feature enhancements and moderation requirements across the frontend and backend.
1. Smart Contracts UI & Explorer Deep Links
Copied!) infrontend/src/app/contracts/page.tsx.testnetormainnetbased on environment configuration (frontend/src/lib/env.ts).frontend/src/app/contracts/page.test.tsxverifying copy handler execution and correct URL formatting.2. Moderation & User Flags Workflow
GET /flags(list open/submitted flags) andPATCH /flags/:id/resolve(resolve with action and admin notes) inbackend/src/flags/flags.controller.ts.@Roles(Role.Admin)andRolesGuardto restrict moderation review and resolution strictly to admins.backend/src/flags/flags.controller.spec.tsfor lifecycle transitions and admin access guards.3. User Referrals & Attribution
claimReferralinbackend/src/users/users.service.ts.recordQualifyingActionto advance referral state fromPENDINGtoQUALIFIEDupon referee activation.backend/src/users/users.service.spec.ts.4. Soft-Delete Exclusion & Data Export
findAll,findById, andfindByAddressinbackend/src/users/users.service.tsto exclude soft-deleted users (deleted_at IS NULL)./account/export).backend/src/users/users.service.spec.tscovering soft-delete exclusion logic.Verification