Skip to content

Implement review - #37

Merged
bahman026 merged 2 commits into
adminfrom
implement_review
Jun 20, 2026
Merged

Implement review#37
bahman026 merged 2 commits into
adminfrom
implement_review

Conversation

@bahman026

Copy link
Copy Markdown
Owner

No description provided.

bahman026 and others added 2 commits June 20, 2026 15:10
Reviews:
- ReviewStatusEnum (PENDING, APPROVED, REJECTED, DELETED)
- reviews migration with product_id, user_id, variety_id, parent_id (replies)
- Review model, factory, ReviewSeeder (20 records in TestSeeder)
- ReviewResource: moderation form with reactive variety select, reply-to select
- ReviewResourceTest: 6 tests covering CRUD and nullOnDelete for replies

Coupon:
- Remove seller_creator_id from migration, model, factory, and CouponResource

AGENTS.md:
- Add "No seller / marketplace system" business constraint
- Update IMPLEMENTATION.md: mark Reviews done

Co-authored-by: Cursor <cursoragent@cursor.com>
AttributeGroup: remove stale is_selective cast (no column), add categories() and products()
Product: fix featuredImage PHPDoc to nullable, add reviews() and coupons()
Variety: add typed HasFactory, add discounts() and reviews()
Attribute: add directVarieties() HasMany (attribute_id FK) and products() BelongsToMany
Category: add parent()/children() self-referential, attributeGroups() and coupons()
Co-authored-by: Cursor <cursoragent@cursor.com>
@bahman026
bahman026 merged commit 656932b into admin Jun 20, 2026
1 check passed
@bahman026
bahman026 deleted the implement_review branch June 20, 2026 11:47
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.

1 participant