@akinon/projectzero 1.93.0 → 1.95.0-rc.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/CHANGELOG.md +241 -4
  2. package/app-template/.env.example +1 -0
  3. package/app-template/.github/instructions/default.instructions.md +279 -0
  4. package/app-template/CHANGELOG.md +4842 -313
  5. package/app-template/README.md +25 -1
  6. package/app-template/package.json +19 -19
  7. package/app-template/public/locales/en/common.json +42 -1
  8. package/app-template/public/locales/tr/common.json +42 -1
  9. package/app-template/src/app/[commerce]/[locale]/[currency]/basket/page.tsx +9 -82
  10. package/app-template/src/app/[commerce]/[locale]/[currency]/category/[pk]/page.tsx +17 -4
  11. package/app-template/src/app/[commerce]/[locale]/[currency]/flat-page/[pk]/page.tsx +12 -1
  12. package/app-template/src/app/[commerce]/[locale]/[currency]/group-product/[pk]/page.tsx +29 -11
  13. package/app-template/src/app/[commerce]/[locale]/[currency]/landing-page/[pk]/page.tsx +12 -1
  14. package/app-template/src/app/[commerce]/[locale]/[currency]/product/[pk]/loading.tsx +67 -0
  15. package/app-template/src/app/[commerce]/[locale]/[currency]/product/[pk]/page.tsx +28 -10
  16. package/app-template/src/app/[commerce]/[locale]/[currency]/special-page/[pk]/page.tsx +12 -1
  17. package/app-template/src/app/api/image-proxy/route.ts +1 -0
  18. package/app-template/src/app/api/similar-product-list/route.ts +1 -0
  19. package/app-template/src/app/api/similar-products/route.ts +1 -0
  20. package/app-template/src/assets/fonts/pz-icon.css +3 -0
  21. package/app-template/src/components/accordion.tsx +22 -19
  22. package/app-template/src/components/currency-select.tsx +1 -0
  23. package/app-template/src/components/file-input.tsx +27 -7
  24. package/app-template/src/components/input.tsx +2 -1
  25. package/app-template/src/components/modal.tsx +32 -16
  26. package/app-template/src/components/select.tsx +38 -26
  27. package/app-template/src/components/types/index.ts +25 -1
  28. package/app-template/src/hooks/index.ts +2 -0
  29. package/app-template/src/hooks/use-product-cart.ts +77 -0
  30. package/app-template/src/hooks/use-stock-alert.ts +74 -0
  31. package/app-template/src/plugins.js +3 -1
  32. package/app-template/src/settings.js +8 -2
  33. package/app-template/src/types/index.ts +74 -3
  34. package/app-template/src/utils/variant-validation.ts +41 -0
  35. package/app-template/src/views/account/address-form.tsx +8 -4
  36. package/app-template/src/views/account/content-header.tsx +2 -2
  37. package/app-template/src/views/basket/basket-content.tsx +106 -0
  38. package/app-template/src/views/basket/basket-item.tsx +16 -13
  39. package/app-template/src/views/basket/summary.tsx +10 -7
  40. package/app-template/src/views/guest-login/index.tsx +6 -1
  41. package/app-template/src/views/header/action-menu.tsx +1 -1
  42. package/app-template/src/views/header/index.tsx +1 -1
  43. package/app-template/src/views/header/search/index.tsx +17 -5
  44. package/app-template/src/views/login/index.tsx +11 -10
  45. package/app-template/src/views/otp-login/index.tsx +11 -6
  46. package/app-template/src/views/product/product-actions.tsx +165 -0
  47. package/app-template/src/views/product/product-info.tsx +61 -263
  48. package/app-template/src/views/product/product-share.tsx +56 -0
  49. package/app-template/src/views/product/product-variants.tsx +26 -0
  50. package/app-template/src/views/product/slider.tsx +86 -73
  51. package/app-template/src/views/register/index.tsx +15 -11
  52. package/commands/plugins.ts +71 -16
  53. package/dist/commands/plugins.js +65 -16
  54. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @akinon/projectzero
2
2
 
