@vc-shell/create-vc-app 1.1.99-alpha.1 → 1.2.0
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.
- package/README.md +26 -552
- package/dist/index.js +530 -1900
- package/dist/templates/base/_package.json +5 -5
- package/dist/templates/base/src/main.ts +4 -0
- package/dist/templates/mocks/sample-data/constants.ts +89 -0
- package/dist/templates/mocks/sample-data/index.ts +2 -0
- package/dist/templates/mocks/sample-data/methods.ts +65 -0
- package/dist/templates/modules/classic-module/composables/index.ts +2 -0
- package/dist/templates/modules/classic-module/composables/use{{ModuleNamePascalCase}}Details/index.ts +24 -0
- package/dist/templates/modules/classic-module/composables/use{{ModuleNamePascalCase}}List/index.ts +47 -0
- package/dist/templates/modules/classic-module/index.ts +8 -0
- package/dist/templates/modules/classic-module/locales/en.json +37 -0
- package/dist/templates/modules/classic-module/locales/index.ts +2 -0
- package/dist/templates/modules/classic-module/pages/details.vue +87 -0
- package/dist/templates/modules/classic-module/pages/index.ts +2 -0
- package/dist/templates/modules/classic-module/pages/list.vue +257 -0
- package/dist/templates/sample/classic-module/composables/index.ts +2 -0
- package/dist/templates/sample/classic-module/composables/useDetails/index.ts +54 -0
- package/dist/templates/sample/classic-module/composables/useList/index.ts +62 -0
- package/dist/templates/sample/classic-module/index.ts +8 -0
- package/dist/templates/sample/classic-module/locales/en.json +67 -0
- package/dist/templates/sample/classic-module/locales/index.ts +2 -0
- package/dist/templates/sample/classic-module/pages/details.vue +238 -0
- package/dist/templates/sample/classic-module/pages/index.ts +2 -0
- package/dist/templates/sample/classic-module/pages/list.vue +300 -0
- package/dist/templates/sample/overrides/main.ts +52 -0
- package/package.json +7 -12
- package/dist/cli/argv.d.ts +0 -4
- package/dist/cli/argv.d.ts.map +0 -1
- package/dist/cli/constants.d.ts +0 -4
- package/dist/cli/constants.d.ts.map +0 -1
- package/dist/cli/errors.d.ts +0 -12
- package/dist/cli/errors.d.ts.map +0 -1
- package/dist/cli/help.d.ts +0 -3
- package/dist/cli/help.d.ts.map +0 -1
- package/dist/cli/run.d.ts +0 -2
- package/dist/cli/run.d.ts.map +0 -1
- package/dist/cli/runtime.d.ts +0 -7
- package/dist/cli/runtime.d.ts.map +0 -1
- package/dist/cli/types.d.ts +0 -30
- package/dist/cli/types.d.ts.map +0 -1
- package/dist/cli/utils.d.ts +0 -4
- package/dist/cli/utils.d.ts.map +0 -1
- package/dist/cli/validation.d.ts +0 -5
- package/dist/cli/validation.d.ts.map +0 -1
- package/dist/commands/generate-blade.d.ts +0 -16
- package/dist/commands/generate-blade.d.ts.map +0 -1
- package/dist/templates/base/ai-guides/.cursorrules-vc-shell +0 -529
- package/dist/templates/base/ai-guides/README.md +0 -360
- package/dist/templates/base/ai-guides/guides/AI_GUIDE.md +0 -195
- package/dist/templates/base/ai-guides/guides/blade-patterns.md +0 -384
- package/dist/templates/base/ai-guides/guides/complete-workflow.md +0 -781
- package/dist/templates/base/ai-guides/guides/composables-reference.md +0 -338
- package/dist/templates/base/ai-guides/guides/troubleshooting.md +0 -529
- package/dist/templates/base/ai-guides/guides/ui-components-reference.md +0 -903
- package/dist/templates/base/ai-guides/prompts/adapt-existing-module.md +0 -1026
- package/dist/templates/base/ai-guides/prompts/advanced-scenarios.md +0 -852
- package/dist/templates/base/ai-guides/prompts/api-client-generation.md +0 -877
- package/dist/templates/base/ai-guides/prompts/cli-usage.md +0 -640
- package/dist/templates/base/ai-guides/prompts/quick-start-scenarios.md +0 -773
- package/dist/templates/base/ai-guides/prompts/simple-modifications.md +0 -987
- package/dist/templates/blades/details/blade.vue +0 -175
- package/dist/templates/blades/grid/blade.vue +0 -340
- package/dist/templates/composables/details-composable.ts +0 -101
- package/dist/templates/composables/grid-composable.ts +0 -244
- package/dist/templates/module/components/index.ts +0 -2
- package/dist/templates/module/components/widgets/index.ts +0 -2
- package/dist/templates/module/composables/index.ts +0 -3
- package/dist/templates/module/index.ts +0 -13
- package/dist/templates/module/locales/en.json +0 -65
- package/dist/templates/module/locales/index.ts +0 -4
- package/dist/templates/module/pages/index.ts +0 -3
- package/dist/templates/widgets/widget.vue +0 -113
- package/dist/utils/form-builder.d.ts +0 -69
- package/dist/utils/form-builder.d.ts.map +0 -1
- package/dist/utils/format.d.ts +0 -24
- package/dist/utils/format.d.ts.map +0 -1
- package/dist/utils/naming.d.ts +0 -44
- package/dist/utils/naming.d.ts.map +0 -1
- package/dist/utils/register-module.d.ts +0 -21
- package/dist/utils/register-module.d.ts.map +0 -1
- package/dist/workflows/create-app.d.ts +0 -14
- package/dist/workflows/create-app.d.ts.map +0 -1
|
@@ -1,773 +0,0 @@
|
|
|
1
|
-
# Quick Start Scenarios
|
|
2
|
-
|
|
3
|
-
Ready-to-use prompts for common module types. Copy, adapt to your needs, and let AI build your module.
|
|
4
|
-
|
|
5
|
-
## How to Use
|
|
6
|
-
|
|
7
|
-
1. Find the scenario closest to your needs
|
|
8
|
-
2. Copy the prompt
|
|
9
|
-
3. Modify details (field names, API endpoints, etc.)
|
|
10
|
-
4. Paste to AI and let it build
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## Scenario 1: E-commerce Product Management
|
|
15
|
-
|
|
16
|
-
**Use Case:** Managing products in an online store
|
|
17
|
-
|
|
18
|
-
**Prompt:**
|
|
19
|
-
```
|
|
20
|
-
Create a complete products management module using create-vc-app CLI.
|
|
21
|
-
|
|
22
|
-
Requirements:
|
|
23
|
-
- Module name: products
|
|
24
|
-
- Entity: Product
|
|
25
|
-
|
|
26
|
-
Grid blade (list) with table columns:
|
|
27
|
-
- Image (thumbnail)
|
|
28
|
-
- Product name
|
|
29
|
-
- SKU
|
|
30
|
-
- Price
|
|
31
|
-
- Category
|
|
32
|
-
- Stock quantity
|
|
33
|
-
- Status (active/inactive)
|
|
34
|
-
- Actions (edit, delete)
|
|
35
|
-
|
|
36
|
-
Add filters:
|
|
37
|
-
- Search by name
|
|
38
|
-
- Filter by category (dropdown)
|
|
39
|
-
- Filter by status (dropdown)
|
|
40
|
-
- Price range (min-max)
|
|
41
|
-
|
|
42
|
-
Details blade (form) with fields:
|
|
43
|
-
- Product name (text, required)
|
|
44
|
-
- SKU (text, required, unique)
|
|
45
|
-
- Description (rich text editor)
|
|
46
|
-
- Short description (textarea, 3 rows)
|
|
47
|
-
- Price (currency, required)
|
|
48
|
-
- Compare at price (currency, for showing discounts)
|
|
49
|
-
- Cost price (currency)
|
|
50
|
-
- Category (select dropdown: Electronics, Clothing, Home, Books, Sports)
|
|
51
|
-
- Brand (text)
|
|
52
|
-
- Tags (multivalue input)
|
|
53
|
-
- Stock quantity (number, required)
|
|
54
|
-
- Low stock alert (number, when to alert)
|
|
55
|
-
- Weight (number with kg units)
|
|
56
|
-
- Dimensions (length x width x height)
|
|
57
|
-
- Images (gallery for multiple images)
|
|
58
|
-
- Featured product (switch toggle)
|
|
59
|
-
- Status (radio buttons: draft, active, inactive)
|
|
60
|
-
- SEO title (text)
|
|
61
|
-
- SEO description (textarea)
|
|
62
|
-
|
|
63
|
-
Features:
|
|
64
|
-
- Auto-calculate discount percentage from compare at price
|
|
65
|
-
- Show stock status indicator (in stock, low stock, out of stock)
|
|
66
|
-
- Image upload with preview
|
|
67
|
-
- Bulk actions in list (delete multiple)
|
|
68
|
-
- Export to CSV button
|
|
69
|
-
|
|
70
|
-
Use CLI to generate everything, then I'll connect API.
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
---
|
|
74
|
-
|
|
75
|
-
## Scenario 2: Order Management System
|
|
76
|
-
|
|
77
|
-
**Use Case:** Managing customer orders
|
|
78
|
-
|
|
79
|
-
**Prompt:**
|
|
80
|
-
```
|
|
81
|
-
Create an orders management module with create-vc-app.
|
|
82
|
-
|
|
83
|
-
Module: orders
|
|
84
|
-
Entity: Order
|
|
85
|
-
|
|
86
|
-
Grid blade with columns:
|
|
87
|
-
- Order number (clickable, opens details)
|
|
88
|
-
- Order date
|
|
89
|
-
- Customer name
|
|
90
|
-
- Email
|
|
91
|
-
- Total amount
|
|
92
|
-
- Payment status (paid, pending, refunded)
|
|
93
|
-
- Fulfillment status (unfulfilled, fulfilled, shipped, delivered)
|
|
94
|
-
- Actions
|
|
95
|
-
|
|
96
|
-
Filters:
|
|
97
|
-
- Date range picker
|
|
98
|
-
- Search by order number or customer name
|
|
99
|
-
- Filter by payment status
|
|
100
|
-
- Filter by fulfillment status
|
|
101
|
-
|
|
102
|
-
Details blade with sections:
|
|
103
|
-
|
|
104
|
-
Section 1: Order Info
|
|
105
|
-
- Order number (read-only, auto-generated)
|
|
106
|
-
- Order date (date picker, default today)
|
|
107
|
-
- Customer name (text, required)
|
|
108
|
-
- Customer email (email input, required)
|
|
109
|
-
- Customer phone (text)
|
|
110
|
-
- Payment method (select: Credit Card, PayPal, Bank Transfer, Cash)
|
|
111
|
-
- Payment status (select: Pending, Paid, Refunded, Failed)
|
|
112
|
-
|
|
113
|
-
Section 2: Order Items (table)
|
|
114
|
-
- Product name
|
|
115
|
-
- SKU
|
|
116
|
-
- Quantity
|
|
117
|
-
- Unit price
|
|
118
|
-
- Total price
|
|
119
|
-
- Remove button
|
|
120
|
-
|
|
121
|
-
Add item button to add more products
|
|
122
|
-
|
|
123
|
-
Section 3: Shipping
|
|
124
|
-
- Shipping address (textarea, required)
|
|
125
|
-
- Shipping method (select: Standard, Express, Overnight)
|
|
126
|
-
- Tracking number (text)
|
|
127
|
-
- Fulfillment status (select: Unfulfilled, Fulfilled, Shipped, Delivered)
|
|
128
|
-
- Shipped date (date picker)
|
|
129
|
-
|
|
130
|
-
Section 4: Totals
|
|
131
|
-
- Subtotal (calculated, read-only)
|
|
132
|
-
- Shipping cost (currency)
|
|
133
|
-
- Tax (currency or percentage)
|
|
134
|
-
- Discount (currency)
|
|
135
|
-
- Total (calculated, read-only)
|
|
136
|
-
|
|
137
|
-
Section 5: Notes
|
|
138
|
-
- Internal notes (textarea, for staff only)
|
|
139
|
-
- Customer notes (textarea, from customer)
|
|
140
|
-
|
|
141
|
-
Toolbar actions:
|
|
142
|
-
- Save order
|
|
143
|
-
- Print order
|
|
144
|
-
- Send email to customer
|
|
145
|
-
- Mark as paid
|
|
146
|
-
- Mark as fulfilled
|
|
147
|
-
|
|
148
|
-
Generate with CLI.
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
---
|
|
152
|
-
|
|
153
|
-
## Scenario 3: Customer/Contact Management (CRM)
|
|
154
|
-
|
|
155
|
-
**Use Case:** Managing customer database
|
|
156
|
-
|
|
157
|
-
**Prompt:**
|
|
158
|
-
```
|
|
159
|
-
Create a customers CRM module using create-vc-app CLI.
|
|
160
|
-
|
|
161
|
-
Module: customers
|
|
162
|
-
Entity: Customer
|
|
163
|
-
|
|
164
|
-
List blade with columns:
|
|
165
|
-
- Avatar (image or initials)
|
|
166
|
-
- Full name
|
|
167
|
-
- Email
|
|
168
|
-
- Phone
|
|
169
|
-
- Company
|
|
170
|
-
- Total orders
|
|
171
|
-
- Total spent
|
|
172
|
-
- Last order date
|
|
173
|
-
- Status (active, inactive)
|
|
174
|
-
- Actions
|
|
175
|
-
|
|
176
|
-
Filters:
|
|
177
|
-
- Search by name, email, or phone
|
|
178
|
-
- Filter by status
|
|
179
|
-
- Filter by total spent (ranges)
|
|
180
|
-
- Sort by: name, total spent, last order
|
|
181
|
-
|
|
182
|
-
Details blade with tabs:
|
|
183
|
-
|
|
184
|
-
Tab 1: Profile
|
|
185
|
-
- First name (text, required)
|
|
186
|
-
- Last name (text, required)
|
|
187
|
-
- Email (email input, required, unique)
|
|
188
|
-
- Phone (text)
|
|
189
|
-
- Date of birth (date picker)
|
|
190
|
-
- Gender (radio: Male, Female, Other, Prefer not to say)
|
|
191
|
-
- Avatar (image upload)
|
|
192
|
-
- Company name (text)
|
|
193
|
-
- Job title (text)
|
|
194
|
-
- Website (url input)
|
|
195
|
-
- Status (switch: Active/Inactive)
|
|
196
|
-
|
|
197
|
-
Tab 2: Addresses
|
|
198
|
-
- Address type (select: Billing, Shipping, Both)
|
|
199
|
-
- Address line 1 (text, required)
|
|
200
|
-
- Address line 2 (text)
|
|
201
|
-
- City (text, required)
|
|
202
|
-
- State/Province (text)
|
|
203
|
-
- ZIP/Postal code (text, required)
|
|
204
|
-
- Country (select dropdown with countries)
|
|
205
|
-
- Is default address (checkbox)
|
|
206
|
-
|
|
207
|
-
Add multiple addresses capability
|
|
208
|
-
|
|
209
|
-
Tab 3: Notes
|
|
210
|
-
- Customer notes (rich text editor)
|
|
211
|
-
- Tags (multivalue: VIP, Wholesale, Retail, etc.)
|
|
212
|
-
|
|
213
|
-
Tab 4: Activity (read-only summary)
|
|
214
|
-
- Total orders (number)
|
|
215
|
-
- Total spent (currency)
|
|
216
|
-
- Average order value (currency)
|
|
217
|
-
- Last order date (date)
|
|
218
|
-
- Customer since (date, calculated)
|
|
219
|
-
|
|
220
|
-
Generate module with CLI.
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
---
|
|
224
|
-
|
|
225
|
-
## Scenario 4: Content Management (Blog/Articles)
|
|
226
|
-
|
|
227
|
-
**Use Case:** Managing blog posts or articles
|
|
228
|
-
|
|
229
|
-
**Prompt:**
|
|
230
|
-
```
|
|
231
|
-
Create a blog posts management module using CLI.
|
|
232
|
-
|
|
233
|
-
Module: blog
|
|
234
|
-
Entity: Post
|
|
235
|
-
|
|
236
|
-
List blade with columns:
|
|
237
|
-
- Featured image thumbnail
|
|
238
|
-
- Title
|
|
239
|
-
- Author
|
|
240
|
-
- Category
|
|
241
|
-
- Status (draft, published, scheduled)
|
|
242
|
-
- Views count
|
|
243
|
-
- Published date
|
|
244
|
-
- Actions
|
|
245
|
-
|
|
246
|
-
Filters:
|
|
247
|
-
- Search by title or content
|
|
248
|
-
- Filter by category
|
|
249
|
-
- Filter by status
|
|
250
|
-
- Filter by author
|
|
251
|
-
- Date range
|
|
252
|
-
|
|
253
|
-
Details blade with fields:
|
|
254
|
-
- Title (text, required, max 120 chars)
|
|
255
|
-
- Slug (text, auto-generated from title, editable)
|
|
256
|
-
- Featured image (image upload, single image)
|
|
257
|
-
- Excerpt (textarea, 3 rows, max 250 chars)
|
|
258
|
-
- Content (rich text editor, required)
|
|
259
|
-
- Category (select: News, Tutorial, Review, Guide, Opinion)
|
|
260
|
-
- Tags (multivalue: technology, business, lifestyle, etc.)
|
|
261
|
-
- Author (text or select, required)
|
|
262
|
-
- Status (select: Draft, Published, Scheduled)
|
|
263
|
-
- Published date (date-time picker)
|
|
264
|
-
- Enable comments (switch toggle)
|
|
265
|
-
- Featured post (switch toggle)
|
|
266
|
-
|
|
267
|
-
SEO Section:
|
|
268
|
-
- Meta title (text, max 60 chars)
|
|
269
|
-
- Meta description (textarea, max 160 chars)
|
|
270
|
-
- Focus keyword (text)
|
|
271
|
-
|
|
272
|
-
Settings:
|
|
273
|
-
- Allow comments (switch)
|
|
274
|
-
- Notify subscribers (switch)
|
|
275
|
-
|
|
276
|
-
Generate with create-vc-app.
|
|
277
|
-
```
|
|
278
|
-
|
|
279
|
-
---
|
|
280
|
-
|
|
281
|
-
## Scenario 5: Inventory Management
|
|
282
|
-
|
|
283
|
-
**Use Case:** Managing warehouse inventory
|
|
284
|
-
|
|
285
|
-
**Prompt:**
|
|
286
|
-
```
|
|
287
|
-
Create inventory management module with CLI.
|
|
288
|
-
|
|
289
|
-
Module: inventory
|
|
290
|
-
Entity: InventoryItem
|
|
291
|
-
|
|
292
|
-
Grid blade with columns:
|
|
293
|
-
- Product image
|
|
294
|
-
- Product name
|
|
295
|
-
- SKU
|
|
296
|
-
- Location (warehouse/bin)
|
|
297
|
-
- Quantity in stock
|
|
298
|
-
- Reserved quantity
|
|
299
|
-
- Available quantity (calculated)
|
|
300
|
-
- Reorder level
|
|
301
|
-
- Status indicator (in stock, low stock, out of stock)
|
|
302
|
-
- Last updated
|
|
303
|
-
- Actions
|
|
304
|
-
|
|
305
|
-
Filters:
|
|
306
|
-
- Search by name or SKU
|
|
307
|
-
- Filter by location
|
|
308
|
-
- Filter by stock status
|
|
309
|
-
- Show only low stock items (toggle)
|
|
310
|
-
|
|
311
|
-
Details blade with sections:
|
|
312
|
-
|
|
313
|
-
Section 1: Product Info
|
|
314
|
-
- Product name (text, required)
|
|
315
|
-
- SKU (text, required)
|
|
316
|
-
- Barcode (text)
|
|
317
|
-
- Product image (single image)
|
|
318
|
-
|
|
319
|
-
Section 2: Stock
|
|
320
|
-
- Quantity in stock (number, required)
|
|
321
|
-
- Reserved quantity (number, read-only)
|
|
322
|
-
- Available quantity (calculated: stock - reserved)
|
|
323
|
-
- Reorder level (number, when to reorder)
|
|
324
|
-
- Reorder quantity (number, how many to order)
|
|
325
|
-
- Unit of measure (select: pcs, kg, lbs, etc.)
|
|
326
|
-
|
|
327
|
-
Section 3: Locations
|
|
328
|
-
- Warehouse (select: Main, Secondary, Store A, Store B)
|
|
329
|
-
- Bin/Shelf location (text)
|
|
330
|
-
- Aisle (text)
|
|
331
|
-
- Zone (text)
|
|
332
|
-
|
|
333
|
-
Section 4: Costs
|
|
334
|
-
- Cost per unit (currency, required)
|
|
335
|
-
- Total value (calculated: quantity × cost)
|
|
336
|
-
- Average cost (currency, read-only)
|
|
337
|
-
|
|
338
|
-
Section 5: Movement History (read-only table)
|
|
339
|
-
- Date
|
|
340
|
-
- Type (in, out, adjustment, transfer)
|
|
341
|
-
- Quantity
|
|
342
|
-
- Reference (order/transfer number)
|
|
343
|
-
- User
|
|
344
|
-
- Notes
|
|
345
|
-
|
|
346
|
-
Actions:
|
|
347
|
-
- Adjust stock (increase/decrease)
|
|
348
|
-
- Transfer to another location
|
|
349
|
-
- Record damage/loss
|
|
350
|
-
- Generate stock report
|
|
351
|
-
|
|
352
|
-
Generate using create-vc-app CLI.
|
|
353
|
-
```
|
|
354
|
-
|
|
355
|
-
---
|
|
356
|
-
|
|
357
|
-
## Scenario 6: Category/Taxonomy Management
|
|
358
|
-
|
|
359
|
-
**Use Case:** Managing product categories or taxonomy
|
|
360
|
-
|
|
361
|
-
**Prompt:**
|
|
362
|
-
```
|
|
363
|
-
Create categories management module with create-vc-app.
|
|
364
|
-
|
|
365
|
-
Module: categories
|
|
366
|
-
Entity: Category
|
|
367
|
-
|
|
368
|
-
List blade with tree view or table:
|
|
369
|
-
- Category name (with hierarchy indent)
|
|
370
|
-
- Description
|
|
371
|
-
- Products count
|
|
372
|
-
- Status (active/inactive)
|
|
373
|
-
- Sort order
|
|
374
|
-
- Actions (edit, add child, delete)
|
|
375
|
-
|
|
376
|
-
Enable drag-and-drop reordering
|
|
377
|
-
|
|
378
|
-
Details blade with fields:
|
|
379
|
-
- Category name (text, required)
|
|
380
|
-
- Slug (text, auto-generated, editable)
|
|
381
|
-
- Parent category (select, hierarchical)
|
|
382
|
-
- Description (rich text editor)
|
|
383
|
-
- Short description (textarea)
|
|
384
|
-
- Category image (single image upload)
|
|
385
|
-
- Sort order (number, for ordering)
|
|
386
|
-
- Status (switch: Active/Inactive)
|
|
387
|
-
- Show in menu (checkbox)
|
|
388
|
-
|
|
389
|
-
SEO Section:
|
|
390
|
-
- Meta title (text)
|
|
391
|
-
- Meta description (textarea)
|
|
392
|
-
- Meta keywords (multivalue)
|
|
393
|
-
|
|
394
|
-
Settings:
|
|
395
|
-
- Products display (select: Grid, List, Both)
|
|
396
|
-
- Products per page (number, default 20)
|
|
397
|
-
- Default sort (select: Name, Price, Newest)
|
|
398
|
-
|
|
399
|
-
Generate with CLI.
|
|
400
|
-
```
|
|
401
|
-
|
|
402
|
-
---
|
|
403
|
-
|
|
404
|
-
## Scenario 7: User/Staff Management
|
|
405
|
-
|
|
406
|
-
**Use Case:** Managing application users and permissions
|
|
407
|
-
|
|
408
|
-
**Prompt:**
|
|
409
|
-
```
|
|
410
|
-
Create user management module using CLI.
|
|
411
|
-
|
|
412
|
-
Module: users
|
|
413
|
-
Entity: User
|
|
414
|
-
|
|
415
|
-
List blade with columns:
|
|
416
|
-
- Avatar
|
|
417
|
-
- Full name
|
|
418
|
-
- Email
|
|
419
|
-
- Role (Admin, Manager, Staff, Viewer)
|
|
420
|
-
- Status (active, inactive, invited)
|
|
421
|
-
- Last login
|
|
422
|
-
- Actions
|
|
423
|
-
|
|
424
|
-
Filters:
|
|
425
|
-
- Search by name or email
|
|
426
|
-
- Filter by role
|
|
427
|
-
- Filter by status
|
|
428
|
-
|
|
429
|
-
Details blade with tabs:
|
|
430
|
-
|
|
431
|
-
Tab 1: Profile
|
|
432
|
-
- First name (text, required)
|
|
433
|
-
- Last name (text, required)
|
|
434
|
-
- Email (email, required, unique)
|
|
435
|
-
- Username (text, required, unique)
|
|
436
|
-
- Phone (text)
|
|
437
|
-
- Avatar (image upload)
|
|
438
|
-
- Status (select: Active, Inactive, Suspended)
|
|
439
|
-
|
|
440
|
-
Tab 2: Account
|
|
441
|
-
- Role (select: Admin, Manager, Staff, Viewer)
|
|
442
|
-
- Department (select or text)
|
|
443
|
-
- Job title (text)
|
|
444
|
-
- Employee ID (text)
|
|
445
|
-
- Start date (date picker)
|
|
446
|
-
|
|
447
|
-
Tab 3: Permissions
|
|
448
|
-
- Can view products (checkbox)
|
|
449
|
-
- Can edit products (checkbox)
|
|
450
|
-
- Can delete products (checkbox)
|
|
451
|
-
- Can view orders (checkbox)
|
|
452
|
-
- Can process orders (checkbox)
|
|
453
|
-
- Can view customers (checkbox)
|
|
454
|
-
- Can edit customers (checkbox)
|
|
455
|
-
- Can access reports (checkbox)
|
|
456
|
-
- Can manage users (checkbox)
|
|
457
|
-
- Can change settings (checkbox)
|
|
458
|
-
|
|
459
|
-
Or use role-based permissions instead
|
|
460
|
-
|
|
461
|
-
Tab 4: Security
|
|
462
|
-
- Two-factor authentication (switch)
|
|
463
|
-
- Force password change on next login (checkbox)
|
|
464
|
-
- Account locked (checkbox)
|
|
465
|
-
- Failed login attempts (number, read-only)
|
|
466
|
-
- Last login (date-time, read-only)
|
|
467
|
-
- Last IP address (text, read-only)
|
|
468
|
-
|
|
469
|
-
Actions:
|
|
470
|
-
- Send password reset email
|
|
471
|
-
- Send invitation email
|
|
472
|
-
- Deactivate account
|
|
473
|
-
- View activity log
|
|
474
|
-
|
|
475
|
-
Generate with create-vc-app CLI.
|
|
476
|
-
```
|
|
477
|
-
|
|
478
|
-
---
|
|
479
|
-
|
|
480
|
-
## Scenario 8: Invoice Management
|
|
481
|
-
|
|
482
|
-
**Use Case:** Creating and managing invoices
|
|
483
|
-
|
|
484
|
-
**Prompt:**
|
|
485
|
-
```
|
|
486
|
-
Create invoice management module with CLI.
|
|
487
|
-
|
|
488
|
-
Module: invoices
|
|
489
|
-
Entity: Invoice
|
|
490
|
-
|
|
491
|
-
List blade with columns:
|
|
492
|
-
- Invoice number
|
|
493
|
-
- Invoice date
|
|
494
|
-
- Due date
|
|
495
|
-
- Customer name
|
|
496
|
-
- Amount
|
|
497
|
-
- Status (draft, sent, paid, overdue)
|
|
498
|
-
- Payment received
|
|
499
|
-
- Balance due
|
|
500
|
-
- Actions
|
|
501
|
-
|
|
502
|
-
Filters:
|
|
503
|
-
- Search by invoice number or customer
|
|
504
|
-
- Filter by status
|
|
505
|
-
- Date range
|
|
506
|
-
- Amount range
|
|
507
|
-
|
|
508
|
-
Details blade with sections:
|
|
509
|
-
|
|
510
|
-
Section 1: Invoice Info
|
|
511
|
-
- Invoice number (text, auto-generated, read-only)
|
|
512
|
-
- Invoice date (date picker, default today)
|
|
513
|
-
- Due date (date picker, required)
|
|
514
|
-
- Purchase order (text, optional)
|
|
515
|
-
|
|
516
|
-
Section 2: Customer
|
|
517
|
-
- Customer name (select or text, required)
|
|
518
|
-
- Customer email (text, required)
|
|
519
|
-
- Billing address (textarea)
|
|
520
|
-
- Shipping address (textarea, optional)
|
|
521
|
-
|
|
522
|
-
Section 3: Line Items (table)
|
|
523
|
-
- Description (text)
|
|
524
|
-
- Quantity (number)
|
|
525
|
-
- Unit price (currency)
|
|
526
|
-
- Tax rate (percentage)
|
|
527
|
-
- Total (calculated)
|
|
528
|
-
|
|
529
|
-
Add line button
|
|
530
|
-
|
|
531
|
-
Section 4: Totals
|
|
532
|
-
- Subtotal (calculated)
|
|
533
|
-
- Tax (calculated)
|
|
534
|
-
- Discount (currency or percentage)
|
|
535
|
-
- Shipping (currency)
|
|
536
|
-
- Total (calculated)
|
|
537
|
-
- Amount paid (currency, read-only)
|
|
538
|
-
- Balance due (calculated)
|
|
539
|
-
|
|
540
|
-
Section 5: Payment Info
|
|
541
|
-
- Payment method (select: Bank Transfer, Credit Card, PayPal, Check, Cash)
|
|
542
|
-
- Payment terms (text: Net 30, Due on receipt, etc.)
|
|
543
|
-
- Status (select: Draft, Sent, Paid, Partially Paid, Overdue, Cancelled)
|
|
544
|
-
|
|
545
|
-
Section 6: Notes
|
|
546
|
-
- Notes to customer (textarea, visible on invoice)
|
|
547
|
-
- Internal notes (textarea, for staff only)
|
|
548
|
-
|
|
549
|
-
Actions:
|
|
550
|
-
- Send invoice via email
|
|
551
|
-
- Download PDF
|
|
552
|
-
- Record payment
|
|
553
|
-
- Mark as paid
|
|
554
|
-
- Duplicate invoice
|
|
555
|
-
- Convert to credit note
|
|
556
|
-
|
|
557
|
-
Generate with create-vc-app.
|
|
558
|
-
```
|
|
559
|
-
|
|
560
|
-
---
|
|
561
|
-
|
|
562
|
-
## Scenario 9: Task/Project Management
|
|
563
|
-
|
|
564
|
-
**Use Case:** Simple task and project tracking
|
|
565
|
-
|
|
566
|
-
**Prompt:**
|
|
567
|
-
```
|
|
568
|
-
Create task management module using CLI.
|
|
569
|
-
|
|
570
|
-
Module: tasks
|
|
571
|
-
Entity: Task
|
|
572
|
-
|
|
573
|
-
List blade with columns:
|
|
574
|
-
- Status icon (to-do, in progress, done)
|
|
575
|
-
- Task title
|
|
576
|
-
- Project
|
|
577
|
-
- Assigned to
|
|
578
|
-
- Priority (low, medium, high, urgent)
|
|
579
|
-
- Due date
|
|
580
|
-
- Progress (percentage)
|
|
581
|
-
- Actions
|
|
582
|
-
|
|
583
|
-
Filters:
|
|
584
|
-
- Search by title
|
|
585
|
-
- Filter by project
|
|
586
|
-
- Filter by assigned user
|
|
587
|
-
- Filter by status
|
|
588
|
-
- Filter by priority
|
|
589
|
-
- Date range
|
|
590
|
-
|
|
591
|
-
Details blade with fields:
|
|
592
|
-
- Task title (text, required)
|
|
593
|
-
- Project (select dropdown, required)
|
|
594
|
-
- Description (rich text editor)
|
|
595
|
-
- Assigned to (select user, can be multiple)
|
|
596
|
-
- Reporter (select user, default current user)
|
|
597
|
-
- Priority (radio: Low, Medium, High, Urgent)
|
|
598
|
-
- Status (select: To Do, In Progress, Review, Done, Blocked)
|
|
599
|
-
- Due date (date picker)
|
|
600
|
-
- Estimated time (number, hours)
|
|
601
|
-
- Actual time (number, hours, read-only)
|
|
602
|
-
- Progress (slider, 0-100%)
|
|
603
|
-
- Tags (multivalue: bug, feature, improvement, etc.)
|
|
604
|
-
|
|
605
|
-
Checklist section:
|
|
606
|
-
- Add sub-tasks as checklist items
|
|
607
|
-
- Each item: text, checkbox, assigned user
|
|
608
|
-
|
|
609
|
-
Attachments:
|
|
610
|
-
- File upload (multiple files)
|
|
611
|
-
- Show file list with download links
|
|
612
|
-
|
|
613
|
-
Comments:
|
|
614
|
-
- Rich text area for comments
|
|
615
|
-
- List of previous comments with user and date
|
|
616
|
-
|
|
617
|
-
Generate with create-vc-app CLI.
|
|
618
|
-
```
|
|
619
|
-
|
|
620
|
-
---
|
|
621
|
-
|
|
622
|
-
## Scenario 10: Settings/Configuration Page
|
|
623
|
-
|
|
624
|
-
**Use Case:** Application settings (no list, just form)
|
|
625
|
-
|
|
626
|
-
**Prompt:**
|
|
627
|
-
```
|
|
628
|
-
Create application settings module with create-vc-app.
|
|
629
|
-
|
|
630
|
-
Module: settings
|
|
631
|
-
Type: Details blade only (no list)
|
|
632
|
-
|
|
633
|
-
Settings form with sections:
|
|
634
|
-
|
|
635
|
-
Section 1: General
|
|
636
|
-
- Application name (text, required)
|
|
637
|
-
- Company name (text, required)
|
|
638
|
-
- Contact email (email, required)
|
|
639
|
-
- Support email (email)
|
|
640
|
-
- Phone number (text)
|
|
641
|
-
- Address (textarea)
|
|
642
|
-
- Logo (image upload)
|
|
643
|
-
- Favicon (image upload, small icon)
|
|
644
|
-
- Timezone (select with all timezones)
|
|
645
|
-
- Date format (select: MM/DD/YYYY, DD/MM/YYYY, YYYY-MM-DD)
|
|
646
|
-
- Time format (radio: 12h, 24h)
|
|
647
|
-
|
|
648
|
-
Section 2: Localization
|
|
649
|
-
- Default language (select: English, Spanish, French, German, etc.)
|
|
650
|
-
- Currency (select: USD, EUR, GBP, etc.)
|
|
651
|
-
- Currency format (text: $1,000.00)
|
|
652
|
-
- Decimal separator (text: . or ,)
|
|
653
|
-
- Thousand separator (text: , or .)
|
|
654
|
-
|
|
655
|
-
Section 3: Email
|
|
656
|
-
- SMTP host (text, required)
|
|
657
|
-
- SMTP port (number, default 587)
|
|
658
|
-
- SMTP username (text)
|
|
659
|
-
- SMTP password (password)
|
|
660
|
-
- From email (email, required)
|
|
661
|
-
- From name (text, required)
|
|
662
|
-
- Use SSL/TLS (checkbox)
|
|
663
|
-
- Test email button (sends test email)
|
|
664
|
-
|
|
665
|
-
Section 4: Security
|
|
666
|
-
- Enable two-factor authentication (switch)
|
|
667
|
-
- Session timeout (number, minutes, default 30)
|
|
668
|
-
- Password minimum length (number, default 8)
|
|
669
|
-
- Require special characters (checkbox)
|
|
670
|
-
- Require uppercase (checkbox)
|
|
671
|
-
- Require numbers (checkbox)
|
|
672
|
-
- Max login attempts (number, default 5)
|
|
673
|
-
- Lockout duration (number, minutes, default 15)
|
|
674
|
-
|
|
675
|
-
Section 5: Notifications
|
|
676
|
-
- Enable email notifications (switch)
|
|
677
|
-
- Enable push notifications (switch)
|
|
678
|
-
- Daily summary email (checkbox)
|
|
679
|
-
- Weekly report email (checkbox)
|
|
680
|
-
- Notification email (email)
|
|
681
|
-
|
|
682
|
-
Section 6: Maintenance
|
|
683
|
-
- Maintenance mode (switch)
|
|
684
|
-
- Maintenance message (textarea)
|
|
685
|
-
- Allow IP addresses (textarea, one per line)
|
|
686
|
-
- Clear cache button
|
|
687
|
-
- Clear logs button
|
|
688
|
-
- Database backup button
|
|
689
|
-
|
|
690
|
-
Actions:
|
|
691
|
-
- Save settings
|
|
692
|
-
- Reset to defaults
|
|
693
|
-
- Export settings (JSON)
|
|
694
|
-
- Import settings (upload JSON)
|
|
695
|
-
|
|
696
|
-
Generate with CLI (details blade only, mark as workspace).
|
|
697
|
-
```
|
|
698
|
-
|
|
699
|
-
---
|
|
700
|
-
|
|
701
|
-
## How to Adapt These Prompts
|
|
702
|
-
|
|
703
|
-
### 1. Change Field Names
|
|
704
|
-
Replace field names with your specific requirements:
|
|
705
|
-
```
|
|
706
|
-
Original: Product name (text, required)
|
|
707
|
-
Your needs: Service title (text, required)
|
|
708
|
-
```
|
|
709
|
-
|
|
710
|
-
### 2. Add/Remove Fields
|
|
711
|
-
Add fields you need, remove ones you don't:
|
|
712
|
-
```
|
|
713
|
-
Add: License key (text, read-only, auto-generated)
|
|
714
|
-
Remove: Tags field (not needed)
|
|
715
|
-
```
|
|
716
|
-
|
|
717
|
-
### 3. Change Component Types
|
|
718
|
-
Use different form components:
|
|
719
|
-
```
|
|
720
|
-
Original: Category (select dropdown)
|
|
721
|
-
Your needs: Category (radio buttons: Cat A, Cat B, Cat C)
|
|
722
|
-
```
|
|
723
|
-
|
|
724
|
-
### 4. Modify Workflows
|
|
725
|
-
Adjust to your business process:
|
|
726
|
-
```
|
|
727
|
-
Original: Status (draft, active, inactive)
|
|
728
|
-
Your needs: Status (submitted, approved, rejected, pending review)
|
|
729
|
-
```
|
|
730
|
-
|
|
731
|
-
### 5. Add Custom Logic
|
|
732
|
-
Describe special requirements:
|
|
733
|
-
```
|
|
734
|
-
Add: Auto-calculate shipping cost based on weight and destination
|
|
735
|
-
Add: Send email notification when status changes to "approved"
|
|
736
|
-
Add: Generate PDF receipt when payment is confirmed
|
|
737
|
-
```
|
|
738
|
-
|
|
739
|
-
---
|
|
740
|
-
|
|
741
|
-
## Next Steps After Generation
|
|
742
|
-
|
|
743
|
-
1. **Install dependencies:**
|
|
744
|
-
```bash
|
|
745
|
-
cd your-app
|
|
746
|
-
yarn
|
|
747
|
-
```
|
|
748
|
-
|
|
749
|
-
2. **Connect API:**
|
|
750
|
-
See [API Client Generation Guide](./api-client-generation.md)
|
|
751
|
-
|
|
752
|
-
3. **Test module:**
|
|
753
|
-
```bash
|
|
754
|
-
yarn serve
|
|
755
|
-
```
|
|
756
|
-
Open: `http://localhost:8080/apps/your-app/`
|
|
757
|
-
|
|
758
|
-
4. **Customize:**
|
|
759
|
-
- Update TODO comments in composables
|
|
760
|
-
- Add validation rules
|
|
761
|
-
- Connect real API endpoints
|
|
762
|
-
- Customize styling
|
|
763
|
-
- Add business logic
|
|
764
|
-
|
|
765
|
-
---
|
|
766
|
-
|
|
767
|
-
## Related Documentation
|
|
768
|
-
|
|
769
|
-
- [CLI Usage Guide](./cli-usage.md) - Complete CLI reference
|
|
770
|
-
- [API Client Generation](./api-client-generation.md) - Connect to backend
|
|
771
|
-
- [Simple Modifications](./simple-modifications.md) - Modify existing modules
|
|
772
|
-
- [Complete Workflow](../guides/complete-workflow.md) - Full development process
|
|
773
|
-
|