feat: include moderation screen and platform cut #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/add-moderation-screen"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Product Moderation & Platform Cut — Walkthrough
Summary
Implemented a product moderation system where all newly created products default to
pendingstatus with a 5% platform cut. Pending products are hidden from public-facing endpoints. Admins can view, approve (with optional cut adjustment), or reject products.Files Changed
New Files
platform_cutandmoderation_statustoproductsModified Files
platform_cut,moderation_statusto fillable & castsplatform_cut,moderation_statusto API responseNew Admin Endpoints
GET/admin/moderacao/pendentes/contagemGET/admin/moderacao/pendentesPOST/admin/moderacao/produtos/{product}/aprovarplatform_cutbody param)POST/admin/moderacao/produtos/{product}/rejeitarVerification
artisan route:listphp artisan migratefeat: include moderation screen and platform cutto WIP: feat: include moderation screen and platform cutWIP: feat: include moderation screen and platform cutto feat: include moderation screen and platform cutView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.