3
+ ## 1.95.0-rc.54
4
+
5
+ ### Minor Changes
6
+
7
+ - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
8
+ - c67942a4: ZERO-3423: Updated version control and debug messages for the package
9
+ - 5de751aa: ZERO-3428 :Add Hepsipay plugin to the list of available plugins
10
+ - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
11
+ - 16aff543: ZERO-3431: Add test script for redirect utility in package.json
12
+ - 64699d3ff: ZERO-2761: Fix invalid import for plugin module
13
+ - e974d8e8: ZERO-3406: Fix rc build
14
+ - 7eb51ca9: ZERO-3424 :Update package versions
15
+ - 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
16
+ - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
17
+ - 34578efc: ZERO-3419 :Add new payment plugins and update existing ones in the plugin list
18
+ - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
19
+ - 33377cfd: ZERO-3267: Refactor import statement for ROUTES in error-page component
20
+
21
+ ## 1.94.0
22
+
23
+ ### Minor Changes
24
+
25
+ - c806fad: ZERO-3422: Add Flow Payment plugin to the defined plugins list
26
+ - 72ad7bb: ZERO-3422: Add Flow Payment to the list of available plugins
27
+
3
28
  ## 1.93.0
4
29
 
5
30
  ## 1.92.0
@@ -8,7 +33,161 @@
8
33
 
9
34
  ### Minor Changes
10
35
 
11
- - 942490f: ZERO-3295: move third party tailwind content list to akinon-next
36
+ - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
37
+ - c67942a4: ZERO-3423: Updated version control and debug messages for the package
38
+ - 5de751aa: ZERO-3428 :Add Hepsipay plugin to the list of available plugins
39
+ - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
40
+ - 16aff543: ZERO-3431: Add test script for redirect utility in package.json
41
+ - 64699d3f: ZERO-2761: Fix invalid import for plugin module
42
+ - e974d8e8: ZERO-3406: Fix rc build
43
+ - 7eb51ca9: ZERO-3424 :Update package versions
44
+ - c806fad7: ZERO-3422: Add Flow Payment plugin to the defined plugins list
45
+ - 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
46
+ - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
47
+ - 72ad7bb1: ZERO-3422: Add Flow Payment to the list of available plugins
48
+ - 34578efc: ZERO-3419 :Add new payment plugins and update existing ones in the plugin list
49
+ - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
50
+ - 33377cfd: ZERO-3267: Refactor import statement for ROUTES in error-page component
51
+
52
+ ## 1.92.0-rc.41
53
+
54
+ ## 1.92.0-rc.40
55
+
56
+ ## 1.92.0-rc.39
57
+
58
+ ## 1.92.0-rc.38
59
+
60
+ ## 1.92.0-rc.37
61
+
62
+ ## 1.92.0-rc.36
63
+
64
+ ## 1.92.0-rc.35
65
+
66
+ ## 1.92.0-rc.34
67
+
68
+ ## 1.92.0-rc.33
69
+
70
+ ## 1.92.0-rc.32
71
+
72
+ ## 1.92.0-rc.31
73
+
74
+ ## 1.92.0-rc.30
75
+
76
+ ## 1.92.0-rc.29
77
+
78
+ ## 1.92.0-rc.28
79
+
80
+ ## 1.92.0-rc.27
81
+
82
+ ## 1.92.0-rc.26
83
+
84
+ ### Minor Changes
85
+
86
+ - 16aff54: ZERO-3431: Add test script for redirect utility in package.json
87
+
88
+ ## 1.92.0-rc.25
89
+
90
+ ## 1.92.0-rc.24
91
+
92
+ ## 1.92.0-rc.23
93
+
94
+ ## 1.92.0-rc.22
95
+
96
+ ### Minor Changes
97
+
98
+ - 143be2b: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
99
+
100
+ ## 1.92.0-rc.21
101
+
102
+ ### Minor Changes
103
+
104
+ - d99a6a7: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
105
+
106
+ ## 1.92.0-rc.20
107
+
108
+ ### Minor Changes
109
+
110
+ - 8b1d24e: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
111
+
112
+ ## 1.92.0-rc.19
113
+
114
+ ### Minor Changes
115
+
116
+ - d8be48f: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
117
+
118
+ ## 1.92.0-rc.18
119
+
120
+ ### Minor Changes
121
+
122
+ - c67942a: ZERO-3423: Updated version control and debug messages for the package
123
+
124
+ ## 1.92.0-rc.17
125
+
126
+ ## 1.92.0-rc.16
127
+
128
+ ## 1.92.0-rc.15
129
+
130
+ ### Minor Changes
131
+
132
+ - 5de751aa: ZERO-3428 :Add Hepsipay plugin to the list of available plugins
133
+
134
+ ## 1.92.0-rc.14
135
+
136
+ ## 1.92.0-rc.13
137
+
138
+ ## 1.92.0-rc.12
139
+
140
+ ## 1.92.0-rc.11
141
+
142
+ ## 1.92.0-rc.10
143
+
144
+ ## 1.92.0-rc.9
145
+
146
+ ### Minor Changes
147
+
148
+ - 72ad7bb: ZERO-3422: Add Flow Payment to the list of available plugins
149
+
150
+ ## 1.92.0-rc.8
151
+
152
+ ### Minor Changes
153
+
154
+ - c806fad: ZERO-3422: Add Flow Payment plugin to the defined plugins list
155
+
156
+ ## 1.92.0-rc.7
157
+
158
+ ## 1.91.0-rc.6
159
+
160
+ ## 1.91.0-rc.5
161
+
162
+ ## 1.91.0-rc.4
163
+
164
+ ### Minor Changes
165
+
166
+ - 7eb51ca: ZERO-3424 :Update package versions
167
+ - 34578ef: ZERO-3419 :Add new payment plugins and update existing ones in the plugin list
168
+
169
+ ## 1.91.0-rc.3
170
+
171
+ ### Minor Changes
172
+
173
+ - 64699d3f: ZERO-2761: Fix invalid import for plugin module
174
+ - e974d8e8: ZERO-3406: Fix rc build
175
+ - 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
176
+ - 33377cfd: ZERO-3267: Refactor import statement for ROUTES in error-page component
177
+ - 942490f2: ZERO-3295: move third party tailwind content list to akinon-next
178
+
179
+ ## 1.91.0-rc.2
180
+
181
+ ## 1.91.0-rc.1
182
+
183
+ ## 1.91.0-rc.0
184
+
185
+ ### Minor Changes
186
+
187
+ - 64699d3f: ZERO-2761: Fix invalid import for plugin module
188
+ - e974d8e: ZERO-3406: Fix rc build
189
+ - 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
190
+ - 33377cfd: ZERO-3267: Refactor import statement for ROUTES in error-page component
12
191
 
13
192
  ## 1.90.0
14
193
 
@@ -38,9 +217,67 @@
38
217
 
39
218
  ### Minor Changes
40
219
 
41
- - 7a1e1f7: ZERO-3138: Close the search input with the esc key
42
- - c82875b: ZERO-3140: Fix style layout size
43
- - 6c1dba7: ZERO-3174: update hash structure
220
+ - 33377cf: ZERO-3267: Refactor import statement for ROUTES in error-page component
221
+
222
+ ## 1.82.0-rc.18
223
+
224
+ ## 1.82.0-rc.17
225
+
226
+ ### Minor Changes
227
+
228
+ - e2583ac2: ZERO-3282: Switch to execSync for synchronous execution, enhance file checks, and add error page replacement script
229
+
230
+ ## 1.82.0-rc.16
231
+
232
+ ### Minor Changes
233
+
234
+ - 64699d3f: ZERO-2761: Fix invalid import for plugin module
235
+ - 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
236
+
237
+ ## 1.82.0-rc.15
238
+
239
+ ## 1.82.0-rc.14
240
+
241
+ ## 1.82.0-rc.13
242
+
243
+ ## 1.82.0-rc.12
244
+
245
+ ## 1.82.0-rc.11
246
+
247
+ ## 1.82.0-rc.10
248
+
249
+ ## 1.82.0-rc.9
250
+
251
+ ## 1.82.0-rc.8
252
+
253
+ ## 1.82.0-rc.7
254
+
255
+ ## 1.82.0-rc.6
256
+
257
+ ## 1.82.0-rc.5
258
+
259
+ ## 1.82.0-rc.4
260
+
261
+ ## 1.82.0-rc.3
262
+
263
+ ## 1.82.0-rc.2
264
+
265
+ ### Minor Changes
266
+
267
+ - 64699d3f: ZERO-2761: Fix invalid import for plugin module
268
+ - 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
269
+
270
+ ## 1.82.0-rc.1
271
+
272
+ ## 1.82.0-rc.0
273
+
274
+ ### Minor Changes
275
+
276
+ - 64699d3f: ZERO-2761: Fix invalid import for plugin module
277
+ - 7a1e1f73: ZERO-3138: Close the search input with the esc key
278
+ - 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
279
+ - c82875bc: ZERO-3140: Fix style layout size
280
+ - 6c1dba75: ZERO-3174: update hash structure
44
281
 
45
282
  ## 1.81.0
46
283
 
@@ -6,6 +6,7 @@ NEXT_PUBLIC_GTM_KEY=GTM_KEY
6
6
  NEXT_PUBLIC_URL=http://localhost:3000
7
7
  SERVICE_BACKEND_URL=https://02fde10fee4440269e695aa10707dfaf.lb.akinoncloud.com
8
8
  SITEMAP_S3_BUCKET_NAME=0fb534
9
+ NEXT_PUBLIC_ENABLE_IMAGE_SEARCH=true
9
10
 
10
11
  # LOG_LEVEL_DEV=debug # For more details, please refer to the Logging documentation.
11
12
 
@@ -0,0 +1,279 @@
1
+ ---
2
+ applyTo: '**'
3
+ ---
4
+
5
+ # Project Zero Next.js App - Developer Instructions
6
+
7
+ ## Project Overview
8
+
9
+ This is a **standalone Project Zero Next.js application** - a headless e-commerce storefront built on top of Akinon Commerce Cloud. This app can be cloned and run independently using the `packages/projectzero` command line tool.
10
+
11
+ ## Key Characteristics
12
+
13
+ - **Standalone Application**: Can be cloned with `packages/projectzero` CLI and run independently
14
+ - **Next.js 14.2.25**: Uses App Router with dynamic routes
15
+ - **TypeScript**: With relaxed strict mode
16
+ - **E-commerce Focus**: Complete storefront with basket, checkout, payments, user management
17
+
18
+ ## Project Structure
19
+
20
+ ```
21
+ apps/projectzeronext/
22
+ ├── src/
23
+ │ ├── app/[commerce]/[locale]/[currency]/ # App Router pages
24
+ │ ├── components/ # App-specific UI components
25
+ │ ├── views/ # Page-specific view components
26
+ │ ├── hooks/ # Custom React hooks
27
+ │ ├── redux/ # App-specific Redux slices
28
+ │ ├── types/ # App-specific TypeScript types
29
+ │ ├── utils/ # Utility functions
30
+ │ ├── settings.js # Application configuration
31
+ │ ├── routes/ # Route definitions
32
+ │ └── middleware.ts # Next.js middleware
33
+ ├── public/ # Static assets
34
+ ├── config/ # Configuration files
35
+ ├── docs/ # Documentation
36
+ ├── package.json # Dependencies and scripts
37
+ ├── next.config.mjs # Next.js configuration
38
+ ├── tailwind.config.js # TailwindCSS configuration
39
+ └── tsconfig.json # TypeScript configuration
40
+ ```
41
+
42
+ ## Core Dependencies
43
+
44
+ ### Essential Packages
45
+
46
+ - `@akinon/next`: Core e-commerce functionality (version ^1.93.0)
47
+ - `next`: Next.js framework (14.2.25)
48
+ - `react` & `react-dom`: React framework
49
+ - `@reduxjs/toolkit`: State management
50
+ - `next-auth`: Authentication
51
+ - `react-hook-form`: Form handling
52
+ - `yup`: Form validation
53
+
54
+ ### UI & Styling
55
+
56
+ - `tailwindcss`: Utility-first CSS framework
57
+ - `clsx` & `tailwind-merge`: Conditional styling
58
+ - `lucide-react`: Icon library
59
+
60
+ ### Plugin Packages
61
+
62
+ The app includes various `pz-*` plugin packages for extended functionality:
63
+
64
+ - `pz-akifast`, `pz-b2b`, `pz-basket-gift-pack`
65
+ - `pz-bkm`, `pz-checkout-gift-pack`, `pz-click-collect`
66
+ - Payment providers: `pz-apple-pay`, `pz-gpay`, `pz-masterpass`, etc.
67
+
68
+ ## Architecture Patterns
69
+
70
+ ### Route Structure
71
+
72
+ - Dynamic routes: `/[commerce]/[locale]/[currency]/`
73
+ - App Router with server and client components
74
+ - Middleware for routing and internationalization
75
+
76
+ ### Data Fetching
77
+
78
+ - **RTK Query** for API calls
79
+ - Server components for initial data
80
+ - Client components with hooks for interactivity
81
+ - Example patterns:
82
+
83
+ ```tsx
84
+ // Server component data fetching
85
+ const basketData = await getBasket();
86
+
87
+ // Client component hooks
88
+ const { data: basket } = useGetBasketQuery();
89
+ const [addToBasket] = useAddProductToBasketMutation();
90
+ ```
91
+
92
+ ### State Management
93
+
94
+ - **Redux Toolkit** with key slices:
95
+ - `checkout`: Multi-step checkout flow
96
+ - `basket`: Shopping cart state
97
+ - `header`: Navigation state
98
+ - `root`: Global app state
99
+ - Use `useAppSelector` and `useAppDispatch`
100
+
101
+ ### Component Architecture
102
+
103
+ ```tsx
104
+ // Theme components (app-specific)
105
+ import { Button, Input } from '@theme/components';
106
+
107
+ // Core components (from @akinon/next)
108
+ import { Image } from '@akinon/next/components/image';
109
+
110
+ // Plugin system
111
+ import PluginModule, { Component } from '@akinon/next/components/plugin-module';
112
+ ```
113
+
114
+ ### Forms & Validation
115
+
116
+ Standard pattern with React Hook Form + Yup:
117
+
118
+ ```tsx
119
+ const schema = (t) =>
120
+ yup.object().shape({
121
+ email: yup.string().email().required(t('error.required')),
122
+ password: yup.string().min(6).required(t('error.required'))
123
+ });
124
+
125
+ const {
126
+ register,
127
+ handleSubmit,
128
+ formState: { errors }
129
+ } = useForm({
130
+ resolver: yupResolver(schema(t))
131
+ });
132
+ ```
133
+
134
+ ## E-commerce Features
135
+
136
+ ### Core Functionality
137
+
138
+ - **Product Catalog**: Browse, search, filter products
139
+ - **Basket Management**: Add/remove items, quantity updates
140
+ - **Checkout Flow**: Multi-step process (auth → shipping → payment → confirmation)
141
+ - **User Accounts**: Registration, login, order history
142
+ - **Payment Integration**: Multiple payment providers
143
+ - **Order Management**: Track orders, view history
144
+
145
+ ### Internationalization
146
+
147
+ - Multi-language support with `useLocalization()` hook
148
+ - Dynamic locale routing: `/[locale]/`
149
+ - Translation keys: `t('checkout.auth.title')`
150
+ - Settings configuration in `src/settings.js`
151
+
152
+ ### Authentication
153
+
154
+ - NextAuth.js integration
155
+ - Session management with `useSession()`
156
+ - Protected routes via middleware
157
+ - User account features
158
+
159
+ ## Development Guidelines
160
+
161
+ ### File Naming & Structure
162
+
163
+ - Components: PascalCase (`ProductCard.tsx`)
164
+ - Pages: kebab-case in App Router directories
165
+ - Hooks: camelCase starting with `use` (`useBasket.ts`)
166
+ - Types: PascalCase with descriptive names (`ProductType.ts`)
167
+
168
+ ### Import Conventions
169
+
170
+ ```tsx
171
+ // Path aliases (configured in tsconfig.json)
172
+ import { Button } from '@theme/components'; // App components
173
+ import { Image } from '@akinon/next/components'; // Core components
174
+ import { useLocalization } from '@akinon/next/hooks'; // Core hooks
175
+ import { ProductType } from '@akinon/next/types'; // Core types
176
+ import { routes } from '@root/routes'; // App routes
177
+ ```
178
+
179
+ ### Styling Guidelines
180
+
181
+ - **TailwindCSS** for all styling
182
+ - Use `clsx` and `twMerge` for conditional classes
183
+ - Responsive design: mobile-first approach
184
+ - Theme customization in `tailwind.config.js`
185
+
186
+ ### Performance Best Practices
187
+
188
+ - Lazy loading with `LazyComponent`
189
+ - Next.js `Image` component for optimized images
190
+ - Code splitting with dynamic imports
191
+ - Intersection Observer for viewport-based loading
192
+
193
+ ## Development Commands
194
+
195
+ ```bash
196
+ # Development
197
+ yarn dev # Start development server
198
+ yarn build # Build for production
199
+ yarn start # Start production server
200
+
201
+ # Code Quality
202
+ yarn lint # Run ESLint
203
+ yarn lint:fix # Fix ESLint issues
204
+ yarn type-check # TypeScript type checking
205
+
206
+ # Testing
207
+ yarn test # Run Jest tests
208
+ yarn test:watch # Run tests in watch mode
209
+ ```
210
+
211
+ ## Configuration Files
212
+
213
+ ### Key Config Files
214
+
215
+ - `next.config.mjs`: Next.js configuration
216
+ - `tailwind.config.js`: TailwindCSS theme and plugins
217
+ - `src/settings.js`: App-specific settings (commerce, locales, etc.)
218
+ - `src/middleware.ts`: Route handling and internationalization
219
+ - `package.json`: Dependencies and scripts
220
+
221
+ ### Environment Variables
222
+
223
+ Configure in `.env.local`:
224
+
225
+ - `NEXTAUTH_SECRET`: Authentication secret
226
+ - `NEXTAUTH_URL`: Application URL
227
+ - Commerce API endpoints
228
+ - Payment provider configurations
229
+
230
+ ## Plugin System
231
+
232
+ ### Using Plugins
233
+
234
+ ```tsx
235
+ import PluginModule, { Component } from '@akinon/next/components/plugin-module';
236
+
237
+ // Conditional plugin rendering
238
+ <PluginModule component={Component.BasketGiftPack} props={{ basket }} />;
239
+ ```
240
+
241
+ ### Available Plugins
242
+
243
+ - **Payment**: Apple Pay, Google Pay, BKM, Masterpass
244
+ - **Checkout**: Gift packs, click & collect, one-click checkout
245
+ - **Business**: B2B features, multi-basket, saved cards
246
+ - **Regional**: Tabby, Tamara (MENA region)
247
+
248
+ ## Important Notes
249
+
250
+ ### Critical Middleware
251
+
252
+ - **Never remove** `withPzDefault` middleware - essential for app functionality
253
+ - Middleware handles routing, locale detection, commerce resolution
254
+
255
+ ### State Management
256
+
257
+ - Checkout uses multi-step Redux flow
258
+ - Basket state syncs with backend APIs
259
+ - User session integrates with NextAuth
260
+
261
+ ### SEO & Analytics
262
+
263
+ - GTM integration for e-commerce tracking
264
+ - Server-side rendering for SEO
265
+ - Structured data for products
266
+
267
+ ### Deployment
268
+
269
+ - Can be deployed standalone
270
+ - Supports various hosting platforms
271
+ - Environment-specific configurations
272
+
273
+ When working with this app, always consider:
274
+
275
+ 1. **E-commerce context**: Every feature impacts the shopping experience
276
+ 2. **Plugin architecture**: Use modular approach for features
277
+ 3. **Internationalization**: Support multiple languages/regions
278
+ 4. **Performance**: Optimize for mobile commerce
279
+ 5. **Standalone nature**: App should work independently when cloned