Development/services#21
Open
vugarsafarzada wants to merge 27 commits into
Open
Conversation
feat(moderation): add admin moderation APIs with checklist workflow
…list with nested service category data
…s and controllers
…ng details and update visibility logic for non-active brands
…ss types in tsconfig
…g to brand listing
…r, and seeding capabilities
…ith database schema and API routes
…troller and update query limits
… constrain request body size
…and rich text sanitization for brand descriptions
…ranches and linking services directly to brands, and add team member service assignment functionality
… formatting in seed logs
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 introduces the service marketplace backend layer and the supporting moderation, discovery, rating, favorites, category, and social profile changes needed for it to work end to end.
Linked Issues
Closes #9
Closes #11
Partially addresses #7 and #12.
What Changed
Service domain
Servicedomain with lifecycle statuses:DRAFT,PENDING,ACTIVE,REJECTED,PAUSED, andARCHIVED.service_imagemedia kind.Service categories and marketplace discovery
ServiceCategoryand refactoredBrandCategoryfromnametokey.Ratings and favorites
Moderation workflow
ModerationReviewpersistence for audit/history.PENDINGfor re-review after meaningful edits.Social links and user profile updates
http://orhttps://.Auth, request safety, and tooling
express-rate-limit.ts-nodefile resolution intsconfig.json.Database Changes
New/updated Prisma models and migrations include:
ServiceServiceMediaServiceCategoryServiceRatingFavoriteBrandFavoriteServiceModerationReviewServiceStatus,PriceType,ModerationEntityType, andModerationOutcomeenumsMediaKind.service_imageUserandBrandBrandCategory.namerenamed toBrandCategory.keyRoutes Added
/servicesand/service-categoriesVerification
mainpnpm prisma validatepnpm buildNotes for Reviewers
mainwas resolved by preserving the service-domain implementation and keeping the newermainupdates already present in the branch history.