create-appraisejs 0.3.0 → 0.3.1-alpha.1
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 +17 -17
- package/dist/cli.e2e.test.d.ts +2 -0
- package/dist/cli.e2e.test.d.ts.map +1 -0
- package/dist/cli.e2e.test.js +75 -0
- package/dist/cli.e2e.test.js.map +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/config.test.d.ts +2 -0
- package/dist/config.test.d.ts.map +1 -0
- package/dist/config.test.js +65 -0
- package/dist/config.test.js.map +1 -0
- package/dist/copy-template.test.d.ts +2 -0
- package/dist/copy-template.test.d.ts.map +1 -0
- package/dist/copy-template.test.js +71 -0
- package/dist/copy-template.test.js.map +1 -0
- package/dist/download-repo.test.d.ts +2 -0
- package/dist/download-repo.test.d.ts.map +1 -0
- package/dist/download-repo.test.js +16 -0
- package/dist/download-repo.test.js.map +1 -0
- package/dist/install.test.d.ts +2 -0
- package/dist/install.test.d.ts.map +1 -0
- package/dist/install.test.js +120 -0
- package/dist/install.test.js.map +1 -0
- package/dist/prepare-template-utils.d.ts.map +1 -1
- package/dist/prepare-template-utils.js.map +1 -1
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +2 -2
- package/dist/prompts.js.map +1 -1
- package/dist/prompts.test.d.ts +2 -0
- package/dist/prompts.test.d.ts.map +1 -0
- package/dist/prompts.test.js +58 -0
- package/dist/prompts.test.js.map +1 -0
- package/dist/sync-templates-utils.d.ts.map +1 -1
- package/dist/sync-templates-utils.js +1 -5
- package/dist/sync-templates-utils.js.map +1 -1
- package/package.json +3 -6
- package/templates/blank/.editorconfig +11 -0
- package/templates/blank/.env.example +2 -2
- package/templates/blank/.gitattributes +21 -0
- package/templates/blank/.gitconfig.appraise +14 -0
- package/templates/blank/.prettierrc +13 -0
- package/templates/blank/.vscode/settings.json +2 -0
- package/templates/blank/README.md +12 -12
- package/templates/blank/e2e/README.md +56 -0
- package/templates/blank/e2e/apply-migrations.mjs +76 -0
- package/templates/blank/e2e/appraise-smoke.spec.ts +78 -0
- package/templates/blank/e2e/authoring.spec.ts +53 -0
- package/templates/blank/e2e/crud-configuration.spec.ts +138 -0
- package/templates/blank/e2e/crud-tests.spec.ts +76 -0
- package/templates/blank/e2e/helpers/forms.ts +186 -0
- package/templates/blank/e2e/helpers/navigation.ts +27 -0
- package/templates/blank/e2e/helpers/table.ts +45 -0
- package/templates/blank/e2e/helpers/test-data.ts +549 -0
- package/templates/blank/e2e/helpers/ui.ts +41 -0
- package/templates/blank/e2e/navigation.spec.ts +101 -0
- package/templates/blank/e2e/runs-and-reports.spec.ts +82 -0
- package/templates/blank/e2e/settings-sync.spec.ts +39 -0
- package/templates/blank/e2e/start-server.mjs +61 -0
- package/templates/blank/eslint.config.mjs +4 -4
- package/templates/blank/gitignore +3 -0
- package/templates/blank/next-env.d.ts +6 -6
- package/templates/blank/package-lock.json +2241 -1030
- package/templates/blank/package.json +30 -20
- package/templates/blank/packages/cucumber-runtime/src/cli.ts +12 -3
- package/templates/blank/packages/locator-picker-companion/dist/cli.js +1 -1
- package/templates/blank/packages/locator-picker-companion/dist/index.d.ts +3 -3
- package/templates/blank/packages/locator-picker-companion/dist/index.js +3 -3
- package/templates/blank/packages/locator-picker-companion/dist/injected-picker-script.js +13 -3
- package/templates/blank/packages/locator-picker-companion/dist/selector-generator.d.ts +6 -3
- package/templates/blank/packages/locator-picker-companion/dist/selector-generator.js +233 -229
- package/templates/blank/packages/locator-picker-companion/src/cli.ts +1 -7
- package/templates/blank/packages/locator-picker-companion/src/injected-picker-script.ts +26 -5
- package/templates/blank/packages/locator-picker-companion/src/launcher.ts +1 -3
- package/templates/blank/packages/locator-picker-companion/src/session-file.ts +4 -15
- package/templates/blank/packages/locator-picker-companion/src/types.ts +1 -8
- package/templates/blank/playwright.config.ts +46 -0
- package/templates/blank/postcss.config.mjs +2 -2
- package/templates/blank/prisma/dev.db +0 -0
- package/templates/blank/prisma/migrations/20251104113456_add_type_for_template_step_groups/migration.sql +16 -16
- package/templates/blank/prisma/migrations/20251104170946_add_tags_to_test_suite_and_test_case/migration.sql +27 -27
- package/templates/blank/prisma/migrations/20251112190024_add_cascade_delete_to_test_run_test_case/migration.sql +17 -17
- package/templates/blank/prisma/migrations/20251113181100_add_test_run_log/migration.sql +12 -12
- package/templates/blank/prisma/migrations/20251119191838_add_tag_type/migration.sql +28 -28
- package/templates/blank/prisma/migrations/20251121164059_add_conflict_resolution/migration.sql +12 -12
- package/templates/blank/prisma/migrations/20251223183400_add_report_model_to_db_schema/migration.sql +10 -10
- package/templates/blank/prisma/migrations/20251223183637_add_report_test_case_entity_for_storing_test_results_for_individual_test_cases/migration.sql +10 -10
- package/templates/blank/prisma/migrations/20251224083549_add_comprehensive_report_storage/migration.sql +108 -108
- package/templates/blank/prisma/migrations/20251229194422_migrate_duration_to_string/migration.sql +55 -55
- package/templates/blank/prisma/migrations/20251230124637_add_unique_constraint_to_test_run_name/migration.sql +27 -27
- package/templates/blank/prisma/migrations/20260115094436_add_dashboard_metrics/migration.sql +59 -59
- package/templates/blank/prisma/migrations/20260127172022_add_cascade_delete_to_step_parameters/migration.sql +34 -34
- package/templates/blank/prisma/migrations/20260313093000_add_report_step_screenshot_path/migration.sql +1 -1
- package/templates/blank/prisma/migrations/20260507000000_add_flow_builder_node_grouping/migration.sql +34 -0
- package/templates/blank/prisma/schema.prisma +36 -0
- package/templates/blank/scripts/configure-git-line-endings.mjs +91 -0
- package/templates/blank/scripts/install-template-step.ts +5 -1
- package/templates/blank/scripts/lib/jsdoc-parser.test.ts +12 -0
- package/templates/blank/scripts/lib/jsdoc-parser.ts +5 -88
- package/templates/blank/scripts/lib/step-file-parser.ts +111 -178
- package/templates/blank/scripts/lib/step-matcher.test.ts +3 -3
- package/templates/blank/scripts/lib/step-matcher.ts +5 -1
- package/templates/blank/scripts/lib/template-step-installer.test.ts +4 -2
- package/templates/blank/scripts/lib/template-step-installer.ts +16 -4
- package/templates/blank/scripts/lib/template-step-registry.test.ts +1 -1
- package/templates/blank/scripts/lib/template-step-registry.ts +4 -1
- package/templates/blank/scripts/lib/template-sync-utils.test.ts +35 -0
- package/templates/blank/scripts/run-fallow-commit.mjs +21 -0
- package/templates/blank/scripts/setup-env.ts +0 -0
- package/templates/blank/scripts/sync-all.ts +7 -6
- package/templates/blank/scripts/sync-appraise-base-template.ts +84 -77
- package/templates/blank/scripts/sync-environments.ts +47 -44
- package/templates/blank/scripts/sync-locator-groups.ts +67 -76
- package/templates/blank/scripts/sync-locators.ts +50 -53
- package/templates/blank/scripts/sync-modules.ts +42 -42
- package/templates/blank/scripts/sync-tags.ts +52 -52
- package/templates/blank/scripts/sync-template-step-groups.ts +34 -32
- package/templates/blank/scripts/sync-template-steps.ts +97 -97
- package/templates/blank/scripts/sync-test-cases.ts +65 -74
- package/templates/blank/scripts/sync-test-suites.ts +314 -238
- package/templates/blank/src/actions/dashboard/dashboard-actions.ts +0 -7
- package/templates/blank/src/actions/locator-picker/locator-picker-actions.test.ts +10 -0
- package/templates/blank/src/actions/locator-picker/locator-picker-actions.ts +5 -0
- package/templates/blank/src/actions/server-action-boundary.test.ts +788 -0
- package/templates/blank/src/actions/settings/sync-actions.ts +3 -1
- package/templates/blank/src/actions/tags/tag-actions.ts +1 -7
- package/templates/blank/src/actions/template-test-case/template-test-case-actions.ts +3 -1
- package/templates/blank/src/actions/test-suite/test-suite-actions.ts +2 -1
- package/templates/blank/src/app/(base)/environments/environment-form.tsx +19 -25
- package/templates/blank/src/app/(base)/environments/environment-helpers.ts +4 -1
- package/templates/blank/src/app/(base)/environments/page.tsx +2 -2
- package/templates/blank/src/app/(base)/locator-groups/create/page.tsx +1 -1
- package/templates/blank/src/app/(base)/locator-groups/locator-group-form.tsx +28 -26
- package/templates/blank/src/app/(base)/locator-groups/page.tsx +10 -20
- package/templates/blank/src/app/(base)/locators/create/create-locator-workspace-helpers.test.ts +3 -6
- package/templates/blank/src/app/(base)/locators/create/create-locator-workspace-helpers.ts +34 -333
- package/templates/blank/src/app/(base)/locators/create/create-locator-workspace-response.test.ts +85 -0
- package/templates/blank/src/app/(base)/locators/create/create-locator-workspace-response.ts +142 -0
- package/templates/blank/src/app/(base)/locators/create/create-locator-workspace-state.ts +231 -0
- package/templates/blank/src/app/(base)/locators/create/create-locator-workspace-types.ts +68 -0
- package/templates/blank/src/app/(base)/locators/create/create-locator-workspace.test.tsx +73 -1
- package/templates/blank/src/app/(base)/locators/create/create-locator-workspace.tsx +19 -16
- package/templates/blank/src/app/(base)/locators/create/page.tsx +4 -8
- package/templates/blank/src/app/(base)/locators/create/use-locator-workspace.ts +22 -4
- package/templates/blank/src/app/(base)/locators/locator-file-sync.test.ts +45 -0
- package/templates/blank/src/app/(base)/locators/locator-file-sync.ts +18 -0
- package/templates/blank/src/app/(base)/locators/locator-helpers.ts +2 -12
- package/templates/blank/src/app/(base)/locators/locator-sync-toast.ts +34 -0
- package/templates/blank/src/app/(base)/locators/locator-table-columns.tsx +59 -60
- package/templates/blank/src/app/(base)/locators/modify/[id]/page.tsx +1 -1
- package/templates/blank/src/app/(base)/locators/page.tsx +3 -5
- package/templates/blank/src/app/(base)/locators/picker/page.tsx +6 -0
- package/templates/blank/src/app/(base)/locators/sync-locators-button.tsx +12 -53
- package/templates/blank/src/app/(base)/modules/modify/[id]/page.tsx +11 -5
- package/templates/blank/src/app/(base)/modules/module-form-helpers.ts +12 -0
- package/templates/blank/src/app/(base)/modules/module-form.tsx +17 -20
- package/templates/blank/src/app/(base)/modules/module-helpers.test.ts +48 -0
- package/templates/blank/src/app/(base)/modules/module-helpers.ts +4 -64
- package/templates/blank/src/app/(base)/modules/module-parent-helpers.ts +16 -0
- package/templates/blank/src/app/(base)/modules/module-row-helpers.ts +32 -0
- package/templates/blank/src/app/(base)/modules/module-types.ts +8 -0
- package/templates/blank/src/app/(base)/modules/page.tsx +2 -2
- package/templates/blank/src/app/(base)/reports/[id]/page.tsx +25 -30
- package/templates/blank/src/app/(base)/reports/page.tsx +5 -48
- package/templates/blank/src/app/(base)/reports/report-charts.tsx +17 -0
- package/templates/blank/src/app/(base)/reports/report-detail-helpers.ts +27 -54
- package/templates/blank/src/app/(base)/reports/report-metric-card.tsx +3 -3
- package/templates/blank/src/app/(base)/reports/report-table-columns.tsx +14 -46
- package/templates/blank/src/app/(base)/reports/report-table.tsx +5 -55
- package/templates/blank/src/app/(base)/reports/report-view-table-columns.tsx +5 -5
- package/templates/blank/src/app/(base)/reports/report-view-table.tsx +1 -49
- package/templates/blank/src/app/(base)/reports/test-cases/page.tsx +1 -1
- package/templates/blank/src/app/(base)/reports/test-cases/test-cases-metric-table-columns.tsx +95 -96
- package/templates/blank/src/app/(base)/reports/test-suites/page.tsx +2 -2
- package/templates/blank/src/app/(base)/reports/test-suites/test-suites-metric-table-columns.tsx +65 -64
- package/templates/blank/src/app/(base)/reports/test-suites/test-suites-metric-table.tsx +3 -1
- package/templates/blank/src/app/(base)/reports/view-logs-button.tsx +1 -1
- package/templates/blank/src/app/(base)/settings/page.tsx +2 -2
- package/templates/blank/src/app/(base)/settings/settings-sync-panel-helpers.test.tsx +4 -6
- package/templates/blank/src/app/(base)/settings/settings-sync-panel-helpers.tsx +2 -2
- package/templates/blank/src/app/(base)/settings/settings-sync-panel.tsx +27 -34
- package/templates/blank/src/app/(base)/settings/use-settings-sync.ts +0 -1
- package/templates/blank/src/app/(base)/tags/create/page.tsx +1 -1
- package/templates/blank/src/app/(base)/tags/modify/[id]/page.tsx +1 -1
- package/templates/blank/src/app/(base)/tags/page.tsx +2 -2
- package/templates/blank/src/app/(base)/tags/tag-form-helpers.ts +9 -0
- package/templates/blank/src/app/(base)/tags/tag-form.test.tsx +42 -8
- package/templates/blank/src/app/(base)/tags/tag-form.tsx +45 -24
- package/templates/blank/src/app/(base)/template-step-groups/page.tsx +2 -2
- package/templates/blank/src/app/(base)/template-step-groups/template-step-group-form.tsx +13 -16
- package/templates/blank/src/app/(base)/template-step-groups/template-step-group-helpers.ts +4 -1
- package/templates/blank/src/app/(base)/template-step-groups/template-step-group-table-columns.tsx +1 -5
- package/templates/blank/src/app/(base)/template-steps/modify/[id]/page.tsx +13 -7
- package/templates/blank/src/app/(base)/template-steps/page.tsx +2 -2
- package/templates/blank/src/app/(base)/template-steps/paramChip.tsx +13 -10
- package/templates/blank/src/app/(base)/template-steps/template-step-form-helpers.ts +67 -0
- package/templates/blank/src/app/(base)/template-steps/template-step-form.tsx +21 -26
- package/templates/blank/src/app/(base)/template-steps/template-step-helpers.test.ts +19 -1
- package/templates/blank/src/app/(base)/template-steps/template-step-helpers.ts +21 -176
- package/templates/blank/src/app/(base)/template-steps/template-step-option-helpers.ts +13 -0
- package/templates/blank/src/app/(base)/template-steps/template-step-row-guards.ts +65 -0
- package/templates/blank/src/app/(base)/template-steps/template-step-table-columns.tsx +7 -4
- package/templates/blank/src/app/(base)/template-steps/template-step-types.ts +27 -0
- package/templates/blank/src/app/(base)/template-test-cases/create/page.tsx +12 -19
- package/templates/blank/src/app/(base)/template-test-cases/create-template-test-case-page-data.test.ts +81 -0
- package/templates/blank/src/app/(base)/template-test-cases/create-template-test-case-page-data.ts +57 -0
- package/templates/blank/src/app/(base)/template-test-cases/modify/[id]/page.tsx +68 -8
- package/templates/blank/src/app/(base)/template-test-cases/page.tsx +2 -2
- package/templates/blank/src/app/(base)/template-test-cases/template-test-case-flow.test.tsx +2 -1
- package/templates/blank/src/app/(base)/template-test-cases/template-test-case-flow.tsx +19 -4
- package/templates/blank/src/app/(base)/template-test-cases/template-test-case-form.test.tsx +6 -0
- package/templates/blank/src/app/(base)/template-test-cases/template-test-case-form.tsx +33 -27
- package/templates/blank/src/app/(base)/test-cases/create/page.test.tsx +121 -0
- package/templates/blank/src/app/(base)/test-cases/create/page.tsx +28 -10
- package/templates/blank/src/app/(base)/test-cases/create-from-template/create-from-template-conversion-helpers.ts +27 -0
- package/templates/blank/src/app/(base)/test-cases/create-from-template/create-from-template-helpers.test.ts +2 -0
- package/templates/blank/src/app/(base)/test-cases/create-from-template/create-from-template-helpers.ts +14 -171
- package/templates/blank/src/app/(base)/test-cases/create-from-template/create-from-template-selection-helpers.ts +71 -0
- package/templates/blank/src/app/(base)/test-cases/create-from-template/create-from-template-types.ts +24 -0
- package/templates/blank/src/app/(base)/test-cases/create-from-template/generate/[id]/page.test.tsx +19 -0
- package/templates/blank/src/app/(base)/test-cases/create-from-template/generate/[id]/page.tsx +2 -93
- package/templates/blank/src/app/(base)/test-cases/create-from-template/page.test.tsx +157 -0
- package/templates/blank/src/app/(base)/test-cases/create-from-template/page.tsx +113 -10
- package/templates/blank/src/app/(base)/test-cases/editable-test-case-builders.ts +35 -0
- package/templates/blank/src/app/(base)/test-cases/editable-test-case-guards.ts +42 -0
- package/templates/blank/src/app/(base)/test-cases/editable-test-case-helpers.ts +3 -0
- package/templates/blank/src/app/(base)/test-cases/editable-test-case-types.ts +14 -0
- package/templates/blank/src/app/(base)/test-cases/inline-tag-creation-dialog.tsx +41 -0
- package/templates/blank/src/app/(base)/test-cases/inline-test-suite-creation-dialog.tsx +51 -0
- package/templates/blank/src/app/(base)/test-cases/modify/[id]/page.tsx +32 -9
- package/templates/blank/src/app/(base)/test-cases/page.tsx +3 -3
- package/templates/blank/src/app/(base)/test-cases/test-case-flow.test.tsx +24 -0
- package/templates/blank/src/app/(base)/test-cases/test-case-flow.tsx +34 -13
- package/templates/blank/src/app/(base)/test-cases/test-case-form-reducer.test.ts +59 -0
- package/templates/blank/src/app/(base)/test-cases/test-case-form-reducer.ts +203 -0
- package/templates/blank/src/app/(base)/test-cases/test-case-form.test.tsx +340 -32
- package/templates/blank/src/app/(base)/test-cases/test-case-form.tsx +1310 -166
- package/templates/blank/src/app/(base)/test-cases/test-case-resource-rows.ts +9 -0
- package/templates/blank/src/app/(base)/test-cases/test-case-route-helpers.test.ts +3 -5
- package/templates/blank/src/app/(base)/test-cases/test-case-route-helpers.ts +3 -147
- package/templates/blank/src/app/(base)/test-cases/test-case-row-helpers.ts +30 -0
- package/templates/blank/src/app/(base)/test-cases/test-case-shared-resource-rows.ts +55 -0
- package/templates/blank/src/app/(base)/test-cases/test-case-table.tsx +3 -3
- package/templates/blank/src/app/(base)/test-cases/test-case-template-resource-rows.ts +21 -0
- package/templates/blank/src/app/(base)/test-runs/create/page.tsx +8 -16
- package/templates/blank/src/app/(base)/test-runs/create-test-run-page-data.test.ts +60 -0
- package/templates/blank/src/app/(base)/test-runs/create-test-run-page-data.ts +38 -0
- package/templates/blank/src/app/(base)/test-runs/page.tsx +2 -2
- package/templates/blank/src/app/(base)/test-runs/test-run-form-data-helpers.ts +71 -0
- package/templates/blank/src/app/(base)/test-runs/test-run-form-display-helpers.ts +44 -0
- package/templates/blank/src/app/(base)/test-runs/test-run-form-helpers.ts +17 -157
- package/templates/blank/src/app/(base)/test-runs/test-run-form-selection-helpers.ts +46 -0
- package/templates/blank/src/app/(base)/test-runs/test-run-form.tsx +19 -24
- package/templates/blank/src/app/(base)/test-runs/test-run-table-columns.tsx +14 -14
- package/templates/blank/src/app/(base)/test-runs/test-run-table.tsx +61 -60
- package/templates/blank/src/app/(base)/test-suites/editable-test-suite-helpers.ts +12 -0
- package/templates/blank/src/app/(base)/test-suites/page.tsx +5 -5
- package/templates/blank/src/app/(base)/test-suites/test-suite-form-display-helpers.ts +54 -0
- package/templates/blank/src/app/(base)/test-suites/test-suite-form.test.tsx +59 -18
- package/templates/blank/src/app/(base)/test-suites/test-suite-form.tsx +38 -21
- package/templates/blank/src/app/(base)/test-suites/test-suite-helpers.ts +25 -215
- package/templates/blank/src/app/(base)/test-suites/test-suite-row-guards.ts +80 -0
- package/templates/blank/src/app/(base)/test-suites/test-suite-table-columns.tsx +1 -1
- package/templates/blank/src/app/(base)/test-suites/test-suite-table-helpers.ts +57 -0
- package/templates/blank/src/app/(base)/test-suites/test-suite-types.ts +30 -0
- package/templates/blank/src/app/(dashboard-components)/app-drawer.tsx +26 -23
- package/templates/blank/src/app/(dashboard-components)/data-card-grid.tsx +10 -10
- package/templates/blank/src/app/(dashboard-components)/data-card.tsx +30 -26
- package/templates/blank/src/app/(dashboard-components)/execution-health-panel.tsx +42 -42
- package/templates/blank/src/app/(dashboard-components)/ongoing-test-runs-card.tsx +8 -8
- package/templates/blank/src/app/(dashboard-components)/quick-actions-drawer.tsx +66 -42
- package/templates/blank/src/app/api/test-runs/[runId]/download/route.ts +160 -106
- package/templates/blank/src/app/api/test-runs/[runId]/trace/[testCaseId]/route.test.ts +18 -9
- package/templates/blank/src/app/globals.css +11 -0
- package/templates/blank/src/app/layout.tsx +17 -17
- package/templates/blank/src/app/page.tsx +10 -5
- package/templates/blank/src/components/base-node.tsx +5 -8
- package/templates/blank/src/components/data-state/empty-state.tsx +1 -1
- package/templates/blank/src/components/data-visualization/info-card.tsx +9 -23
- package/templates/blank/src/components/diagram/add-node-prompt-node.tsx +30 -0
- package/templates/blank/src/components/diagram/button-edge.tsx +27 -9
- package/templates/blank/src/components/diagram/dynamic-parameter-field-label.tsx +19 -0
- package/templates/blank/src/components/diagram/dynamic-parameter-field-shell.tsx +30 -0
- package/templates/blank/src/components/diagram/dynamic-parameter-field-types.ts +32 -0
- package/templates/blank/src/components/diagram/dynamic-parameter-fields.tsx +140 -0
- package/templates/blank/src/components/diagram/dynamic-parameter-locator-field.tsx +288 -0
- package/templates/blank/src/components/diagram/dynamic-parameters-helpers.ts +10 -4
- package/templates/blank/src/components/diagram/dynamic-parameters.test.tsx +298 -0
- package/templates/blank/src/components/diagram/dynamic-parameters.tsx +223 -223
- package/templates/blank/src/components/diagram/flow-add-node-prompt-helpers.ts +22 -0
- package/templates/blank/src/components/diagram/flow-block-helpers.ts +86 -0
- package/templates/blank/src/components/diagram/flow-diagram-block-dialog.test.tsx +26 -0
- package/templates/blank/src/components/diagram/flow-diagram-block-dialog.tsx +58 -0
- package/templates/blank/src/components/diagram/flow-diagram-block-overlays.tsx +65 -0
- package/templates/blank/src/components/diagram/flow-diagram-connection-guards.ts +145 -0
- package/templates/blank/src/components/diagram/flow-diagram-grouping-hints.tsx +38 -0
- package/templates/blank/src/components/diagram/flow-diagram-helpers.test.ts +214 -5
- package/templates/blank/src/components/diagram/flow-diagram-helpers.ts +22 -251
- package/templates/blank/src/components/diagram/flow-diagram-node-search.tsx +108 -0
- package/templates/blank/src/components/diagram/flow-diagram-node-types.tsx +46 -0
- package/templates/blank/src/components/diagram/flow-diagram-toolbar.tsx +86 -0
- package/templates/blank/src/components/diagram/flow-diagram-types.ts +21 -0
- package/templates/blank/src/components/diagram/flow-diagram-view.tsx +173 -0
- package/templates/blank/src/components/diagram/flow-diagram.test.tsx +501 -0
- package/templates/blank/src/components/diagram/flow-diagram.tsx +72 -226
- package/templates/blank/src/components/diagram/flow-node-data-helpers.ts +122 -0
- package/templates/blank/src/components/diagram/flow-node-order-helpers.ts +179 -0
- package/templates/blank/src/components/diagram/flow-node-search-helpers.ts +24 -0
- package/templates/blank/src/components/diagram/node-form-fields-content.tsx +127 -0
- package/templates/blank/src/components/diagram/node-form-fields-props.ts +3 -0
- package/templates/blank/src/components/diagram/node-form-helpers.test.ts +3 -1
- package/templates/blank/src/components/diagram/node-form-helpers.ts +15 -11
- package/templates/blank/src/components/diagram/node-form-submit.ts +36 -0
- package/templates/blank/src/components/diagram/node-form-template-step-selection.test.ts +42 -0
- package/templates/blank/src/components/diagram/node-form-template-step-selection.ts +37 -0
- package/templates/blank/src/components/diagram/node-form.test.tsx +197 -25
- package/templates/blank/src/components/diagram/node-form.tsx +103 -163
- package/templates/blank/src/components/diagram/options-header-gherkin-step.tsx +72 -0
- package/templates/blank/src/components/diagram/options-header-node.test.tsx +213 -0
- package/templates/blank/src/components/diagram/options-header-node.tsx +237 -33
- package/templates/blank/src/components/diagram/template-step-combobox.test.tsx +144 -0
- package/templates/blank/src/components/diagram/template-step-combobox.tsx +176 -39
- package/templates/blank/src/components/diagram/use-flow-diagram-block-grouping.ts +130 -0
- package/templates/blank/src/components/diagram/use-flow-diagram-search.ts +114 -0
- package/templates/blank/src/components/diagram/use-flow-diagram.ts +383 -0
- package/templates/blank/src/components/loading-skeleton/data-table/data-table-skeleton.tsx +1 -1
- package/templates/blank/src/components/loading-skeleton/form/icon-button-skeleton.tsx +1 -1
- package/templates/blank/src/components/logo.tsx +1 -1
- package/templates/blank/src/components/navigation/command-badge.tsx +1 -1
- package/templates/blank/src/components/navigation/command-chain-input.tsx +5 -10
- package/templates/blank/src/components/navigation/entity-search-command.tsx +41 -24
- package/templates/blank/src/components/navigation/nav-command-search.tsx +5 -5
- package/templates/blank/src/components/navigation/nav-command.tsx +8 -8
- package/templates/blank/src/components/navigation/nav-link.tsx +1 -1
- package/templates/blank/src/components/navigation/nav-menu-card-deck.tsx +73 -70
- package/templates/blank/src/components/reports/test-case-logs-modal.tsx +10 -10
- package/templates/blank/src/components/table/table-actions.test.tsx +53 -0
- package/templates/blank/src/components/table/table-actions.tsx +14 -10
- package/templates/blank/src/components/test-case/test-case-form-helpers.test.ts +2 -5
- package/templates/blank/src/components/test-case/test-case-form-helpers.ts +41 -50
- package/templates/blank/src/components/test-case/test-case-picker-helpers.ts +8 -7
- package/templates/blank/src/components/test-case/test-case-picker.test.tsx +14 -11
- package/templates/blank/src/components/test-case/test-case-picker.tsx +137 -113
- package/templates/blank/src/components/test-case/test-scenario-preview.tsx +69 -16
- package/templates/blank/src/components/test-run/download-logs-button.tsx +13 -26
- package/templates/blank/src/components/test-run/log-viewer-events.ts +7 -0
- package/templates/blank/src/components/test-run/log-viewer-helpers.ts +4 -80
- package/templates/blank/src/components/test-run/log-viewer-parsing.ts +28 -0
- package/templates/blank/src/components/test-run/log-viewer-status.ts +35 -0
- package/templates/blank/src/components/test-run/log-viewer-types.ts +7 -0
- package/templates/blank/src/components/test-run/log-viewer.test.tsx +25 -0
- package/templates/blank/src/components/test-run/log-viewer.tsx +8 -8
- package/templates/blank/src/components/test-run/test-run-details-guards.ts +94 -0
- package/templates/blank/src/components/test-run/test-run-details-helpers.test.ts +102 -0
- package/templates/blank/src/components/test-run/test-run-details-helpers.ts +10 -208
- package/templates/blank/src/components/test-run/test-run-details-progress.ts +26 -0
- package/templates/blank/src/components/test-run/test-run-details-status.ts +70 -0
- package/templates/blank/src/components/test-run/test-run-details-types.ts +21 -0
- package/templates/blank/src/components/test-run/test-run-details.test.tsx +10 -25
- package/templates/blank/src/components/test-run/test-run-details.tsx +26 -54
- package/templates/blank/src/components/test-run/test-run-header.test.tsx +13 -18
- package/templates/blank/src/components/test-run/trace-viewer-button-label.tsx +57 -0
- package/templates/blank/src/components/test-run/use-log-viewer.ts +2 -8
- package/templates/blank/src/components/test-run/use-test-run-header.ts +1 -4
- package/templates/blank/src/components/test-run/view-report-button.tsx +60 -64
- package/templates/blank/src/components/test-suite/test-suite-picker-helpers.test.ts +27 -1
- package/templates/blank/src/components/test-suite/test-suite-picker-helpers.ts +80 -1
- package/templates/blank/src/components/test-suite/test-suite-picker-suite-row-header.tsx +87 -0
- package/templates/blank/src/components/test-suite/test-suite-picker-suite-row.tsx +61 -0
- package/templates/blank/src/components/test-suite/test-suite-picker-test-case-list.tsx +95 -0
- package/templates/blank/src/components/test-suite/test-suite-picker.tsx +133 -274
- package/templates/blank/src/components/theme/theme-provider.tsx +7 -1
- package/templates/blank/src/components/ui/alert.tsx +12 -18
- package/templates/blank/src/components/ui/badge.tsx +1 -1
- package/templates/blank/src/components/ui/button.tsx +13 -10
- package/templates/blank/src/components/ui/calendar.tsx +3 -3
- package/templates/blank/src/components/ui/card.tsx +16 -34
- package/templates/blank/src/components/ui/chart-utils.ts +43 -0
- package/templates/blank/src/components/ui/chart.tsx +211 -304
- package/templates/blank/src/components/ui/checkbox.tsx +20 -17
- package/templates/blank/src/components/ui/command.tsx +60 -96
- package/templates/blank/src/components/ui/data-table-column-header.tsx +3 -3
- package/templates/blank/src/components/ui/data-table-pagination.tsx +7 -7
- package/templates/blank/src/components/ui/data-table-view-options.tsx +20 -15
- package/templates/blank/src/components/ui/data-table.test.tsx +1 -8
- package/templates/blank/src/components/ui/data-table.tsx +22 -19
- package/templates/blank/src/components/ui/dialog.tsx +42 -63
- package/templates/blank/src/components/ui/dropdown-menu.tsx +76 -148
- package/templates/blank/src/components/ui/empty.tsx +21 -40
- package/templates/blank/src/components/ui/input.tsx +13 -15
- package/templates/blank/src/components/ui/kbd.tsx +7 -13
- package/templates/blank/src/components/ui/label.tsx +7 -6
- package/templates/blank/src/components/ui/multi-select-with-preview.tsx +20 -7
- package/templates/blank/src/components/ui/multi-select.tsx +7 -5
- package/templates/blank/src/components/ui/picker-browse-shell.tsx +99 -0
- package/templates/blank/src/components/ui/popover.tsx +21 -19
- package/templates/blank/src/components/ui/progress.tsx +14 -15
- package/templates/blank/src/components/ui/radio-group.tsx +14 -25
- package/templates/blank/src/components/ui/scroll-area.tsx +32 -29
- package/templates/blank/src/components/ui/select.tsx +99 -125
- package/templates/blank/src/components/ui/separator.tsx +20 -12
- package/templates/blank/src/components/ui/sheet.tsx +92 -0
- package/templates/blank/src/components/ui/table.tsx +25 -50
- package/templates/blank/src/components/ui/tabs.tsx +36 -41
- package/templates/blank/src/components/ui/textarea.tsx +11 -15
- package/templates/blank/src/components/ui/toast.tsx +56 -62
- package/templates/blank/src/components/ui/tooltip.tsx +23 -20
- package/templates/blank/src/components/user-prompt/delete-prompt.tsx +5 -5
- package/templates/blank/src/constants/form-opts/diagram/node-form.ts +11 -28
- package/templates/blank/src/constants/form-opts/environment-form-opts.ts +1 -1
- package/templates/blank/src/constants/form-opts/locator-group-form-opts.ts +2 -8
- package/templates/blank/src/constants/form-opts/module-form-opts.ts +1 -1
- package/templates/blank/src/constants/form-opts/tag-form-opts.ts +1 -1
- package/templates/blank/src/constants/form-opts/template-selection-form-opts.ts +0 -11
- package/templates/blank/src/constants/form-opts/template-step-group-form-opts.ts +1 -1
- package/templates/blank/src/constants/form-opts/template-test-case-form-opts.ts +3 -33
- package/templates/blank/src/constants/form-opts/template-test-step-form-opts.ts +1 -1
- package/templates/blank/src/constants/form-opts/test-case-form-opts.ts +3 -35
- package/templates/blank/src/constants/form-opts/test-case-step-form-opts.ts +27 -0
- package/templates/blank/src/constants/form-opts/test-run-form-opts.ts +1 -1
- package/templates/blank/src/constants/form-opts/test-suite-form-opts.ts +1 -1
- package/templates/blank/src/hooks/use-toast.ts +1 -1
- package/templates/blank/src/lib/automation/automation-path-roots.ts +1 -9
- package/templates/blank/src/lib/bidirectional-sync.ts +116 -107
- package/templates/blank/src/lib/database-sync.ts +142 -190
- package/templates/blank/src/lib/environment-file-utils.ts +3 -115
- package/templates/blank/src/lib/executor/local-executor-adapter.ts +1 -1
- package/templates/blank/src/lib/form/tanstack-form-action.ts +7 -0
- package/templates/blank/src/lib/form/tanstack-form.tsx +18 -0
- package/templates/blank/src/lib/gherkin-parser.test.ts +7 -7
- package/templates/blank/src/lib/gherkin-parser.ts +132 -145
- package/templates/blank/src/lib/gherkin-step-format.ts +80 -0
- package/templates/blank/src/lib/jsdoc/template-step-jsdoc.ts +262 -0
- package/templates/blank/src/lib/locator-group-file-utils.ts +7 -21
- package/templates/blank/src/lib/locator-picker/session-manager.ts +1 -2
- package/templates/blank/src/lib/locator-picker/suggestions.ts +7 -4
- package/templates/blank/src/lib/metrics/metric-calculator.test.ts +255 -0
- package/templates/blank/src/lib/metrics/metric-calculator.ts +273 -296
- package/templates/blank/src/lib/module-hierarchy-builder.ts +1 -10
- package/templates/blank/src/lib/path-helpers/feature-path.ts +10 -0
- package/templates/blank/src/lib/path-helpers/module-path.ts +0 -50
- package/templates/blank/src/lib/process/task-spawner.ts +50 -27
- package/templates/blank/src/lib/sync/projected-feature-utils.ts +2 -42
- package/templates/blank/src/lib/sync/sync-executor.ts +1 -4
- package/templates/blank/src/lib/sync/sync-pending-counts.test.ts +201 -7
- package/templates/blank/src/lib/sync/sync-pending-counts.ts +205 -285
- package/templates/blank/src/lib/sync/sync-registry.ts +2 -2
- package/templates/blank/src/lib/tag-filters.ts +11 -0
- package/templates/blank/src/lib/tag-identifiers.ts +18 -0
- package/templates/blank/src/lib/tag-utils.ts +2 -28
- package/templates/blank/src/lib/template-automation-paths.ts +34 -0
- package/templates/blank/src/lib/template-path-exclusions.ts +34 -0
- package/templates/blank/src/lib/template-sync-utils.d.ts +14 -7
- package/templates/blank/src/lib/template-sync-utils.ts +2 -65
- package/templates/blank/src/lib/test-run/log-formatter.ts +5 -6
- package/templates/blank/src/lib/test-run/matching.test.ts +77 -0
- package/templates/blank/src/lib/test-run/matching.ts +2 -2
- package/templates/blank/src/lib/test-run/report-parser.test.ts +113 -0
- package/templates/blank/src/lib/test-suite-identifier-service.ts +1 -1
- package/templates/blank/src/lib/transformers/template-test-case-converter.ts +13 -64
- package/templates/blank/src/lib/utils/template-step-file-generator.ts +7 -22
- package/templates/blank/src/lib/utils/template-step-file-manager-intelligent.ts +12 -356
- package/templates/blank/src/lib/utils/template-step-function-bounds.test.ts +48 -0
- package/templates/blank/src/lib/utils/template-step-function-bounds.ts +138 -0
- package/templates/blank/src/lib/utils.ts +0 -4
- package/templates/blank/src/services/dashboard/dashboard-service.test.ts +28 -1
- package/templates/blank/src/services/dashboard/dashboard-service.ts +2 -0
- package/templates/blank/src/services/locator/locator-service.test.ts +1 -3
- package/templates/blank/src/services/locator/locator-service.ts +25 -7
- package/templates/blank/src/services/locator/locator-sync-utils.test.ts +1 -4
- package/templates/blank/src/services/module/module-service.ts +1 -4
- package/templates/blank/src/services/report/report-service.test.ts +70 -6
- package/templates/blank/src/services/report/report-service.ts +301 -246
- package/templates/blank/src/services/shared/errors.ts +2 -4
- package/templates/blank/src/services/tag/tag-service.test.ts +140 -2
- package/templates/blank/src/services/tag/tag-service.ts +71 -0
- package/templates/blank/src/services/template-step/template-step-service.ts +3 -1
- package/templates/blank/src/services/template-step-group/template-step-group-service.ts +3 -1
- package/templates/blank/src/services/template-test-case/template-test-case-service.ts +34 -2
- package/templates/blank/src/services/test-case/test-case-service.test.ts +1 -0
- package/templates/blank/src/services/test-case/test-case-service.ts +34 -2
- package/templates/blank/src/services/test-run/test-run-service.test.ts +3 -6
- package/templates/blank/src/services/test-run/test-run-service.ts +158 -126
- package/templates/blank/src/services/test-suite/test-suite-service.test.ts +1 -5
- package/templates/blank/src/services/test-suite/test-suite-service.ts +2 -4
- package/templates/blank/src/test/motion-react-vitest-mocks.ts +18 -0
- package/templates/blank/src/test/setup-motion-react-mocks.ts +4 -0
- package/templates/blank/src/types/diagram/diagram.ts +8 -0
- package/templates/blank/src/types/diagram/template-step.ts +5 -2
- package/templates/blank/src/types/form/actionHandler.ts +1 -5
- package/templates/blank/src/types/report.ts +84 -0
- package/templates/blank/tsconfig.json +8 -8
- package/templates/default/next-env.d.ts +6 -0
- package/templates/default/packages/locator-picker-companion/dist/cli.d.ts +1 -0
- package/templates/default/packages/locator-picker-companion/dist/cli.js +336 -0
- package/templates/default/packages/locator-picker-companion/dist/index.d.ts +3 -0
- package/templates/default/packages/locator-picker-companion/dist/index.js +3 -0
- package/templates/default/packages/locator-picker-companion/dist/injected-picker-script.d.ts +1 -0
- package/templates/default/packages/locator-picker-companion/dist/injected-picker-script.js +660 -0
- package/templates/default/packages/locator-picker-companion/dist/launcher.d.ts +14 -0
- package/templates/default/packages/locator-picker-companion/dist/launcher.js +58 -0
- package/templates/default/packages/locator-picker-companion/dist/selector-generator.d.ts +6 -0
- package/templates/default/packages/locator-picker-companion/dist/selector-generator.js +261 -0
- package/templates/default/packages/locator-picker-companion/dist/session-file.d.ts +30 -0
- package/templates/default/packages/locator-picker-companion/dist/session-file.js +162 -0
- package/templates/default/packages/locator-picker-companion/dist/types.d.ts +31 -0
- package/templates/default/packages/locator-picker-companion/dist/types.js +1 -0
- package/templates/default/prisma/dev.db +0 -0
- package/templates/starter/.editorconfig +11 -0
- package/templates/starter/.env.example +2 -2
- package/templates/starter/.gitattributes +21 -0
- package/templates/starter/.gitconfig.appraise +14 -0
- package/templates/starter/.prettierrc +13 -0
- package/templates/starter/.vscode/settings.json +2 -0
- package/templates/starter/README.md +12 -12
- package/templates/starter/automation/steps/actions/click.step.ts +0 -2
- package/templates/starter/automation/steps/actions/hover.step.ts +6 -8
- package/templates/starter/automation/steps/actions/input.step.ts +85 -108
- package/templates/starter/automation/steps/actions/navigation.step.ts +23 -26
- package/templates/starter/automation/steps/actions/random_data.step.ts +97 -91
- package/templates/starter/automation/steps/actions/store.step.ts +34 -45
- package/templates/starter/automation/steps/actions/wait.step.ts +56 -76
- package/templates/starter/automation/steps/validations/active_state_assertion.step.ts +0 -2
- package/templates/starter/automation/steps/validations/navigation_assertion.step.ts +0 -2
- package/templates/starter/automation/steps/validations/text_assertion.step.ts +31 -71
- package/templates/starter/automation/steps/validations/visibility_assertion.step.ts +0 -2
- package/templates/starter/e2e/README.md +56 -0
- package/templates/starter/e2e/apply-migrations.mjs +76 -0
- package/templates/starter/e2e/appraise-smoke.spec.ts +78 -0
- package/templates/starter/e2e/authoring.spec.ts +53 -0
- package/templates/starter/e2e/crud-configuration.spec.ts +138 -0
- package/templates/starter/e2e/crud-tests.spec.ts +76 -0
- package/templates/starter/e2e/helpers/forms.ts +186 -0
- package/templates/starter/e2e/helpers/navigation.ts +27 -0
- package/templates/starter/e2e/helpers/table.ts +45 -0
- package/templates/starter/e2e/helpers/test-data.ts +549 -0
- package/templates/starter/e2e/helpers/ui.ts +41 -0
- package/templates/starter/e2e/navigation.spec.ts +101 -0
- package/templates/starter/e2e/runs-and-reports.spec.ts +82 -0
- package/templates/starter/e2e/settings-sync.spec.ts +39 -0
- package/templates/starter/e2e/start-server.mjs +61 -0
- package/templates/starter/eslint.config.mjs +4 -4
- package/templates/starter/gitignore +3 -0
- package/templates/starter/next-env.d.ts +6 -6
- package/templates/starter/package-lock.json +2241 -1030
- package/templates/starter/package.json +30 -20
- package/templates/starter/packages/cucumber-runtime/src/cli.ts +12 -3
- package/templates/starter/packages/locator-picker-companion/dist/cli.js +1 -1
- package/templates/starter/packages/locator-picker-companion/dist/index.d.ts +3 -3
- package/templates/starter/packages/locator-picker-companion/dist/index.js +3 -3
- package/templates/starter/packages/locator-picker-companion/dist/injected-picker-script.js +13 -3
- package/templates/starter/packages/locator-picker-companion/dist/selector-generator.d.ts +6 -3
- package/templates/starter/packages/locator-picker-companion/dist/selector-generator.js +233 -229
- package/templates/starter/packages/locator-picker-companion/src/cli.ts +1 -7
- package/templates/starter/packages/locator-picker-companion/src/injected-picker-script.ts +26 -5
- package/templates/starter/packages/locator-picker-companion/src/launcher.ts +1 -3
- package/templates/starter/packages/locator-picker-companion/src/session-file.ts +4 -15
- package/templates/starter/packages/locator-picker-companion/src/types.ts +1 -8
- package/templates/starter/playwright.config.ts +46 -0
- package/templates/starter/postcss.config.mjs +2 -2
- package/templates/starter/prisma/dev.db +0 -0
- package/templates/starter/prisma/migrations/20251104113456_add_type_for_template_step_groups/migration.sql +16 -16
- package/templates/starter/prisma/migrations/20251104170946_add_tags_to_test_suite_and_test_case/migration.sql +27 -27
- package/templates/starter/prisma/migrations/20251112190024_add_cascade_delete_to_test_run_test_case/migration.sql +17 -17
- package/templates/starter/prisma/migrations/20251113181100_add_test_run_log/migration.sql +12 -12
- package/templates/starter/prisma/migrations/20251119191838_add_tag_type/migration.sql +28 -28
- package/templates/starter/prisma/migrations/20251121164059_add_conflict_resolution/migration.sql +12 -12
- package/templates/starter/prisma/migrations/20251223183400_add_report_model_to_db_schema/migration.sql +10 -10
- package/templates/starter/prisma/migrations/20251223183637_add_report_test_case_entity_for_storing_test_results_for_individual_test_cases/migration.sql +10 -10
- package/templates/starter/prisma/migrations/20251224083549_add_comprehensive_report_storage/migration.sql +108 -108
- package/templates/starter/prisma/migrations/20251229194422_migrate_duration_to_string/migration.sql +55 -55
- package/templates/starter/prisma/migrations/20251230124637_add_unique_constraint_to_test_run_name/migration.sql +27 -27
- package/templates/starter/prisma/migrations/20260115094436_add_dashboard_metrics/migration.sql +59 -59
- package/templates/starter/prisma/migrations/20260127172022_add_cascade_delete_to_step_parameters/migration.sql +34 -34
- package/templates/starter/prisma/migrations/20260313093000_add_report_step_screenshot_path/migration.sql +1 -1
- package/templates/starter/prisma/migrations/20260507000000_add_flow_builder_node_grouping/migration.sql +34 -0
- package/templates/starter/prisma/schema.prisma +36 -0
- package/templates/starter/scripts/configure-git-line-endings.mjs +91 -0
- package/templates/starter/scripts/install-template-step.ts +5 -1
- package/templates/starter/scripts/lib/jsdoc-parser.test.ts +12 -0
- package/templates/starter/scripts/lib/jsdoc-parser.ts +5 -88
- package/templates/starter/scripts/lib/step-file-parser.ts +111 -178
- package/templates/starter/scripts/lib/step-matcher.test.ts +3 -3
- package/templates/starter/scripts/lib/step-matcher.ts +5 -1
- package/templates/starter/scripts/lib/template-step-installer.test.ts +4 -2
- package/templates/starter/scripts/lib/template-step-installer.ts +16 -4
- package/templates/starter/scripts/lib/template-step-registry.test.ts +1 -1
- package/templates/starter/scripts/lib/template-step-registry.ts +4 -1
- package/templates/starter/scripts/lib/template-sync-utils.test.ts +35 -0
- package/templates/starter/scripts/run-fallow-commit.mjs +21 -0
- package/templates/starter/scripts/setup-env.ts +0 -0
- package/templates/starter/scripts/sync-all.ts +7 -6
- package/templates/starter/scripts/sync-appraise-base-template.ts +84 -77
- package/templates/starter/scripts/sync-environments.ts +47 -44
- package/templates/starter/scripts/sync-locator-groups.ts +67 -76
- package/templates/starter/scripts/sync-locators.ts +50 -53
- package/templates/starter/scripts/sync-modules.ts +42 -42
- package/templates/starter/scripts/sync-tags.ts +52 -52
- package/templates/starter/scripts/sync-template-step-groups.ts +34 -32
- package/templates/starter/scripts/sync-template-steps.ts +97 -97
- package/templates/starter/scripts/sync-test-cases.ts +65 -74
- package/templates/starter/scripts/sync-test-suites.ts +314 -238
- package/templates/starter/src/actions/dashboard/dashboard-actions.ts +0 -7
- package/templates/starter/src/actions/locator-picker/locator-picker-actions.test.ts +10 -0
- package/templates/starter/src/actions/locator-picker/locator-picker-actions.ts +5 -0
- package/templates/starter/src/actions/server-action-boundary.test.ts +788 -0
- package/templates/starter/src/actions/settings/sync-actions.ts +3 -1
- package/templates/starter/src/actions/tags/tag-actions.ts +1 -7
- package/templates/starter/src/actions/template-test-case/template-test-case-actions.ts +3 -1
- package/templates/starter/src/actions/test-suite/test-suite-actions.ts +2 -1
- package/templates/starter/src/app/(base)/environments/environment-form.tsx +19 -25
- package/templates/starter/src/app/(base)/environments/environment-helpers.ts +4 -1
- package/templates/starter/src/app/(base)/environments/page.tsx +2 -2
- package/templates/starter/src/app/(base)/locator-groups/create/page.tsx +1 -1
- package/templates/starter/src/app/(base)/locator-groups/locator-group-form.tsx +28 -26
- package/templates/starter/src/app/(base)/locator-groups/page.tsx +10 -20
- package/templates/starter/src/app/(base)/locators/create/create-locator-workspace-helpers.test.ts +3 -6
- package/templates/starter/src/app/(base)/locators/create/create-locator-workspace-helpers.ts +34 -333
- package/templates/starter/src/app/(base)/locators/create/create-locator-workspace-response.test.ts +85 -0
- package/templates/starter/src/app/(base)/locators/create/create-locator-workspace-response.ts +142 -0
- package/templates/starter/src/app/(base)/locators/create/create-locator-workspace-state.ts +231 -0
- package/templates/starter/src/app/(base)/locators/create/create-locator-workspace-types.ts +68 -0
- package/templates/starter/src/app/(base)/locators/create/create-locator-workspace.test.tsx +73 -1
- package/templates/starter/src/app/(base)/locators/create/create-locator-workspace.tsx +19 -16
- package/templates/starter/src/app/(base)/locators/create/page.tsx +4 -8
- package/templates/starter/src/app/(base)/locators/create/use-locator-workspace.ts +22 -4
- package/templates/starter/src/app/(base)/locators/locator-file-sync.test.ts +45 -0
- package/templates/starter/src/app/(base)/locators/locator-file-sync.ts +18 -0
- package/templates/starter/src/app/(base)/locators/locator-helpers.ts +2 -12
- package/templates/starter/src/app/(base)/locators/locator-sync-toast.ts +34 -0
- package/templates/starter/src/app/(base)/locators/locator-table-columns.tsx +59 -60
- package/templates/starter/src/app/(base)/locators/modify/[id]/page.tsx +1 -1
- package/templates/starter/src/app/(base)/locators/page.tsx +3 -5
- package/templates/starter/src/app/(base)/locators/picker/page.tsx +6 -0
- package/templates/starter/src/app/(base)/locators/sync-locators-button.tsx +12 -53
- package/templates/starter/src/app/(base)/modules/modify/[id]/page.tsx +11 -5
- package/templates/starter/src/app/(base)/modules/module-form-helpers.ts +12 -0
- package/templates/starter/src/app/(base)/modules/module-form.tsx +17 -20
- package/templates/starter/src/app/(base)/modules/module-helpers.test.ts +48 -0
- package/templates/starter/src/app/(base)/modules/module-helpers.ts +4 -64
- package/templates/starter/src/app/(base)/modules/module-parent-helpers.ts +16 -0
- package/templates/starter/src/app/(base)/modules/module-row-helpers.ts +32 -0
- package/templates/starter/src/app/(base)/modules/module-types.ts +8 -0
- package/templates/starter/src/app/(base)/modules/page.tsx +2 -2
- package/templates/starter/src/app/(base)/reports/[id]/page.tsx +25 -30
- package/templates/starter/src/app/(base)/reports/page.tsx +5 -48
- package/templates/starter/src/app/(base)/reports/report-charts.tsx +17 -0
- package/templates/starter/src/app/(base)/reports/report-detail-helpers.ts +27 -54
- package/templates/starter/src/app/(base)/reports/report-metric-card.tsx +3 -3
- package/templates/starter/src/app/(base)/reports/report-table-columns.tsx +14 -46
- package/templates/starter/src/app/(base)/reports/report-table.tsx +5 -55
- package/templates/starter/src/app/(base)/reports/report-view-table-columns.tsx +5 -5
- package/templates/starter/src/app/(base)/reports/report-view-table.tsx +1 -49
- package/templates/starter/src/app/(base)/reports/test-cases/page.tsx +1 -1
- package/templates/starter/src/app/(base)/reports/test-cases/test-cases-metric-table-columns.tsx +95 -96
- package/templates/starter/src/app/(base)/reports/test-suites/page.tsx +2 -2
- package/templates/starter/src/app/(base)/reports/test-suites/test-suites-metric-table-columns.tsx +65 -64
- package/templates/starter/src/app/(base)/reports/test-suites/test-suites-metric-table.tsx +3 -1
- package/templates/starter/src/app/(base)/reports/view-logs-button.tsx +1 -1
- package/templates/starter/src/app/(base)/settings/page.tsx +2 -2
- package/templates/starter/src/app/(base)/settings/settings-sync-panel-helpers.test.tsx +4 -6
- package/templates/starter/src/app/(base)/settings/settings-sync-panel-helpers.tsx +2 -2
- package/templates/starter/src/app/(base)/settings/settings-sync-panel.tsx +27 -34
- package/templates/starter/src/app/(base)/settings/use-settings-sync.ts +0 -1
- package/templates/starter/src/app/(base)/tags/create/page.tsx +1 -1
- package/templates/starter/src/app/(base)/tags/modify/[id]/page.tsx +1 -1
- package/templates/starter/src/app/(base)/tags/page.tsx +2 -2
- package/templates/starter/src/app/(base)/tags/tag-form-helpers.ts +9 -0
- package/templates/starter/src/app/(base)/tags/tag-form.test.tsx +42 -8
- package/templates/starter/src/app/(base)/tags/tag-form.tsx +45 -24
- package/templates/starter/src/app/(base)/template-step-groups/page.tsx +2 -2
- package/templates/starter/src/app/(base)/template-step-groups/template-step-group-form.tsx +13 -16
- package/templates/starter/src/app/(base)/template-step-groups/template-step-group-helpers.ts +4 -1
- package/templates/starter/src/app/(base)/template-step-groups/template-step-group-table-columns.tsx +1 -5
- package/templates/starter/src/app/(base)/template-steps/modify/[id]/page.tsx +13 -7
- package/templates/starter/src/app/(base)/template-steps/page.tsx +2 -2
- package/templates/starter/src/app/(base)/template-steps/paramChip.tsx +13 -10
- package/templates/starter/src/app/(base)/template-steps/template-step-form-helpers.ts +67 -0
- package/templates/starter/src/app/(base)/template-steps/template-step-form.tsx +21 -26
- package/templates/starter/src/app/(base)/template-steps/template-step-helpers.test.ts +19 -1
- package/templates/starter/src/app/(base)/template-steps/template-step-helpers.ts +21 -176
- package/templates/starter/src/app/(base)/template-steps/template-step-option-helpers.ts +13 -0
- package/templates/starter/src/app/(base)/template-steps/template-step-row-guards.ts +65 -0
- package/templates/starter/src/app/(base)/template-steps/template-step-table-columns.tsx +7 -4
- package/templates/starter/src/app/(base)/template-steps/template-step-types.ts +27 -0
- package/templates/starter/src/app/(base)/template-test-cases/create/page.tsx +12 -19
- package/templates/starter/src/app/(base)/template-test-cases/create-template-test-case-page-data.test.ts +81 -0
- package/templates/starter/src/app/(base)/template-test-cases/create-template-test-case-page-data.ts +57 -0
- package/templates/starter/src/app/(base)/template-test-cases/modify/[id]/page.tsx +68 -8
- package/templates/starter/src/app/(base)/template-test-cases/page.tsx +2 -2
- package/templates/starter/src/app/(base)/template-test-cases/template-test-case-flow.test.tsx +2 -1
- package/templates/starter/src/app/(base)/template-test-cases/template-test-case-flow.tsx +19 -4
- package/templates/starter/src/app/(base)/template-test-cases/template-test-case-form.test.tsx +6 -0
- package/templates/starter/src/app/(base)/template-test-cases/template-test-case-form.tsx +33 -27
- package/templates/starter/src/app/(base)/test-cases/create/page.test.tsx +121 -0
- package/templates/starter/src/app/(base)/test-cases/create/page.tsx +28 -10
- package/templates/starter/src/app/(base)/test-cases/create-from-template/create-from-template-conversion-helpers.ts +27 -0
- package/templates/starter/src/app/(base)/test-cases/create-from-template/create-from-template-helpers.test.ts +2 -0
- package/templates/starter/src/app/(base)/test-cases/create-from-template/create-from-template-helpers.ts +14 -171
- package/templates/starter/src/app/(base)/test-cases/create-from-template/create-from-template-selection-helpers.ts +71 -0
- package/templates/starter/src/app/(base)/test-cases/create-from-template/create-from-template-types.ts +24 -0
- package/templates/starter/src/app/(base)/test-cases/create-from-template/generate/[id]/page.test.tsx +19 -0
- package/templates/starter/src/app/(base)/test-cases/create-from-template/generate/[id]/page.tsx +2 -93
- package/templates/starter/src/app/(base)/test-cases/create-from-template/page.test.tsx +157 -0
- package/templates/starter/src/app/(base)/test-cases/create-from-template/page.tsx +113 -10
- package/templates/starter/src/app/(base)/test-cases/editable-test-case-builders.ts +35 -0
- package/templates/starter/src/app/(base)/test-cases/editable-test-case-guards.ts +42 -0
- package/templates/starter/src/app/(base)/test-cases/editable-test-case-helpers.ts +3 -0
- package/templates/starter/src/app/(base)/test-cases/editable-test-case-types.ts +14 -0
- package/templates/starter/src/app/(base)/test-cases/inline-tag-creation-dialog.tsx +41 -0
- package/templates/starter/src/app/(base)/test-cases/inline-test-suite-creation-dialog.tsx +51 -0
- package/templates/starter/src/app/(base)/test-cases/modify/[id]/page.tsx +32 -9
- package/templates/starter/src/app/(base)/test-cases/page.tsx +3 -3
- package/templates/starter/src/app/(base)/test-cases/test-case-flow.test.tsx +24 -0
- package/templates/starter/src/app/(base)/test-cases/test-case-flow.tsx +34 -13
- package/templates/starter/src/app/(base)/test-cases/test-case-form-reducer.test.ts +59 -0
- package/templates/starter/src/app/(base)/test-cases/test-case-form-reducer.ts +203 -0
- package/templates/starter/src/app/(base)/test-cases/test-case-form.test.tsx +340 -32
- package/templates/starter/src/app/(base)/test-cases/test-case-form.tsx +1310 -166
- package/templates/starter/src/app/(base)/test-cases/test-case-resource-rows.ts +9 -0
- package/templates/starter/src/app/(base)/test-cases/test-case-route-helpers.test.ts +3 -5
- package/templates/starter/src/app/(base)/test-cases/test-case-route-helpers.ts +3 -147
- package/templates/starter/src/app/(base)/test-cases/test-case-row-helpers.ts +30 -0
- package/templates/starter/src/app/(base)/test-cases/test-case-shared-resource-rows.ts +55 -0
- package/templates/starter/src/app/(base)/test-cases/test-case-table.tsx +3 -3
- package/templates/starter/src/app/(base)/test-cases/test-case-template-resource-rows.ts +21 -0
- package/templates/starter/src/app/(base)/test-runs/create/page.tsx +8 -16
- package/templates/starter/src/app/(base)/test-runs/create-test-run-page-data.test.ts +60 -0
- package/templates/starter/src/app/(base)/test-runs/create-test-run-page-data.ts +38 -0
- package/templates/starter/src/app/(base)/test-runs/page.tsx +2 -2
- package/templates/starter/src/app/(base)/test-runs/test-run-form-data-helpers.ts +71 -0
- package/templates/starter/src/app/(base)/test-runs/test-run-form-display-helpers.ts +44 -0
- package/templates/starter/src/app/(base)/test-runs/test-run-form-helpers.ts +17 -157
- package/templates/starter/src/app/(base)/test-runs/test-run-form-selection-helpers.ts +46 -0
- package/templates/starter/src/app/(base)/test-runs/test-run-form.tsx +19 -24
- package/templates/starter/src/app/(base)/test-runs/test-run-table-columns.tsx +14 -14
- package/templates/starter/src/app/(base)/test-runs/test-run-table.tsx +61 -60
- package/templates/starter/src/app/(base)/test-suites/editable-test-suite-helpers.ts +12 -0
- package/templates/starter/src/app/(base)/test-suites/page.tsx +5 -5
- package/templates/starter/src/app/(base)/test-suites/test-suite-form-display-helpers.ts +54 -0
- package/templates/starter/src/app/(base)/test-suites/test-suite-form.test.tsx +59 -18
- package/templates/starter/src/app/(base)/test-suites/test-suite-form.tsx +38 -21
- package/templates/starter/src/app/(base)/test-suites/test-suite-helpers.ts +25 -215
- package/templates/starter/src/app/(base)/test-suites/test-suite-row-guards.ts +80 -0
- package/templates/starter/src/app/(base)/test-suites/test-suite-table-columns.tsx +1 -1
- package/templates/starter/src/app/(base)/test-suites/test-suite-table-helpers.ts +57 -0
- package/templates/starter/src/app/(base)/test-suites/test-suite-types.ts +30 -0
- package/templates/starter/src/app/(dashboard-components)/app-drawer.tsx +26 -23
- package/templates/starter/src/app/(dashboard-components)/data-card-grid.tsx +10 -10
- package/templates/starter/src/app/(dashboard-components)/data-card.tsx +30 -26
- package/templates/starter/src/app/(dashboard-components)/execution-health-panel.tsx +42 -42
- package/templates/starter/src/app/(dashboard-components)/ongoing-test-runs-card.tsx +8 -8
- package/templates/starter/src/app/(dashboard-components)/quick-actions-drawer.tsx +66 -42
- package/templates/starter/src/app/api/test-runs/[runId]/download/route.ts +160 -106
- package/templates/starter/src/app/api/test-runs/[runId]/trace/[testCaseId]/route.test.ts +18 -9
- package/templates/starter/src/app/globals.css +11 -0
- package/templates/starter/src/app/layout.tsx +17 -17
- package/templates/starter/src/app/page.tsx +10 -5
- package/templates/starter/src/components/base-node.tsx +5 -8
- package/templates/starter/src/components/data-state/empty-state.tsx +1 -1
- package/templates/starter/src/components/data-visualization/info-card.tsx +9 -23
- package/templates/starter/src/components/diagram/add-node-prompt-node.tsx +30 -0
- package/templates/starter/src/components/diagram/button-edge.tsx +27 -9
- package/templates/starter/src/components/diagram/dynamic-parameter-field-label.tsx +19 -0
- package/templates/starter/src/components/diagram/dynamic-parameter-field-shell.tsx +30 -0
- package/templates/starter/src/components/diagram/dynamic-parameter-field-types.ts +32 -0
- package/templates/starter/src/components/diagram/dynamic-parameter-fields.tsx +140 -0
- package/templates/starter/src/components/diagram/dynamic-parameter-locator-field.tsx +288 -0
- package/templates/starter/src/components/diagram/dynamic-parameters-helpers.ts +10 -4
- package/templates/starter/src/components/diagram/dynamic-parameters.test.tsx +298 -0
- package/templates/starter/src/components/diagram/dynamic-parameters.tsx +223 -223
- package/templates/starter/src/components/diagram/flow-add-node-prompt-helpers.ts +22 -0
- package/templates/starter/src/components/diagram/flow-block-helpers.ts +86 -0
- package/templates/starter/src/components/diagram/flow-diagram-block-dialog.test.tsx +26 -0
- package/templates/starter/src/components/diagram/flow-diagram-block-dialog.tsx +58 -0
- package/templates/starter/src/components/diagram/flow-diagram-block-overlays.tsx +65 -0
- package/templates/starter/src/components/diagram/flow-diagram-connection-guards.ts +145 -0
- package/templates/starter/src/components/diagram/flow-diagram-grouping-hints.tsx +38 -0
- package/templates/starter/src/components/diagram/flow-diagram-helpers.test.ts +214 -5
- package/templates/starter/src/components/diagram/flow-diagram-helpers.ts +22 -251
- package/templates/starter/src/components/diagram/flow-diagram-node-search.tsx +108 -0
- package/templates/starter/src/components/diagram/flow-diagram-node-types.tsx +46 -0
- package/templates/starter/src/components/diagram/flow-diagram-toolbar.tsx +86 -0
- package/templates/starter/src/components/diagram/flow-diagram-types.ts +21 -0
- package/templates/starter/src/components/diagram/flow-diagram-view.tsx +173 -0
- package/templates/starter/src/components/diagram/flow-diagram.test.tsx +501 -0
- package/templates/starter/src/components/diagram/flow-diagram.tsx +72 -226
- package/templates/starter/src/components/diagram/flow-node-data-helpers.ts +122 -0
- package/templates/starter/src/components/diagram/flow-node-order-helpers.ts +179 -0
- package/templates/starter/src/components/diagram/flow-node-search-helpers.ts +24 -0
- package/templates/starter/src/components/diagram/node-form-fields-content.tsx +127 -0
- package/templates/starter/src/components/diagram/node-form-fields-props.ts +3 -0
- package/templates/starter/src/components/diagram/node-form-helpers.test.ts +3 -1
- package/templates/starter/src/components/diagram/node-form-helpers.ts +15 -11
- package/templates/starter/src/components/diagram/node-form-submit.ts +36 -0
- package/templates/starter/src/components/diagram/node-form-template-step-selection.test.ts +42 -0
- package/templates/starter/src/components/diagram/node-form-template-step-selection.ts +37 -0
- package/templates/starter/src/components/diagram/node-form.test.tsx +197 -25
- package/templates/starter/src/components/diagram/node-form.tsx +103 -163
- package/templates/starter/src/components/diagram/options-header-gherkin-step.tsx +72 -0
- package/templates/starter/src/components/diagram/options-header-node.test.tsx +213 -0
- package/templates/starter/src/components/diagram/options-header-node.tsx +237 -33
- package/templates/starter/src/components/diagram/template-step-combobox.test.tsx +144 -0
- package/templates/starter/src/components/diagram/template-step-combobox.tsx +176 -39
- package/templates/starter/src/components/diagram/use-flow-diagram-block-grouping.ts +130 -0
- package/templates/starter/src/components/diagram/use-flow-diagram-search.ts +114 -0
- package/templates/starter/src/components/diagram/use-flow-diagram.ts +383 -0
- package/templates/starter/src/components/loading-skeleton/data-table/data-table-skeleton.tsx +1 -1
- package/templates/starter/src/components/loading-skeleton/form/icon-button-skeleton.tsx +1 -1
- package/templates/starter/src/components/logo.tsx +1 -1
- package/templates/starter/src/components/navigation/command-badge.tsx +1 -1
- package/templates/starter/src/components/navigation/command-chain-input.tsx +5 -10
- package/templates/starter/src/components/navigation/entity-search-command.tsx +41 -24
- package/templates/starter/src/components/navigation/nav-command-search.tsx +5 -5
- package/templates/starter/src/components/navigation/nav-command.tsx +8 -8
- package/templates/starter/src/components/navigation/nav-link.tsx +1 -1
- package/templates/starter/src/components/navigation/nav-menu-card-deck.tsx +73 -70
- package/templates/starter/src/components/reports/test-case-logs-modal.tsx +10 -10
- package/templates/starter/src/components/table/table-actions.test.tsx +53 -0
- package/templates/starter/src/components/table/table-actions.tsx +14 -10
- package/templates/starter/src/components/test-case/test-case-form-helpers.test.ts +2 -5
- package/templates/starter/src/components/test-case/test-case-form-helpers.ts +41 -50
- package/templates/starter/src/components/test-case/test-case-picker-helpers.ts +8 -7
- package/templates/starter/src/components/test-case/test-case-picker.test.tsx +14 -11
- package/templates/starter/src/components/test-case/test-case-picker.tsx +137 -113
- package/templates/starter/src/components/test-case/test-scenario-preview.tsx +69 -16
- package/templates/starter/src/components/test-run/download-logs-button.tsx +13 -26
- package/templates/starter/src/components/test-run/log-viewer-events.ts +7 -0
- package/templates/starter/src/components/test-run/log-viewer-helpers.ts +4 -80
- package/templates/starter/src/components/test-run/log-viewer-parsing.ts +28 -0
- package/templates/starter/src/components/test-run/log-viewer-status.ts +35 -0
- package/templates/starter/src/components/test-run/log-viewer-types.ts +7 -0
- package/templates/starter/src/components/test-run/log-viewer.test.tsx +25 -0
- package/templates/starter/src/components/test-run/log-viewer.tsx +8 -8
- package/templates/starter/src/components/test-run/test-run-details-guards.ts +94 -0
- package/templates/starter/src/components/test-run/test-run-details-helpers.test.ts +102 -0
- package/templates/starter/src/components/test-run/test-run-details-helpers.ts +10 -208
- package/templates/starter/src/components/test-run/test-run-details-progress.ts +26 -0
- package/templates/starter/src/components/test-run/test-run-details-status.ts +70 -0
- package/templates/starter/src/components/test-run/test-run-details-types.ts +21 -0
- package/templates/starter/src/components/test-run/test-run-details.test.tsx +10 -25
- package/templates/starter/src/components/test-run/test-run-details.tsx +26 -54
- package/templates/starter/src/components/test-run/test-run-header.test.tsx +13 -18
- package/templates/starter/src/components/test-run/trace-viewer-button-label.tsx +57 -0
- package/templates/starter/src/components/test-run/use-log-viewer.ts +2 -8
- package/templates/starter/src/components/test-run/use-test-run-header.ts +1 -4
- package/templates/starter/src/components/test-run/view-report-button.tsx +60 -64
- package/templates/starter/src/components/test-suite/test-suite-picker-helpers.test.ts +27 -1
- package/templates/starter/src/components/test-suite/test-suite-picker-helpers.ts +80 -1
- package/templates/starter/src/components/test-suite/test-suite-picker-suite-row-header.tsx +87 -0
- package/templates/starter/src/components/test-suite/test-suite-picker-suite-row.tsx +61 -0
- package/templates/starter/src/components/test-suite/test-suite-picker-test-case-list.tsx +95 -0
- package/templates/starter/src/components/test-suite/test-suite-picker.tsx +133 -274
- package/templates/starter/src/components/theme/theme-provider.tsx +7 -1
- package/templates/starter/src/components/ui/alert.tsx +12 -18
- package/templates/starter/src/components/ui/badge.tsx +1 -1
- package/templates/starter/src/components/ui/button.tsx +13 -10
- package/templates/starter/src/components/ui/calendar.tsx +3 -3
- package/templates/starter/src/components/ui/card.tsx +16 -34
- package/templates/starter/src/components/ui/chart-utils.ts +43 -0
- package/templates/starter/src/components/ui/chart.tsx +211 -304
- package/templates/starter/src/components/ui/checkbox.tsx +20 -17
- package/templates/starter/src/components/ui/command.tsx +60 -96
- package/templates/starter/src/components/ui/data-table-column-header.tsx +3 -3
- package/templates/starter/src/components/ui/data-table-pagination.tsx +7 -7
- package/templates/starter/src/components/ui/data-table-view-options.tsx +20 -15
- package/templates/starter/src/components/ui/data-table.test.tsx +1 -8
- package/templates/starter/src/components/ui/data-table.tsx +22 -19
- package/templates/starter/src/components/ui/dialog.tsx +42 -63
- package/templates/starter/src/components/ui/dropdown-menu.tsx +76 -148
- package/templates/starter/src/components/ui/empty.tsx +21 -40
- package/templates/starter/src/components/ui/input.tsx +13 -15
- package/templates/starter/src/components/ui/kbd.tsx +7 -13
- package/templates/starter/src/components/ui/label.tsx +7 -6
- package/templates/starter/src/components/ui/multi-select-with-preview.tsx +20 -7
- package/templates/starter/src/components/ui/multi-select.tsx +7 -5
- package/templates/starter/src/components/ui/picker-browse-shell.tsx +99 -0
- package/templates/starter/src/components/ui/popover.tsx +21 -19
- package/templates/starter/src/components/ui/progress.tsx +14 -15
- package/templates/starter/src/components/ui/radio-group.tsx +14 -25
- package/templates/starter/src/components/ui/scroll-area.tsx +32 -29
- package/templates/starter/src/components/ui/select.tsx +99 -125
- package/templates/starter/src/components/ui/separator.tsx +20 -12
- package/templates/starter/src/components/ui/sheet.tsx +92 -0
- package/templates/starter/src/components/ui/table.tsx +25 -50
- package/templates/starter/src/components/ui/tabs.tsx +36 -41
- package/templates/starter/src/components/ui/textarea.tsx +11 -15
- package/templates/starter/src/components/ui/toast.tsx +56 -62
- package/templates/starter/src/components/ui/tooltip.tsx +23 -20
- package/templates/starter/src/components/user-prompt/delete-prompt.tsx +5 -5
- package/templates/starter/src/constants/form-opts/diagram/node-form.ts +11 -28
- package/templates/starter/src/constants/form-opts/environment-form-opts.ts +1 -1
- package/templates/starter/src/constants/form-opts/locator-group-form-opts.ts +2 -8
- package/templates/starter/src/constants/form-opts/module-form-opts.ts +1 -1
- package/templates/starter/src/constants/form-opts/tag-form-opts.ts +1 -1
- package/templates/starter/src/constants/form-opts/template-selection-form-opts.ts +0 -11
- package/templates/starter/src/constants/form-opts/template-step-group-form-opts.ts +1 -1
- package/templates/starter/src/constants/form-opts/template-test-case-form-opts.ts +3 -33
- package/templates/starter/src/constants/form-opts/template-test-step-form-opts.ts +1 -1
- package/templates/starter/src/constants/form-opts/test-case-form-opts.ts +3 -35
- package/templates/starter/src/constants/form-opts/test-case-step-form-opts.ts +27 -0
- package/templates/starter/src/constants/form-opts/test-run-form-opts.ts +1 -1
- package/templates/starter/src/constants/form-opts/test-suite-form-opts.ts +1 -1
- package/templates/starter/src/hooks/use-toast.ts +1 -1
- package/templates/starter/src/lib/automation/automation-path-roots.ts +1 -9
- package/templates/starter/src/lib/bidirectional-sync.ts +116 -107
- package/templates/starter/src/lib/database-sync.ts +142 -190
- package/templates/starter/src/lib/environment-file-utils.ts +3 -115
- package/templates/starter/src/lib/executor/local-executor-adapter.ts +1 -1
- package/templates/starter/src/lib/form/tanstack-form-action.ts +7 -0
- package/templates/starter/src/lib/form/tanstack-form.tsx +18 -0
- package/templates/starter/src/lib/gherkin-parser.test.ts +7 -7
- package/templates/starter/src/lib/gherkin-parser.ts +132 -145
- package/templates/starter/src/lib/gherkin-step-format.ts +80 -0
- package/templates/starter/src/lib/jsdoc/template-step-jsdoc.ts +262 -0
- package/templates/starter/src/lib/locator-group-file-utils.ts +7 -21
- package/templates/starter/src/lib/locator-picker/session-manager.ts +1 -2
- package/templates/starter/src/lib/locator-picker/suggestions.ts +7 -4
- package/templates/starter/src/lib/metrics/metric-calculator.test.ts +255 -0
- package/templates/starter/src/lib/metrics/metric-calculator.ts +273 -296
- package/templates/starter/src/lib/module-hierarchy-builder.ts +1 -10
- package/templates/starter/src/lib/path-helpers/feature-path.ts +10 -0
- package/templates/starter/src/lib/path-helpers/module-path.ts +0 -50
- package/templates/starter/src/lib/process/task-spawner.ts +50 -27
- package/templates/starter/src/lib/sync/projected-feature-utils.ts +2 -42
- package/templates/starter/src/lib/sync/sync-executor.ts +1 -4
- package/templates/starter/src/lib/sync/sync-pending-counts.test.ts +201 -7
- package/templates/starter/src/lib/sync/sync-pending-counts.ts +205 -285
- package/templates/starter/src/lib/sync/sync-registry.ts +2 -2
- package/templates/starter/src/lib/tag-filters.ts +11 -0
- package/templates/starter/src/lib/tag-identifiers.ts +18 -0
- package/templates/starter/src/lib/tag-utils.ts +2 -28
- package/templates/starter/src/lib/template-automation-paths.ts +34 -0
- package/templates/starter/src/lib/template-path-exclusions.ts +34 -0
- package/templates/starter/src/lib/template-sync-utils.d.ts +14 -7
- package/templates/starter/src/lib/template-sync-utils.ts +2 -65
- package/templates/starter/src/lib/test-run/log-formatter.ts +5 -6
- package/templates/starter/src/lib/test-run/matching.test.ts +77 -0
- package/templates/starter/src/lib/test-run/matching.ts +2 -2
- package/templates/starter/src/lib/test-run/report-parser.test.ts +113 -0
- package/templates/starter/src/lib/test-suite-identifier-service.ts +1 -1
- package/templates/starter/src/lib/transformers/template-test-case-converter.ts +13 -64
- package/templates/starter/src/lib/utils/template-step-file-generator.ts +7 -22
- package/templates/starter/src/lib/utils/template-step-file-manager-intelligent.ts +12 -356
- package/templates/starter/src/lib/utils/template-step-function-bounds.test.ts +48 -0
- package/templates/starter/src/lib/utils/template-step-function-bounds.ts +138 -0
- package/templates/starter/src/lib/utils.ts +0 -4
- package/templates/starter/src/services/dashboard/dashboard-service.test.ts +28 -1
- package/templates/starter/src/services/dashboard/dashboard-service.ts +2 -0
- package/templates/starter/src/services/locator/locator-service.test.ts +1 -3
- package/templates/starter/src/services/locator/locator-service.ts +25 -7
- package/templates/starter/src/services/locator/locator-sync-utils.test.ts +1 -4
- package/templates/starter/src/services/module/module-service.ts +1 -4
- package/templates/starter/src/services/report/report-service.test.ts +70 -6
- package/templates/starter/src/services/report/report-service.ts +301 -246
- package/templates/starter/src/services/shared/errors.ts +2 -4
- package/templates/starter/src/services/tag/tag-service.test.ts +140 -2
- package/templates/starter/src/services/tag/tag-service.ts +71 -0
- package/templates/starter/src/services/template-step/template-step-service.ts +3 -1
- package/templates/starter/src/services/template-step-group/template-step-group-service.ts +3 -1
- package/templates/starter/src/services/template-test-case/template-test-case-service.ts +34 -2
- package/templates/starter/src/services/test-case/test-case-service.test.ts +1 -0
- package/templates/starter/src/services/test-case/test-case-service.ts +34 -2
- package/templates/starter/src/services/test-run/test-run-service.test.ts +3 -6
- package/templates/starter/src/services/test-run/test-run-service.ts +158 -126
- package/templates/starter/src/services/test-suite/test-suite-service.test.ts +1 -5
- package/templates/starter/src/services/test-suite/test-suite-service.ts +2 -4
- package/templates/starter/src/test/motion-react-vitest-mocks.ts +18 -0
- package/templates/starter/src/test/setup-motion-react-mocks.ts +4 -0
- package/templates/starter/src/types/diagram/diagram.ts +8 -0
- package/templates/starter/src/types/diagram/template-step.ts +5 -2
- package/templates/starter/src/types/form/actionHandler.ts +1 -5
- package/templates/starter/src/types/report.ts +84 -0
- package/templates/starter/tsconfig.json +8 -8
- package/templates/blank/src/app/(base)/test-cases/create-from-template/template-selection-form.test.tsx +0 -87
- package/templates/blank/src/app/(base)/test-cases/create-from-template/template-selection-form.tsx +0 -83
- package/templates/blank/src/components/chart/pie-chart.tsx +0 -73
- package/templates/blank/src/components/data-extraction/locator-inspector.tsx +0 -349
- package/templates/blank/src/components/diagram/edit-header-option.tsx +0 -36
- package/templates/blank/src/components/kokonutui/smooth-tab.tsx +0 -453
- package/templates/blank/src/components/navigation/nav-card.tsx +0 -31
- package/templates/blank/src/components/node-header.tsx +0 -159
- package/templates/blank/src/components/ui/alert-dialog.tsx +0 -106
- package/templates/blank/src/components/ui/avatar.tsx +0 -40
- package/templates/blank/src/components/ui/loading.tsx +0 -12
- package/templates/blank/src/components/ui/navigation-menu.tsx +0 -120
- package/templates/blank/src/lib/template-sync-utils.js +0 -50
- package/templates/blank/src/lib/test-run/test-run-executor.ts +0 -13
- package/templates/blank/src/lib/utils/template-step-file-manager.ts +0 -166
- package/templates/blank/src/services/shared/index.ts +0 -7
- package/templates/blank/src/types/executor/browser.type.ts +0 -1
- package/templates/blank/src/types/locator/locator.type.ts +0 -11
- package/templates/blank/src/types/step/step.type.ts +0 -1
- package/templates/blank/src/types/table/data-table.ts +0 -6
- package/templates/starter/src/app/(base)/test-cases/create-from-template/template-selection-form.test.tsx +0 -87
- package/templates/starter/src/app/(base)/test-cases/create-from-template/template-selection-form.tsx +0 -83
- package/templates/starter/src/components/chart/pie-chart.tsx +0 -73
- package/templates/starter/src/components/data-extraction/locator-inspector.tsx +0 -349
- package/templates/starter/src/components/diagram/edit-header-option.tsx +0 -36
- package/templates/starter/src/components/kokonutui/smooth-tab.tsx +0 -453
- package/templates/starter/src/components/navigation/nav-card.tsx +0 -31
- package/templates/starter/src/components/node-header.tsx +0 -159
- package/templates/starter/src/components/ui/alert-dialog.tsx +0 -106
- package/templates/starter/src/components/ui/avatar.tsx +0 -40
- package/templates/starter/src/components/ui/loading.tsx +0 -12
- package/templates/starter/src/components/ui/navigation-menu.tsx +0 -120
- package/templates/starter/src/lib/template-sync-utils.js +0 -50
- package/templates/starter/src/lib/test-run/test-run-executor.ts +0 -13
- package/templates/starter/src/lib/utils/template-step-file-manager.ts +0 -166
- package/templates/starter/src/services/shared/index.ts +0 -7
- package/templates/starter/src/types/executor/browser.type.ts +0 -1
- package/templates/starter/src/types/locator/locator.type.ts +0 -11
- package/templates/starter/src/types/step/step.type.ts +0 -1
- package/templates/starter/src/types/table/data-table.ts +0 -6
package/templates/starter/prisma/migrations/20251229194422_migrate_duration_to_string/migration.sql
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
-- RedefineTables
|
|
2
|
-
PRAGMA defer_foreign_keys=ON;
|
|
3
|
-
PRAGMA foreign_keys=OFF;
|
|
4
|
-
CREATE TABLE "new_ReportHook" (
|
|
5
|
-
"id" TEXT NOT NULL PRIMARY KEY,
|
|
6
|
-
"reportScenarioId" TEXT NOT NULL,
|
|
7
|
-
"keyword" TEXT NOT NULL,
|
|
8
|
-
"status" TEXT NOT NULL,
|
|
9
|
-
"duration" TEXT NOT NULL,
|
|
10
|
-
"errorMessage" TEXT,
|
|
11
|
-
"errorTrace" TEXT,
|
|
12
|
-
"hidden" BOOLEAN NOT NULL DEFAULT false,
|
|
13
|
-
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
14
|
-
"updatedAt" DATETIME NOT NULL,
|
|
15
|
-
CONSTRAINT "ReportHook_reportScenarioId_fkey" FOREIGN KEY ("reportScenarioId") REFERENCES "ReportScenario" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
16
|
-
);
|
|
17
|
-
INSERT INTO "new_ReportHook" ("createdAt", "duration", "errorMessage", "errorTrace", "hidden", "id", "keyword", "reportScenarioId", "status", "updatedAt") SELECT "createdAt", CAST("duration" AS TEXT), "errorMessage", "errorTrace", "hidden", "id", "keyword", "reportScenarioId", "status", "updatedAt" FROM "ReportHook";
|
|
18
|
-
DROP TABLE "ReportHook";
|
|
19
|
-
ALTER TABLE "new_ReportHook" RENAME TO "ReportHook";
|
|
20
|
-
CREATE TABLE "new_ReportStep" (
|
|
21
|
-
"id" TEXT NOT NULL PRIMARY KEY,
|
|
22
|
-
"reportScenarioId" TEXT NOT NULL,
|
|
23
|
-
"keyword" TEXT NOT NULL,
|
|
24
|
-
"line" INTEGER,
|
|
25
|
-
"name" TEXT NOT NULL,
|
|
26
|
-
"matchLocation" TEXT,
|
|
27
|
-
"status" TEXT NOT NULL,
|
|
28
|
-
"duration" TEXT NOT NULL,
|
|
29
|
-
"errorMessage" TEXT,
|
|
30
|
-
"errorTrace" TEXT,
|
|
31
|
-
"hidden" BOOLEAN NOT NULL DEFAULT false,
|
|
32
|
-
"order" INTEGER NOT NULL,
|
|
33
|
-
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
34
|
-
"updatedAt" DATETIME NOT NULL,
|
|
35
|
-
CONSTRAINT "ReportStep_reportScenarioId_fkey" FOREIGN KEY ("reportScenarioId") REFERENCES "ReportScenario" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
36
|
-
);
|
|
37
|
-
INSERT INTO "new_ReportStep" ("createdAt", "duration", "errorMessage", "errorTrace", "hidden", "id", "keyword", "line", "matchLocation", "name", "order", "reportScenarioId", "status", "updatedAt") SELECT "createdAt", CAST("duration" AS TEXT), "errorMessage", "errorTrace", "hidden", "id", "keyword", "line", "matchLocation", "name", "order", "reportScenarioId", "status", "updatedAt" FROM "ReportStep";
|
|
38
|
-
DROP TABLE "ReportStep";
|
|
39
|
-
ALTER TABLE "new_ReportStep" RENAME TO "ReportStep";
|
|
40
|
-
CREATE TABLE "new_ReportTestCase" (
|
|
41
|
-
"id" TEXT NOT NULL PRIMARY KEY,
|
|
42
|
-
"reportId" TEXT NOT NULL,
|
|
43
|
-
"testCaseId" TEXT NOT NULL,
|
|
44
|
-
"testRunTestCaseId" TEXT NOT NULL,
|
|
45
|
-
"reportScenarioId" TEXT,
|
|
46
|
-
"duration" TEXT NOT NULL,
|
|
47
|
-
CONSTRAINT "ReportTestCase_testRunTestCaseId_fkey" FOREIGN KEY ("testRunTestCaseId") REFERENCES "TestRunTestCase" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
|
|
48
|
-
CONSTRAINT "ReportTestCase_reportId_fkey" FOREIGN KEY ("reportId") REFERENCES "Report" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
|
|
49
|
-
CONSTRAINT "ReportTestCase_reportScenarioId_fkey" FOREIGN KEY ("reportScenarioId") REFERENCES "ReportScenario" ("id") ON DELETE SET NULL ON UPDATE CASCADE
|
|
50
|
-
);
|
|
51
|
-
INSERT INTO "new_ReportTestCase" ("duration", "id", "reportId", "reportScenarioId", "testCaseId", "testRunTestCaseId") SELECT CAST("duration" AS TEXT), "id", "reportId", "reportScenarioId", "testCaseId", "testRunTestCaseId" FROM "ReportTestCase";
|
|
52
|
-
DROP TABLE "ReportTestCase";
|
|
53
|
-
ALTER TABLE "new_ReportTestCase" RENAME TO "ReportTestCase";
|
|
54
|
-
PRAGMA foreign_keys=ON;
|
|
55
|
-
PRAGMA defer_foreign_keys=OFF;
|
|
1
|
+
-- RedefineTables
|
|
2
|
+
PRAGMA defer_foreign_keys=ON;
|
|
3
|
+
PRAGMA foreign_keys=OFF;
|
|
4
|
+
CREATE TABLE "new_ReportHook" (
|
|
5
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
6
|
+
"reportScenarioId" TEXT NOT NULL,
|
|
7
|
+
"keyword" TEXT NOT NULL,
|
|
8
|
+
"status" TEXT NOT NULL,
|
|
9
|
+
"duration" TEXT NOT NULL,
|
|
10
|
+
"errorMessage" TEXT,
|
|
11
|
+
"errorTrace" TEXT,
|
|
12
|
+
"hidden" BOOLEAN NOT NULL DEFAULT false,
|
|
13
|
+
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
14
|
+
"updatedAt" DATETIME NOT NULL,
|
|
15
|
+
CONSTRAINT "ReportHook_reportScenarioId_fkey" FOREIGN KEY ("reportScenarioId") REFERENCES "ReportScenario" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
16
|
+
);
|
|
17
|
+
INSERT INTO "new_ReportHook" ("createdAt", "duration", "errorMessage", "errorTrace", "hidden", "id", "keyword", "reportScenarioId", "status", "updatedAt") SELECT "createdAt", CAST("duration" AS TEXT), "errorMessage", "errorTrace", "hidden", "id", "keyword", "reportScenarioId", "status", "updatedAt" FROM "ReportHook";
|
|
18
|
+
DROP TABLE "ReportHook";
|
|
19
|
+
ALTER TABLE "new_ReportHook" RENAME TO "ReportHook";
|
|
20
|
+
CREATE TABLE "new_ReportStep" (
|
|
21
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
22
|
+
"reportScenarioId" TEXT NOT NULL,
|
|
23
|
+
"keyword" TEXT NOT NULL,
|
|
24
|
+
"line" INTEGER,
|
|
25
|
+
"name" TEXT NOT NULL,
|
|
26
|
+
"matchLocation" TEXT,
|
|
27
|
+
"status" TEXT NOT NULL,
|
|
28
|
+
"duration" TEXT NOT NULL,
|
|
29
|
+
"errorMessage" TEXT,
|
|
30
|
+
"errorTrace" TEXT,
|
|
31
|
+
"hidden" BOOLEAN NOT NULL DEFAULT false,
|
|
32
|
+
"order" INTEGER NOT NULL,
|
|
33
|
+
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
34
|
+
"updatedAt" DATETIME NOT NULL,
|
|
35
|
+
CONSTRAINT "ReportStep_reportScenarioId_fkey" FOREIGN KEY ("reportScenarioId") REFERENCES "ReportScenario" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
36
|
+
);
|
|
37
|
+
INSERT INTO "new_ReportStep" ("createdAt", "duration", "errorMessage", "errorTrace", "hidden", "id", "keyword", "line", "matchLocation", "name", "order", "reportScenarioId", "status", "updatedAt") SELECT "createdAt", CAST("duration" AS TEXT), "errorMessage", "errorTrace", "hidden", "id", "keyword", "line", "matchLocation", "name", "order", "reportScenarioId", "status", "updatedAt" FROM "ReportStep";
|
|
38
|
+
DROP TABLE "ReportStep";
|
|
39
|
+
ALTER TABLE "new_ReportStep" RENAME TO "ReportStep";
|
|
40
|
+
CREATE TABLE "new_ReportTestCase" (
|
|
41
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
42
|
+
"reportId" TEXT NOT NULL,
|
|
43
|
+
"testCaseId" TEXT NOT NULL,
|
|
44
|
+
"testRunTestCaseId" TEXT NOT NULL,
|
|
45
|
+
"reportScenarioId" TEXT,
|
|
46
|
+
"duration" TEXT NOT NULL,
|
|
47
|
+
CONSTRAINT "ReportTestCase_testRunTestCaseId_fkey" FOREIGN KEY ("testRunTestCaseId") REFERENCES "TestRunTestCase" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
|
|
48
|
+
CONSTRAINT "ReportTestCase_reportId_fkey" FOREIGN KEY ("reportId") REFERENCES "Report" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
|
|
49
|
+
CONSTRAINT "ReportTestCase_reportScenarioId_fkey" FOREIGN KEY ("reportScenarioId") REFERENCES "ReportScenario" ("id") ON DELETE SET NULL ON UPDATE CASCADE
|
|
50
|
+
);
|
|
51
|
+
INSERT INTO "new_ReportTestCase" ("duration", "id", "reportId", "reportScenarioId", "testCaseId", "testRunTestCaseId") SELECT CAST("duration" AS TEXT), "id", "reportId", "reportScenarioId", "testCaseId", "testRunTestCaseId" FROM "ReportTestCase";
|
|
52
|
+
DROP TABLE "ReportTestCase";
|
|
53
|
+
ALTER TABLE "new_ReportTestCase" RENAME TO "ReportTestCase";
|
|
54
|
+
PRAGMA foreign_keys=ON;
|
|
55
|
+
PRAGMA defer_foreign_keys=OFF;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
-- RedefineTables
|
|
2
|
-
PRAGMA defer_foreign_keys=ON;
|
|
3
|
-
PRAGMA foreign_keys=OFF;
|
|
4
|
-
CREATE TABLE "new_TestRun" (
|
|
5
|
-
"id" TEXT NOT NULL PRIMARY KEY,
|
|
6
|
-
"name" TEXT NOT NULL,
|
|
7
|
-
"runId" TEXT NOT NULL,
|
|
8
|
-
"startedAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
9
|
-
"completedAt" DATETIME,
|
|
10
|
-
"status" TEXT NOT NULL DEFAULT 'QUEUED',
|
|
11
|
-
"result" TEXT NOT NULL DEFAULT 'PENDING',
|
|
12
|
-
"updatedAt" DATETIME NOT NULL,
|
|
13
|
-
"environmentId" TEXT NOT NULL,
|
|
14
|
-
"testWorkersCount" INTEGER DEFAULT 1,
|
|
15
|
-
"browserEngine" TEXT NOT NULL DEFAULT 'CHROMIUM',
|
|
16
|
-
"logPath" TEXT,
|
|
17
|
-
"reportPath" TEXT,
|
|
18
|
-
CONSTRAINT "TestRun_environmentId_fkey" FOREIGN KEY ("environmentId") REFERENCES "Environment" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
|
|
19
|
-
);
|
|
20
|
-
INSERT INTO "new_TestRun" ("browserEngine", "completedAt", "environmentId", "id", "logPath", "name", "reportPath", "result", "runId", "startedAt", "status", "testWorkersCount", "updatedAt") SELECT "browserEngine", "completedAt", "environmentId", "id", "logPath", "name", "reportPath", "result", "runId", "startedAt", "status", "testWorkersCount", "updatedAt" FROM "TestRun";
|
|
21
|
-
DROP TABLE "TestRun";
|
|
22
|
-
ALTER TABLE "new_TestRun" RENAME TO "TestRun";
|
|
23
|
-
CREATE UNIQUE INDEX "TestRun_name_key" ON "TestRun"("name");
|
|
24
|
-
CREATE UNIQUE INDEX "TestRun_runId_key" ON "TestRun"("runId");
|
|
25
|
-
PRAGMA foreign_keys=ON;
|
|
26
|
-
PRAGMA defer_foreign_keys=OFF;
|
|
27
|
-
|
|
1
|
+
-- RedefineTables
|
|
2
|
+
PRAGMA defer_foreign_keys=ON;
|
|
3
|
+
PRAGMA foreign_keys=OFF;
|
|
4
|
+
CREATE TABLE "new_TestRun" (
|
|
5
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
6
|
+
"name" TEXT NOT NULL,
|
|
7
|
+
"runId" TEXT NOT NULL,
|
|
8
|
+
"startedAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
9
|
+
"completedAt" DATETIME,
|
|
10
|
+
"status" TEXT NOT NULL DEFAULT 'QUEUED',
|
|
11
|
+
"result" TEXT NOT NULL DEFAULT 'PENDING',
|
|
12
|
+
"updatedAt" DATETIME NOT NULL,
|
|
13
|
+
"environmentId" TEXT NOT NULL,
|
|
14
|
+
"testWorkersCount" INTEGER DEFAULT 1,
|
|
15
|
+
"browserEngine" TEXT NOT NULL DEFAULT 'CHROMIUM',
|
|
16
|
+
"logPath" TEXT,
|
|
17
|
+
"reportPath" TEXT,
|
|
18
|
+
CONSTRAINT "TestRun_environmentId_fkey" FOREIGN KEY ("environmentId") REFERENCES "Environment" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
|
|
19
|
+
);
|
|
20
|
+
INSERT INTO "new_TestRun" ("browserEngine", "completedAt", "environmentId", "id", "logPath", "name", "reportPath", "result", "runId", "startedAt", "status", "testWorkersCount", "updatedAt") SELECT "browserEngine", "completedAt", "environmentId", "id", "logPath", "name", "reportPath", "result", "runId", "startedAt", "status", "testWorkersCount", "updatedAt" FROM "TestRun";
|
|
21
|
+
DROP TABLE "TestRun";
|
|
22
|
+
ALTER TABLE "new_TestRun" RENAME TO "TestRun";
|
|
23
|
+
CREATE UNIQUE INDEX "TestRun_name_key" ON "TestRun"("name");
|
|
24
|
+
CREATE UNIQUE INDEX "TestRun_runId_key" ON "TestRun"("runId");
|
|
25
|
+
PRAGMA foreign_keys=ON;
|
|
26
|
+
PRAGMA defer_foreign_keys=OFF;
|
|
27
|
+
|
package/templates/starter/prisma/migrations/20260115094436_add_dashboard_metrics/migration.sql
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
-- CreateTable
|
|
2
|
-
CREATE TABLE "TestCaseMetrics" (
|
|
3
|
-
"id" TEXT NOT NULL PRIMARY KEY,
|
|
4
|
-
"testCaseId" TEXT NOT NULL,
|
|
5
|
-
"isRepeatedlyFailing" BOOLEAN NOT NULL DEFAULT false,
|
|
6
|
-
"isFlaky" BOOLEAN NOT NULL DEFAULT false,
|
|
7
|
-
"consecutiveFailures" INTEGER NOT NULL DEFAULT 0,
|
|
8
|
-
"failureRate" REAL NOT NULL DEFAULT 0,
|
|
9
|
-
"totalRecentRuns" INTEGER NOT NULL DEFAULT 0,
|
|
10
|
-
"failedRecentRuns" INTEGER NOT NULL DEFAULT 0,
|
|
11
|
-
"lastExecutedAt" DATETIME,
|
|
12
|
-
"lastFailedAt" DATETIME,
|
|
13
|
-
"lastPassedAt" DATETIME,
|
|
14
|
-
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
15
|
-
"updatedAt" DATETIME NOT NULL,
|
|
16
|
-
CONSTRAINT "TestCaseMetrics_testCaseId_fkey" FOREIGN KEY ("testCaseId") REFERENCES "TestCase" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
17
|
-
);
|
|
18
|
-
|
|
19
|
-
-- CreateTable
|
|
20
|
-
CREATE TABLE "TestSuiteMetrics" (
|
|
21
|
-
"id" TEXT NOT NULL PRIMARY KEY,
|
|
22
|
-
"testSuiteId" TEXT NOT NULL,
|
|
23
|
-
"lastExecutedAt" DATETIME,
|
|
24
|
-
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
25
|
-
"updatedAt" DATETIME NOT NULL,
|
|
26
|
-
CONSTRAINT "TestSuiteMetrics_testSuiteId_fkey" FOREIGN KEY ("testSuiteId") REFERENCES "TestSuite" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
-- CreateTable
|
|
30
|
-
CREATE TABLE "DashboardMetrics" (
|
|
31
|
-
"id" TEXT NOT NULL PRIMARY KEY,
|
|
32
|
-
"failedRecentRunsCount" INTEGER NOT NULL DEFAULT 0,
|
|
33
|
-
"repeatedlyFailingTestsCount" INTEGER NOT NULL DEFAULT 0,
|
|
34
|
-
"flakyTestsCount" INTEGER NOT NULL DEFAULT 0,
|
|
35
|
-
"suitesNotExecutedRecentlyCount" INTEGER NOT NULL DEFAULT 0,
|
|
36
|
-
"lastUpdatedAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
37
|
-
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
-- CreateIndex
|
|
41
|
-
CREATE UNIQUE INDEX "TestCaseMetrics_testCaseId_key" ON "TestCaseMetrics"("testCaseId");
|
|
42
|
-
|
|
43
|
-
-- CreateIndex
|
|
44
|
-
CREATE INDEX "TestCaseMetrics_isRepeatedlyFailing_idx" ON "TestCaseMetrics"("isRepeatedlyFailing");
|
|
45
|
-
|
|
46
|
-
-- CreateIndex
|
|
47
|
-
CREATE INDEX "TestCaseMetrics_isFlaky_idx" ON "TestCaseMetrics"("isFlaky");
|
|
48
|
-
|
|
49
|
-
-- CreateIndex
|
|
50
|
-
CREATE UNIQUE INDEX "TestSuiteMetrics_testSuiteId_key" ON "TestSuiteMetrics"("testSuiteId");
|
|
51
|
-
|
|
52
|
-
-- CreateIndex
|
|
53
|
-
CREATE INDEX "TestSuiteMetrics_lastExecutedAt_idx" ON "TestSuiteMetrics"("lastExecutedAt");
|
|
54
|
-
|
|
55
|
-
-- CreateIndex
|
|
56
|
-
CREATE INDEX "TestRun_completedAt_idx" ON "TestRun"("completedAt");
|
|
57
|
-
|
|
58
|
-
-- CreateIndex
|
|
59
|
-
CREATE INDEX "TestRun_result_idx" ON "TestRun"("result");
|
|
1
|
+
-- CreateTable
|
|
2
|
+
CREATE TABLE "TestCaseMetrics" (
|
|
3
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
4
|
+
"testCaseId" TEXT NOT NULL,
|
|
5
|
+
"isRepeatedlyFailing" BOOLEAN NOT NULL DEFAULT false,
|
|
6
|
+
"isFlaky" BOOLEAN NOT NULL DEFAULT false,
|
|
7
|
+
"consecutiveFailures" INTEGER NOT NULL DEFAULT 0,
|
|
8
|
+
"failureRate" REAL NOT NULL DEFAULT 0,
|
|
9
|
+
"totalRecentRuns" INTEGER NOT NULL DEFAULT 0,
|
|
10
|
+
"failedRecentRuns" INTEGER NOT NULL DEFAULT 0,
|
|
11
|
+
"lastExecutedAt" DATETIME,
|
|
12
|
+
"lastFailedAt" DATETIME,
|
|
13
|
+
"lastPassedAt" DATETIME,
|
|
14
|
+
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
15
|
+
"updatedAt" DATETIME NOT NULL,
|
|
16
|
+
CONSTRAINT "TestCaseMetrics_testCaseId_fkey" FOREIGN KEY ("testCaseId") REFERENCES "TestCase" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
-- CreateTable
|
|
20
|
+
CREATE TABLE "TestSuiteMetrics" (
|
|
21
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
22
|
+
"testSuiteId" TEXT NOT NULL,
|
|
23
|
+
"lastExecutedAt" DATETIME,
|
|
24
|
+
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
25
|
+
"updatedAt" DATETIME NOT NULL,
|
|
26
|
+
CONSTRAINT "TestSuiteMetrics_testSuiteId_fkey" FOREIGN KEY ("testSuiteId") REFERENCES "TestSuite" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
-- CreateTable
|
|
30
|
+
CREATE TABLE "DashboardMetrics" (
|
|
31
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
32
|
+
"failedRecentRunsCount" INTEGER NOT NULL DEFAULT 0,
|
|
33
|
+
"repeatedlyFailingTestsCount" INTEGER NOT NULL DEFAULT 0,
|
|
34
|
+
"flakyTestsCount" INTEGER NOT NULL DEFAULT 0,
|
|
35
|
+
"suitesNotExecutedRecentlyCount" INTEGER NOT NULL DEFAULT 0,
|
|
36
|
+
"lastUpdatedAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
37
|
+
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
-- CreateIndex
|
|
41
|
+
CREATE UNIQUE INDEX "TestCaseMetrics_testCaseId_key" ON "TestCaseMetrics"("testCaseId");
|
|
42
|
+
|
|
43
|
+
-- CreateIndex
|
|
44
|
+
CREATE INDEX "TestCaseMetrics_isRepeatedlyFailing_idx" ON "TestCaseMetrics"("isRepeatedlyFailing");
|
|
45
|
+
|
|
46
|
+
-- CreateIndex
|
|
47
|
+
CREATE INDEX "TestCaseMetrics_isFlaky_idx" ON "TestCaseMetrics"("isFlaky");
|
|
48
|
+
|
|
49
|
+
-- CreateIndex
|
|
50
|
+
CREATE UNIQUE INDEX "TestSuiteMetrics_testSuiteId_key" ON "TestSuiteMetrics"("testSuiteId");
|
|
51
|
+
|
|
52
|
+
-- CreateIndex
|
|
53
|
+
CREATE INDEX "TestSuiteMetrics_lastExecutedAt_idx" ON "TestSuiteMetrics"("lastExecutedAt");
|
|
54
|
+
|
|
55
|
+
-- CreateIndex
|
|
56
|
+
CREATE INDEX "TestRun_completedAt_idx" ON "TestRun"("completedAt");
|
|
57
|
+
|
|
58
|
+
-- CreateIndex
|
|
59
|
+
CREATE INDEX "TestRun_result_idx" ON "TestRun"("result");
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
-- RedefineTables
|
|
2
|
-
PRAGMA defer_foreign_keys=ON;
|
|
3
|
-
PRAGMA foreign_keys=OFF;
|
|
4
|
-
CREATE TABLE "new_TemplateTestCaseStepParameter" (
|
|
5
|
-
"id" TEXT NOT NULL PRIMARY KEY,
|
|
6
|
-
"name" TEXT NOT NULL,
|
|
7
|
-
"defaultValue" TEXT NOT NULL,
|
|
8
|
-
"order" INTEGER NOT NULL,
|
|
9
|
-
"testCaseStepId" TEXT NOT NULL,
|
|
10
|
-
"locatorId" TEXT,
|
|
11
|
-
"type" TEXT NOT NULL,
|
|
12
|
-
"defaultLocatorId" TEXT,
|
|
13
|
-
CONSTRAINT "TemplateTestCaseStepParameter_defaultLocatorId_fkey" FOREIGN KEY ("defaultLocatorId") REFERENCES "Locator" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
|
|
14
|
-
CONSTRAINT "TemplateTestCaseStepParameter_testCaseStepId_fkey" FOREIGN KEY ("testCaseStepId") REFERENCES "TemplateTestCaseStep" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
15
|
-
);
|
|
16
|
-
INSERT INTO "new_TemplateTestCaseStepParameter" ("defaultLocatorId", "defaultValue", "id", "locatorId", "name", "order", "testCaseStepId", "type") SELECT "defaultLocatorId", "defaultValue", "id", "locatorId", "name", "order", "testCaseStepId", "type" FROM "TemplateTestCaseStepParameter";
|
|
17
|
-
DROP TABLE "TemplateTestCaseStepParameter";
|
|
18
|
-
ALTER TABLE "new_TemplateTestCaseStepParameter" RENAME TO "TemplateTestCaseStepParameter";
|
|
19
|
-
CREATE TABLE "new_TestCaseStepParameter" (
|
|
20
|
-
"id" TEXT NOT NULL PRIMARY KEY,
|
|
21
|
-
"name" TEXT NOT NULL,
|
|
22
|
-
"value" TEXT NOT NULL,
|
|
23
|
-
"order" INTEGER NOT NULL,
|
|
24
|
-
"testCaseStepId" TEXT NOT NULL,
|
|
25
|
-
"locatorId" TEXT,
|
|
26
|
-
"type" TEXT NOT NULL,
|
|
27
|
-
CONSTRAINT "TestCaseStepParameter_locatorId_fkey" FOREIGN KEY ("locatorId") REFERENCES "Locator" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
|
|
28
|
-
CONSTRAINT "TestCaseStepParameter_testCaseStepId_fkey" FOREIGN KEY ("testCaseStepId") REFERENCES "TestCaseStep" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
29
|
-
);
|
|
30
|
-
INSERT INTO "new_TestCaseStepParameter" ("id", "locatorId", "name", "order", "testCaseStepId", "type", "value") SELECT "id", "locatorId", "name", "order", "testCaseStepId", "type", "value" FROM "TestCaseStepParameter";
|
|
31
|
-
DROP TABLE "TestCaseStepParameter";
|
|
32
|
-
ALTER TABLE "new_TestCaseStepParameter" RENAME TO "TestCaseStepParameter";
|
|
33
|
-
PRAGMA foreign_keys=ON;
|
|
34
|
-
PRAGMA defer_foreign_keys=OFF;
|
|
1
|
+
-- RedefineTables
|
|
2
|
+
PRAGMA defer_foreign_keys=ON;
|
|
3
|
+
PRAGMA foreign_keys=OFF;
|
|
4
|
+
CREATE TABLE "new_TemplateTestCaseStepParameter" (
|
|
5
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
6
|
+
"name" TEXT NOT NULL,
|
|
7
|
+
"defaultValue" TEXT NOT NULL,
|
|
8
|
+
"order" INTEGER NOT NULL,
|
|
9
|
+
"testCaseStepId" TEXT NOT NULL,
|
|
10
|
+
"locatorId" TEXT,
|
|
11
|
+
"type" TEXT NOT NULL,
|
|
12
|
+
"defaultLocatorId" TEXT,
|
|
13
|
+
CONSTRAINT "TemplateTestCaseStepParameter_defaultLocatorId_fkey" FOREIGN KEY ("defaultLocatorId") REFERENCES "Locator" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
|
|
14
|
+
CONSTRAINT "TemplateTestCaseStepParameter_testCaseStepId_fkey" FOREIGN KEY ("testCaseStepId") REFERENCES "TemplateTestCaseStep" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
15
|
+
);
|
|
16
|
+
INSERT INTO "new_TemplateTestCaseStepParameter" ("defaultLocatorId", "defaultValue", "id", "locatorId", "name", "order", "testCaseStepId", "type") SELECT "defaultLocatorId", "defaultValue", "id", "locatorId", "name", "order", "testCaseStepId", "type" FROM "TemplateTestCaseStepParameter";
|
|
17
|
+
DROP TABLE "TemplateTestCaseStepParameter";
|
|
18
|
+
ALTER TABLE "new_TemplateTestCaseStepParameter" RENAME TO "TemplateTestCaseStepParameter";
|
|
19
|
+
CREATE TABLE "new_TestCaseStepParameter" (
|
|
20
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
21
|
+
"name" TEXT NOT NULL,
|
|
22
|
+
"value" TEXT NOT NULL,
|
|
23
|
+
"order" INTEGER NOT NULL,
|
|
24
|
+
"testCaseStepId" TEXT NOT NULL,
|
|
25
|
+
"locatorId" TEXT,
|
|
26
|
+
"type" TEXT NOT NULL,
|
|
27
|
+
CONSTRAINT "TestCaseStepParameter_locatorId_fkey" FOREIGN KEY ("locatorId") REFERENCES "Locator" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
|
|
28
|
+
CONSTRAINT "TestCaseStepParameter_testCaseStepId_fkey" FOREIGN KEY ("testCaseStepId") REFERENCES "TestCaseStep" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
29
|
+
);
|
|
30
|
+
INSERT INTO "new_TestCaseStepParameter" ("id", "locatorId", "name", "order", "testCaseStepId", "type", "value") SELECT "id", "locatorId", "name", "order", "testCaseStepId", "type", "value" FROM "TestCaseStepParameter";
|
|
31
|
+
DROP TABLE "TestCaseStepParameter";
|
|
32
|
+
ALTER TABLE "new_TestCaseStepParameter" RENAME TO "TestCaseStepParameter";
|
|
33
|
+
PRAGMA foreign_keys=ON;
|
|
34
|
+
PRAGMA defer_foreign_keys=OFF;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
ALTER TABLE "ReportStep" ADD COLUMN "screenshotPath" TEXT;
|
|
1
|
+
ALTER TABLE "ReportStep" ADD COLUMN "screenshotPath" TEXT;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
ALTER TABLE "TestCaseStep" ADD COLUMN "flowNodeId" TEXT;
|
|
2
|
+
UPDATE "TestCaseStep" SET "flowNodeId" = "id" WHERE "flowNodeId" IS NULL;
|
|
3
|
+
ALTER TABLE "TemplateTestCaseStep" ADD COLUMN "flowNodeId" TEXT;
|
|
4
|
+
UPDATE "TemplateTestCaseStep" SET "flowNodeId" = "id" WHERE "flowNodeId" IS NULL;
|
|
5
|
+
|
|
6
|
+
CREATE TABLE "TestCaseFlowBlock" (
|
|
7
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
8
|
+
"name" TEXT NOT NULL,
|
|
9
|
+
"testCaseId" TEXT NOT NULL,
|
|
10
|
+
"order" INTEGER NOT NULL,
|
|
11
|
+
CONSTRAINT "TestCaseFlowBlock_testCaseId_fkey" FOREIGN KEY ("testCaseId") REFERENCES "TestCase" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
CREATE TABLE "TestCaseFlowBlockNode" (
|
|
15
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
16
|
+
"flowNodeId" TEXT NOT NULL,
|
|
17
|
+
"flowBlockId" TEXT NOT NULL,
|
|
18
|
+
CONSTRAINT "TestCaseFlowBlockNode_flowBlockId_fkey" FOREIGN KEY ("flowBlockId") REFERENCES "TestCaseFlowBlock" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
CREATE TABLE "TemplateTestCaseFlowBlock" (
|
|
22
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
23
|
+
"name" TEXT NOT NULL,
|
|
24
|
+
"templateTestCaseId" TEXT NOT NULL,
|
|
25
|
+
"order" INTEGER NOT NULL,
|
|
26
|
+
CONSTRAINT "TemplateTestCaseFlowBlock_templateTestCaseId_fkey" FOREIGN KEY ("templateTestCaseId") REFERENCES "TemplateTestCase" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
CREATE TABLE "TemplateTestCaseFlowBlockNode" (
|
|
30
|
+
"id" TEXT NOT NULL PRIMARY KEY,
|
|
31
|
+
"flowNodeId" TEXT NOT NULL,
|
|
32
|
+
"flowBlockId" TEXT NOT NULL,
|
|
33
|
+
CONSTRAINT "TemplateTestCaseFlowBlockNode_flowBlockId_fkey" FOREIGN KEY ("flowBlockId") REFERENCES "TemplateTestCaseFlowBlock" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
|
34
|
+
);
|
|
@@ -94,10 +94,12 @@ model TestCase {
|
|
|
94
94
|
TestRunTestCase TestRunTestCase[]
|
|
95
95
|
tags Tag[]
|
|
96
96
|
metrics TestCaseMetrics?
|
|
97
|
+
flowBlocks TestCaseFlowBlock[]
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
model TestCaseStep {
|
|
100
101
|
id String @id @default(uuid())
|
|
102
|
+
flowNodeId String?
|
|
101
103
|
testCaseId String
|
|
102
104
|
order Int
|
|
103
105
|
gherkinStep String
|
|
@@ -109,6 +111,22 @@ model TestCaseStep {
|
|
|
109
111
|
parameters TestCaseStepParameter[]
|
|
110
112
|
}
|
|
111
113
|
|
|
114
|
+
model TestCaseFlowBlock {
|
|
115
|
+
id String @id @default(uuid())
|
|
116
|
+
name String
|
|
117
|
+
testCaseId String
|
|
118
|
+
order Int
|
|
119
|
+
testCase TestCase @relation(fields: [testCaseId], references: [id], onDelete: Cascade)
|
|
120
|
+
nodes TestCaseFlowBlockNode[]
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
model TestCaseFlowBlockNode {
|
|
124
|
+
id String @id @default(uuid())
|
|
125
|
+
flowNodeId String
|
|
126
|
+
flowBlockId String
|
|
127
|
+
flowBlock TestCaseFlowBlock @relation(fields: [flowBlockId], references: [id], onDelete: Cascade)
|
|
128
|
+
}
|
|
129
|
+
|
|
112
130
|
model TemplateTestCase {
|
|
113
131
|
id String @id @default(uuid())
|
|
114
132
|
name String
|
|
@@ -116,10 +134,12 @@ model TemplateTestCase {
|
|
|
116
134
|
createdAt DateTime @default(now())
|
|
117
135
|
updatedAt DateTime @updatedAt
|
|
118
136
|
steps TemplateTestCaseStep[]
|
|
137
|
+
flowBlocks TemplateTestCaseFlowBlock[]
|
|
119
138
|
}
|
|
120
139
|
|
|
121
140
|
model TemplateTestCaseStep {
|
|
122
141
|
id String @id @default(uuid())
|
|
142
|
+
flowNodeId String?
|
|
123
143
|
order Int
|
|
124
144
|
gherkinStep String
|
|
125
145
|
icon TemplateStepIcon
|
|
@@ -131,6 +151,22 @@ model TemplateTestCaseStep {
|
|
|
131
151
|
parameters TemplateTestCaseStepParameter[]
|
|
132
152
|
}
|
|
133
153
|
|
|
154
|
+
model TemplateTestCaseFlowBlock {
|
|
155
|
+
id String @id @default(uuid())
|
|
156
|
+
name String
|
|
157
|
+
templateTestCaseId String
|
|
158
|
+
order Int
|
|
159
|
+
templateTestCase TemplateTestCase @relation(fields: [templateTestCaseId], references: [id], onDelete: Cascade)
|
|
160
|
+
nodes TemplateTestCaseFlowBlockNode[]
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
model TemplateTestCaseFlowBlockNode {
|
|
164
|
+
id String @id @default(uuid())
|
|
165
|
+
flowNodeId String
|
|
166
|
+
flowBlockId String
|
|
167
|
+
flowBlock TemplateTestCaseFlowBlock @relation(fields: [flowBlockId], references: [id], onDelete: Cascade)
|
|
168
|
+
}
|
|
169
|
+
|
|
134
170
|
model TemplateTestCaseStepParameter {
|
|
135
171
|
id String @id @default(uuid())
|
|
136
172
|
name String
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Applies repo line-ending policy to the local clone so `git diff` matches
|
|
4
|
+
* .gitattributes / EditorConfig / Prettier (LF everywhere).
|
|
5
|
+
*
|
|
6
|
+
* Usage:
|
|
7
|
+
* node scripts/configure-git-line-endings.mjs
|
|
8
|
+
* node scripts/configure-git-line-endings.mjs --renormalize
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { execSync } from 'node:child_process'
|
|
12
|
+
import { existsSync } from 'node:fs'
|
|
13
|
+
import { dirname, join } from 'node:path'
|
|
14
|
+
import { fileURLToPath } from 'node:url'
|
|
15
|
+
|
|
16
|
+
const scriptDir = dirname(fileURLToPath(import.meta.url))
|
|
17
|
+
const repoRoot = join(scriptDir, '..')
|
|
18
|
+
const gitConfigInclude = '../.gitconfig.appraise'
|
|
19
|
+
const quiet = process.argv.includes('--quiet')
|
|
20
|
+
|
|
21
|
+
function log(message) {
|
|
22
|
+
if (!quiet) {
|
|
23
|
+
console.log(message)
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function runGit(args, options = {}) {
|
|
28
|
+
const stdio = options.stdio ?? ['pipe', 'pipe', 'pipe']
|
|
29
|
+
const result = execSync(['git', ...args].join(' '), {
|
|
30
|
+
cwd: repoRoot,
|
|
31
|
+
encoding: 'utf8',
|
|
32
|
+
stdio,
|
|
33
|
+
...options,
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
if (stdio !== 'inherit' && result != null) {
|
|
37
|
+
return String(result).trim()
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return ''
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function isGitRepository() {
|
|
44
|
+
return existsSync(join(repoRoot, '.git'))
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function getLocalConfig(key) {
|
|
48
|
+
try {
|
|
49
|
+
return runGit(['config', '--local', '--get', key])
|
|
50
|
+
} catch {
|
|
51
|
+
return null
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function setLocalConfig(key, value) {
|
|
56
|
+
runGit(['config', '--local', key, value], { stdio: 'inherit' })
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function ensureGitInclude() {
|
|
60
|
+
const current = getLocalConfig('include.path')
|
|
61
|
+
if (current === gitConfigInclude) {
|
|
62
|
+
return false
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
setLocalConfig('include.path', gitConfigInclude)
|
|
66
|
+
log(`Linked local git config: include.path = ${gitConfigInclude}`)
|
|
67
|
+
return true
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function main() {
|
|
71
|
+
if (!isGitRepository()) {
|
|
72
|
+
log('Not a git repository; skipping git line-ending configuration.')
|
|
73
|
+
return
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const updatedInclude = ensureGitInclude()
|
|
77
|
+
|
|
78
|
+
if (!updatedInclude && !quiet) {
|
|
79
|
+
log('Git line-ending settings already use .gitconfig.appraise (LF, autocrlf=false).')
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (process.argv.includes('--renormalize')) {
|
|
83
|
+
log('Staging removals so renormalize does not fail on deleted tracked paths...')
|
|
84
|
+
runGit(['add', '-u'], { stdio: 'inherit' })
|
|
85
|
+
log('Renormalizing line endings in the index (may update staged content)...')
|
|
86
|
+
runGit(['add', '--renormalize', '.'], { stdio: 'inherit' })
|
|
87
|
+
log('Renormalize complete. Review with: git status')
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
main()
|
|
@@ -65,7 +65,11 @@ function getRunArgs(packageManager: 'npm' | 'pnpm' | 'yarn' | 'bun', scriptName:
|
|
|
65
65
|
return ['run', scriptName]
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
async function runScript(
|
|
68
|
+
async function runScript(
|
|
69
|
+
projectRoot: string,
|
|
70
|
+
packageManager: 'npm' | 'pnpm' | 'yarn' | 'bun',
|
|
71
|
+
scriptName: string,
|
|
72
|
+
): Promise<void> {
|
|
69
73
|
await new Promise<void>((resolve, reject) => {
|
|
70
74
|
const child = spawn(packageManager, getRunArgs(packageManager, scriptName), {
|
|
71
75
|
cwd: projectRoot,
|
|
@@ -54,6 +54,18 @@ describe('parseGroupJSDoc', () => {
|
|
|
54
54
|
expect(parseGroupJSDoc(content)?.name).toBe('Imported Group')
|
|
55
55
|
})
|
|
56
56
|
|
|
57
|
+
it('parses when formatted multiline imports are before jsdoc', () => {
|
|
58
|
+
const content = `import {
|
|
59
|
+
x,
|
|
60
|
+
y,
|
|
61
|
+
} from 'z'
|
|
62
|
+
/**
|
|
63
|
+
* @name Multiline Imported Group
|
|
64
|
+
* @type ACTION
|
|
65
|
+
*/`
|
|
66
|
+
expect(parseGroupJSDoc(content)?.name).toBe('Multiline Imported Group')
|
|
67
|
+
})
|
|
68
|
+
|
|
57
69
|
it('returns null for malformed close', () => {
|
|
58
70
|
const content = `/**
|
|
59
71
|
* @name Broken
|