-
Notifications
You must be signed in to change notification settings - Fork 3
feat/shop_order #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat/shop_order #32
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces a shop order form feature that allows users to view their order details, including items, payment options, and totals. The implementation spans backend API endpoints, database models, and frontend context providers.
Key changes:
- New database schema for shop orders, products, payment options, and order items
- Backend API endpoint
/orderformfor retrieving order form data - Frontend React context provider for managing order form state
Reviewed changes
Copilot reviewed 30 out of 30 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| apps/web/src/sdk/contexts/orderform.tsx | New context provider for order form state management |
| apps/web/src/routes/__root.tsx | Integration of OrderformProvider into app root |
| apps/api/src/shared/schemas/*.ts | Schema definitions for shop entities (Product, PaymentOption, OrderItem, Order, OrderForm) |
| apps/api/src/presentation/v1/routes/shop/*.ts | API route handlers for shop order form endpoint |
| apps/api/src/infra/di/*.ts | Dependency injection registration for repositories, services, and use cases |
| apps/api/src/domain/repositories/*.ts | Repository implementations for shop orders and payment options |
| apps/api/src/domain/modules/cache/keys.ts | Cache key configuration for payment options |
| apps/api/src/application/usecases/shop/*.ts | Use case implementation for order form retrieval |
| apps/api/src/application/services/shopOrder/*.ts | Business logic for order form assembly and calculation |
| apps/api/prisma/models/shop.prisma | Database schema for shop tables |
| apps/api/prisma/models/base.prisma | Added orders relation to accounts model |
| apps/api/prisma/migrations/*.sql | Database migration for shop tables |
| apps/api/prisma/seed/index.ts | Seed data for default coin product |
| .vscode/settings.json | Added dictionary words for spell checking |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|


Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Behaviour
Actual
Do this and that doesn't happens
Expected
Do this and that happens
Fixes #issuenumber
Type of change
Please delete options that are not relevant.
How Has This Been Tested
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist