How nana-779/monokeys-frontend works
MONO / KEYS is a Next.js storefront UI replica for reviewing shopping screens and navigation locally; it is not a fully wired commerce system. The main journey is browsing products, assembling a custom keyboard or cart, then visiting checkout and order-result screens. Separate branches cover account management, reviews, and admin product screens. Product APIs connect to a Spring Boot backend, while the README says several other flows—including login, cart persistence, order submission, and admin authorization—remain unconnected. Relationships below are limited to README statements and sampled-source references.
Main entry points: api.ts Product API · custom/page.tsx Custom builder · checkout/page.tsx Checkout screens · profile/page.tsx Profile screens
Components 24
Storefront
- Home page
src/app/(frontend)/page.tsx - Product catalog
src/features/products/product-grid.tsx - Product API
src/features/products/api.ts - Product detail
src/features/products/product-detail-view.tsx - Custom builder
src/app/(frontend)/custom/page.tsx - Build recommendations
src/features/products/builds-api.ts
Commerce
- Cart state and UI
src/features/cart/cart-provider.tsx - Checkout screens
src/app/(frontend)/checkout/page.tsx - Checkout API
src/app/(frontend)/checkout/api.ts - Payment flow
src/features/payments/payment-result-flow.ts - Refund workflow
src/features/payments/refund-workflow.tsx - Order history
src/features/orders/my-order-list.tsx
Account
- Authentication API
src/features/auth/api.ts - Account API
src/features/user/api.ts - Signup screens
src/app/(frontend)/signup/page.tsx - Profile screens
src/app/(frontend)/mypage/profile/page.tsx
Reviews and admin
- Review features
src/features/reviews/api.ts - Review editor
src/features/reviews/review-editor-modal.tsx - Admin products
src/app/(admin)/admin/products/admin-dashboard.tsx - Admin API
src/features/admin/api.ts
Shared runtime
- Store shell
src/components/store-shell.tsx - HTTP request client
src/lib/api-client.ts
Other components
- Shopper
- Spring Boot API
Connections 29
- Shopper → Home page: browses
README.md - Shopper → Product catalog: browses
README.md - Shopper → Custom builder: configures
README.md - Shopper → Checkout screens: visits
README.md - Shopper → Signup screens: visits
README.md - Shopper → Profile screens: manages account
README.md - Shopper → Admin products: views preview
README.md - Home page → Product API: loads products
src/app/(frontend)/page.tsx - Product catalog → Product API: loads products
README.md - Product detail → Product API: loads product
README.md - Product API → HTTP request client: requests through
src/features/products/api.ts - Product API → Spring Boot API: fetches products
README.md - Custom builder → Product API: loads catalog
src/app/(frontend)/custom/page.tsx - Custom builder → Build recommendations: requests recommendations
src/app/(frontend)/custom/page.tsx - Custom builder → Cart state and UI: adds build
src/app/(frontend)/custom/page.tsx - Store shell → Authentication API: calls login
src/components/store-shell.tsx - Store shell → Cart state and UI: uses cart state
src/components/store-shell.tsx - Signup screens → Account API: uses account API
src/app/(frontend)/signup/page.tsx - Profile screens → Authentication API: uses session API
src/app/(frontend)/mypage/profile/page.tsx - Profile screens → Account API: uses account API
src/app/(frontend)/mypage/profile/page.tsx - Checkout screens → Checkout API: uses checkout API
src/app/(frontend)/checkout/api.ts - Checkout API → HTTP request client: requests through
src/app/(frontend)/checkout/api.ts - Checkout screens → Payment flow: initiates payment
- Payment flow → Spring Boot API: confirms payment
- Checkout screens → Refund workflow: offers refunds
- Order history → Review features: loads review status
- Review editor → Review features: submits reviews
src/features/reviews/review-editor-modal.tsx - Review features → HTTP request client: requests through
src/features/reviews/api.ts - Admin products → Admin API: uses admin API