Skip to content

PoC: Crud skill test 04 product review#1347

Draft
manuelblum wants to merge 9 commits intocrud-skill-test-03-product-variantfrom
crud-skill-test-04-product-review
Draft

PoC: Crud skill test 04 product review#1347
manuelblum wants to merge 9 commits intocrud-skill-test-03-product-variantfrom
crud-skill-test-04-product-review

Conversation

@manuelblum
Copy link
Contributor

Sample PR showcasing how Claude (Opus 4.6) implements full-stack CRUD for a global (unscoped) entity with dialog-based editing from a spec file using Comet skills. The entire implementation — API entity, admin UI, enum components, edit
dialog, product detail integration — was generated from specs/product/04-product-review.md.

What's implemented

Area Features
API Entity ProductReview entity (global, unscoped with skipScopeCheck), Rating enum (One–Five), ManyToOne relation to Product, MikroORM migration, NestJS module registration
API Resolver & Service Full CRUD with skipScopeCheck: true for unscoped entity, @ResolveField for product relation, server-side search by title/reviewerName, product relation filter, paginated list query
Translatable Enum Rating: translatable component (displays 1–5), SelectField for form dropdown
DataGrid Server-side paginated grid with columns: title, rating (translated), reviewerName, product name, reviewedAt, isApproved (boolean), domain/language (derived from related product). Toolbar with search, filter button, Excel export via "More" menu, "New Review" button. Optional productId prop for filtering by product
Form (EditDialog) Dialog-based create/edit form with: Product (AsyncAutocompleteField), title, body (TextAreaField), rating (SelectField), reviewerName, reviewedAt (DateTimePickerField), isApproved (SwitchField). Save conflict detection via useFormSaveConflict
Pages ProductReviewsPage with Stack wrapper, ContentScopeIndicator global, and StackMainContentfullHeight. No StackSwitch needed — dialog handles editing
Product Detail Integration "Reviews" RouterTab on Product edit page reusing ProductReviewsDataGrid with productId filter. Shows only reviews for that specific product
Master Menu New "Product Reviews" entry with ChatCommunication icon and productReviews permission

Spec

See specs/product/04-product-review.md for the full requirements.

Feature Screenshot
Product Reviews page with DataGrid (Global scope, search, filter, export) pr-01-product-reviews-grid
Add Review dialog (Product autocomplete, rating dropdown, datetime picker) pr-02-add-review-dialog
Edit Review dialog with pre-populated data and save conflict detection pr-03-edit-review-dialog
Product edit page with Reviews tab (filtered by product) pr-04-product-reviews-tab

@manuelblum manuelblum changed the title Crud skill test 04 product review PoC: Crud skill test 04 product review Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant