|
3 | 3 | "evals": [ |
4 | 4 | { |
5 | 5 | "id": 1, |
6 | | - "prompt": "We have a React + Vite internal app for inventory. Please create a schema-driven list page for products with search, status filter, row actions, and a create-product action. Use ObjectUI patterns and include integration snippets.", |
7 | | - "expected_output": "Produces a complete page schema JSON for list/grid behavior, includes integration wiring steps for SchemaRenderer and component registration, and provides a validation checklist.", |
| 6 | + "prompt": "Create a schema-driven list page for products in our React + Vite inventory app: search, status filter, row actions and a create-product action, with ObjectUI integration snippets.", |
| 7 | + "expected_output": "A complete list/grid page schema JSON, SchemaRenderer wiring and component registration steps, and a validation checklist.", |
8 | 8 | "files": [], |
9 | 9 | "assertions": { |
10 | 10 | "must_contain": [ |
|
22 | 22 | }, |
23 | 23 | { |
24 | 24 | "id": 2, |
25 | | - "prompt": "Please convert our existing customer detail page to Schema-Driven UI. It needs three sections — Basic Info, Contacts, and Recent Orders — and the 'Edit Customer' button must be visible only to admins. Stack: React + TypeScript.", |
26 | | - "expected_output": "Provides a structured detail-page schema with expression-based visibility for admin-only actions, keeps sections modular, and explains how to integrate into an app project.", |
| 25 | + "prompt": "Convert our customer detail page (React + TypeScript) to schema-driven UI: sections Basic Info, Contacts and Recent Orders, and an 'Edit Customer' button visible only to admins.", |
| 26 | + "expected_output": "A detail-page schema with modular sections, expression-based visibility on the admin-only action, and app integration steps.", |
27 | 27 | "files": [], |
28 | 28 | "assertions": { |
29 | 29 | "must_contain": [ |
|
39 | 39 | }, |
40 | 40 | { |
41 | 41 | "id": 3, |
42 | | - "prompt": "Build a console-like analytics dashboard page in an existing ObjectUI project: KPI cards on top, trend chart in the middle, and recent activity list at the bottom. Also include action definitions for refresh and navigate-to-report.", |
43 | | - "expected_output": "Generates dashboard schema with layout composition, plugin-oriented chart usage, action definitions as data, and testing guidance for responsiveness and interaction.", |
| 42 | + "prompt": "Build an analytics dashboard page in an existing ObjectUI project: KPI cards on top, a trend chart, a recent-activity list at the bottom, plus refresh and navigate-to-report actions.", |
| 43 | + "expected_output": "A dashboard schema with layout composition, a plugin chart, actions as data, and responsiveness and interaction testing guidance.", |
44 | 44 | "files": [], |
45 | 45 | "assertions": { |
46 | 46 | "must_contain": [ |
|
51 | 51 | ], |
52 | 52 | "must_not_contain": [] |
53 | 53 | } |
| 54 | + }, |
| 55 | + { |
| 56 | + "id": 4, |
| 57 | + "prompt": "Add a 'Delete product' button to the product detail page. It must read as destructive and ask the user to confirm before the record is removed.", |
| 58 | + "expected_output": "An action:button whose properties carry label, actionType, target, a confirmText question and variant 'danger': the button draws red and asks that question through the destructive confirm button. On an action block the Button primitive's spelling of that arm is refused at save; danger is the action runner's word.", |
| 59 | + "files": [], |
| 60 | + "assertions": { |
| 61 | + "must_contain": [ |
| 62 | + "action:button", |
| 63 | + "\"variant\": \"danger\"", |
| 64 | + "confirmText" |
| 65 | + ], |
| 66 | + "must_not_contain": [ |
| 67 | + "\"variant\": \"destructive\"" |
| 68 | + ] |
| 69 | + } |
54 | 70 | } |
55 | 71 | ] |
56 | 72 | } |
0 commit comments