|
1229 | 1229 | } |
1230 | 1230 | ] |
1231 | 1231 | }, |
| 1232 | + { |
| 1233 | + "id": 51, |
| 1234 | + "prompt": "Set up TurboSign in my Express app. On the signing document I need a conditional field: the signer ticks a checkbox to opt into relocation assistance, and only then should a second signature field become visible. Add an endpoint that sends this document.", |
| 1235 | + "expected_output": "Creates a TurboSign config file and a sendSignature endpoint whose fields array contains a controlling checkbox field with metadata.fieldKey and a dependent field with metadata.conditional (controllingFieldKey matching the checkbox fieldKey, operator is_checked, action show), wires routes into the main app, adds .env with TurboSign vars", |
| 1236 | + "files": [ |
| 1237 | + "package.json", |
| 1238 | + "tsconfig.json", |
| 1239 | + "src/index.ts", |
| 1240 | + "package-lock.json" |
| 1241 | + ], |
| 1242 | + "assertions": [ |
| 1243 | + { |
| 1244 | + "name": "config-file-created", |
| 1245 | + "type": "file_exists", |
| 1246 | + "description": "A TurboSign config/client file was created" |
| 1247 | + }, |
| 1248 | + { |
| 1249 | + "name": "uses-sendSignature", |
| 1250 | + "type": "file_contains", |
| 1251 | + "description": "Route handler calls TurboSign.sendSignature with a fields array" |
| 1252 | + }, |
| 1253 | + { |
| 1254 | + "name": "has-checkbox-field", |
| 1255 | + "type": "file_contains", |
| 1256 | + "description": "The fields array includes a field with type 'checkbox' acting as the controlling field" |
| 1257 | + }, |
| 1258 | + { |
| 1259 | + "name": "checkbox-has-fieldKey", |
| 1260 | + "type": "file_contains", |
| 1261 | + "description": "The controlling checkbox field carries metadata.fieldKey (a stable id, e.g. metadata: { fieldKey: '...' })" |
| 1262 | + }, |
| 1263 | + { |
| 1264 | + "name": "dependent-has-conditional", |
| 1265 | + "type": "file_contains", |
| 1266 | + "description": "A dependent field carries metadata.conditional with controllingFieldKey, operator, and action keys" |
| 1267 | + }, |
| 1268 | + { |
| 1269 | + "name": "controllingFieldKey-matches", |
| 1270 | + "type": "file_contains", |
| 1271 | + "description": "The dependent field's conditional.controllingFieldKey matches the controlling checkbox's metadata.fieldKey value exactly" |
| 1272 | + }, |
| 1273 | + { |
| 1274 | + "name": "uses-valid-operator-and-action", |
| 1275 | + "type": "file_contains", |
| 1276 | + "description": "conditional.operator is 'is_checked' or 'is_not_checked' and conditional.action is 'show' or 'unlock'" |
| 1277 | + }, |
| 1278 | + { |
| 1279 | + "name": "routes-wired", |
| 1280 | + "type": "file_contains", |
| 1281 | + "description": "Main app file (src/index.ts) was modified to import and register the signature routes" |
| 1282 | + }, |
| 1283 | + { |
| 1284 | + "name": "env-has-sign-vars", |
| 1285 | + "type": "file_contains", |
| 1286 | + "description": ".env contains TURBODOCX_API_KEY and TURBODOCX_SENDER_EMAIL" |
| 1287 | + } |
| 1288 | + ] |
| 1289 | + }, |
1232 | 1290 | { |
1233 | 1291 | "id": 10, |
1234 | 1292 | "skill_name": "turbodocx-html-to-docx", |
|
0 commit comments