From e1df64d5920883b4718b8eaaebf3225dd6c900f6 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 27 Mar 2024 15:35:07 -0700 Subject: [PATCH] Reformat all project files to use the prettier config file. --- .prettierrc.js | 14 +- _reference/Test_CDK_Acct Config.json | 2 +- _reference/test-ecoystem.config.js | 34 +- client/craco.config.js | 79 +- client/cypress.config.js | 28 +- .../e2e/01-General Render/01-home.cy.js | 37 +- .../cypress/e2e/1-getting-started/todo.cy.js | 221 +- .../e2e/2-advanced-examples/actions.cy.js | 459 +- .../e2e/2-advanced-examples/aliasing.cy.js | 54 +- .../e2e/2-advanced-examples/assertions.cy.js | 314 +- .../e2e/2-advanced-examples/connectors.cy.js | 167 +- .../e2e/2-advanced-examples/cookies.cy.js | 112 +- .../e2e/2-advanced-examples/cypress_api.cy.js | 330 +- .../e2e/2-advanced-examples/files.cy.js | 130 +- .../2-advanced-examples/local_storage.cy.js | 94 +- .../e2e/2-advanced-examples/location.cy.js | 54 +- .../e2e/2-advanced-examples/misc.cy.js | 162 +- .../e2e/2-advanced-examples/navigation.cy.js | 86 +- .../network_requests.cy.js | 290 +- .../e2e/2-advanced-examples/querying.cy.js | 160 +- .../spies_stubs_clocks.cy.js | 315 +- .../e2e/2-advanced-examples/traversal.cy.js | 178 +- .../e2e/2-advanced-examples/utilities.cy.js | 174 +- .../e2e/2-advanced-examples/viewport.cy.js | 96 +- .../e2e/2-advanced-examples/waiting.cy.js | 50 +- .../e2e/2-advanced-examples/window.cy.js | 34 +- client/cypress/fixtures/profile.json | 2 +- client/cypress/plugins/index.js | 6 +- client/cypress/support/e2e.js | 2 +- client/cypress/tsconfig.json | 8 +- client/dev-dist/registerSW.js | 3 +- client/dev-dist/sw.js | 70 +- client/dev-dist/workbox-b5f7729d.js | 6336 ++++++------ client/src/App/App.container.jsx | 69 +- client/src/App/App.jsx | 410 +- client/src/App/App.styles.scss | 1 - client/src/App/themeProvider.js | 67 +- .../src/assets/promanager/ios/Contents.json | 2 +- client/src/components/PrivateRoute.jsx | 22 +- client/src/components/_test/test.page.jsx | 41 +- .../accounting-payables-table.component.jsx | 386 +- .../accounting-payments-table.component.jsx | 392 +- ...accounting-receivables-table.component.jsx | 418 +- .../src/components/alert/alert.component.jsx | 4 +- .../components/alert/alert.component.test.js | 24 +- .../allocations-assignment.component.jsx | 111 +- .../allocations-assignment.component.test.js | 52 +- .../allocations-assignment.container.jsx | 80 +- .../allocations-bulk-assignment.component.jsx | 104 +- .../allocations-bulk-assignment.container.jsx | 81 +- .../allocations-employee-label.component.jsx | 22 +- .../allocations-employee-label.container.jsx | 47 +- .../audit-trail-list.component.jsx | 150 +- .../audit-trail-list.container.jsx | 60 +- .../email-audit-trail-list.component.jsx | 114 +- .../audit-trail-values.component.jsx | 46 +- .../barcode-popup/barcode-popup.component.jsx | 30 +- .../bill-cm-returns-table.component.jsx | 242 +- .../bill-cm-returns-table.styles.scss | 2 +- .../bill-delete-button.component.jsx | 141 +- .../bill-detail-edit-component.jsx | 419 +- .../bill-detail-edit-return.component.jsx | 329 +- .../bill-detail-edit.container.jsx | 60 +- .../bill-enter-modal.container.jsx | 831 +- .../bill-form-lines-extended.component.jsx | 224 +- ...form-lines.extended.formitem.component.jsx | 468 +- .../bill-form/bill-form.component.jsx | 258 +- .../bill-form/bill-form.container.jsx | 120 +- .../bill-form/bill-form.lines.component.jsx | 1507 ++- .../bill-form/bill-form.totals.utility.js | 69 +- .../bill-inventory-table.component.jsx | 290 +- .../bill-inventory-table.styles.scss | 2 +- .../bill-line-search-select.component.jsx | 149 +- .../bill-mark-exported-button.component.jsx | 156 +- .../bill-print-button.component.jsx | 68 +- .../bill-reexport-button.component.jsx | 121 +- .../billline-add-inventory.component.jsx | 257 +- .../bills-list-table.component.jsx | 409 +- .../bills-vendors-list.component.jsx | 211 +- .../breadcrumbs/breadcrumbs.component.jsx | 105 +- .../ca-bc-etf-table-modal.container.jsx | 154 +- .../ca-bc-etf-table.modal.component.jsx | 62 +- .../ca-bc-pvrt-calculator.component.jsx | 83 +- .../card-payment-modal.component..jsx | 631 +- .../card-payment-modal.container..jsx | 79 +- .../chat-affix/chat-affix.container.jsx | 169 +- .../chat-archive-button.component.jsx | 46 +- .../chat-conversation-list.component.jsx | 181 +- ...chat-conversation-title-tags.component.jsx | 98 +- .../chat-conversation-title.component.jsx | 30 +- .../chat-conversation.component.jsx | 35 +- .../chat-conversation.container.jsx | 140 +- .../chat-label/chat-label.component.jsx | 117 +- .../chat-media-selector.component.jsx | 148 +- .../chat-message-list.component.jsx | 181 +- .../chat-new-conversation.component.jsx | 82 +- .../chat-open-button.component.jsx | 69 +- .../chat-popup/chat-popup.component.jsx | 199 +- .../chat-presets/chat-presets.component.jsx | 52 +- .../chat-print-button.component.jsx | 70 +- .../chat-send-message.component.jsx | 176 +- .../chat-tag-ro/chat-tag-ro.component.jsx | 70 +- .../chat-tag-ro/chat-tag-ro.container.jsx | 102 +- .../checkbox/checkbox.component.jsx | 36 +- .../config-form-components.component.jsx | 26 +- .../config-form-types.js | 10 +- .../rate/rate.component.jsx | 34 +- .../slider/slider.component.jsx | 34 +- .../text/text.component.jsx | 34 +- .../textarea/textarea.component.jsx | 34 +- .../conflict/conflict.component.jsx | 56 +- .../contract-cars/contract-cars.component.jsx | 263 +- .../contract-cars/contract-cars.container.jsx | 58 +- .../contract-convert-to-ro.component.jsx | 746 +- .../contract-courtesy-car-block.component.jsx | 50 +- .../contract-form-job-prefill.component.jsx | 76 +- .../contract-form/contract-form.component.jsx | 641 +- .../contract-job-block.component.jsx | 48 +- .../contract-jobs/contract-jobs.component.jsx | 330 +- .../contract-jobs/contract-jobs.container.jsx | 58 +- ...ntract-license-decode-button.component.jsx | 196 +- .../contract-status-select.component.jsx | 52 +- .../contracts-find-modal.component.jsx | 54 +- .../contracts-find-modal.container.jsx | 274 +- .../contracts-list.component.jsx | 372 +- ...ontracts-rates-change-button.component.jsx | 56 +- .../courtesy-car-contract-list.component.jsx | 176 +- .../courtesy-car-form.component.jsx | 638 +- .../courtesy-car-fuel-select.component.jsx | 120 +- ...ourtesy-car-readiness-select.component.jsx | 56 +- .../courtesy-car-return-modal.component.jsx | 86 +- .../courtesy-car-return-modal.container.jsx | 141 +- .../courtesy-car-status-select.component.jsx | 66 +- .../courtesy-cars-list.component.jsx | 529 +- .../csi-response-form.container.jsx | 90 +- .../csi-response-list-paginated.component.jsx | 230 +- .../job-lifecycle-dashboard.component.jsx | 305 +- .../monthly-employee-efficiency.component.jsx | 235 +- .../monthly-job-costing.component.jsx | 276 +- .../monthly-labor-sales.component.jsx | 239 +- .../monthly-parts-sales.component.jsx | 232 +- .../monthly-revenue-graph.component.jsx | 117 +- .../projected-monthly-sales.component.jsx | 63 +- .../refresh-required.component.jsx | 40 +- .../scheduled-in-today.component.jsx | 199 +- .../scheduled-out-today.component.jsx | 786 +- .../total-production-dollars.component.jsx | 38 +- .../total-production-hours.component.jsx | 88 +- .../dashboard-grid.component.jsx | 521 +- .../dashboard-grid/dashboard-grid.utils.js | 2 +- .../data-label/data-label.component.jsx | 78 +- .../dms-allocations-summary-ap.component.jsx | 267 +- .../dms-allocations-summary.component.jsx | 242 +- .../dms-cdk-makes/dms-cdk-makes.component.jsx | 185 +- .../dms-cdk-makes.refetch.component.jsx | 52 +- .../dms-customer-selector.component.jsx | 268 +- .../dms-log-events.component.jsx | 82 +- .../dms-post-form/dms-post-form.component.jsx | 780 +- .../document-editor.component.jsx | 177 +- .../document-editor.container.jsx | 87 +- .../documents-local-upload.component.jsx | 116 +- .../documents-local-upload.utility.js | 132 +- .../documents-upload.component.jsx | 196 +- .../documents-upload.utility.js | 330 +- .../email-documents.component.jsx | 111 +- .../email-overlay/email-overlay.component.jsx | 447 +- .../email-overlay/email-overlay.container.jsx | 424 +- .../email-test/email-test-component.jsx | 184 +- .../employee-search-select.component.jsx | 64 +- .../employee-team-search-select.component.jsx | 52 +- .../error-boundary.component.jsx | 240 +- client/src/components/eula/eula.component.jsx | 469 +- client/src/components/eula/eula.styles.scss | 2 +- .../export-logs-count-display.component.jsx | 38 +- .../feature-wrapper.component.jsx | 28 +- .../form-date-picker.component.jsx | 210 +- .../form-date-time-picker.component.jsx | 73 +- .../form-fields-changed-alert.component.jsx | 108 +- ...form-input-number-calculator.component.jsx | 193 +- .../colorpicker-form-item.component.jsx | 28 +- .../currency-form-item.component.jsx | 24 +- .../email-form-item.component.jsx | 36 +- .../labor-type-form-item.component.jsx | 12 +- .../part-type-form-item.component.jsx | 12 +- .../phone-form-item.component.jsx | 40 +- .../read-only-form-item.component.jsx | 48 +- .../form-list-move-arrows.component.jsx | 34 +- .../global-loading-bar.component.jsx | 90 +- .../global-search-os.component.jsx | 378 +- .../global-search/global-search.component.jsx | 339 +- .../components/header/header.component.jsx | 447 +- .../components/header/header.container.jsx | 36 +- .../help-rescue/help-rescue.component.jsx | 94 +- .../indefinite-loading.component.jsx | 78 +- .../inventory-bill-ro.component.jsx | 109 +- .../inventory-line-delete.component.jsx | 113 +- .../inventory-list.component.jsx | 380 +- .../inventory-list.container.jsx | 81 +- .../inventory-upsert-modal.component.jsx | 95 +- .../inventory-upsert-modal.container.jsx | 198 +- .../job-3rd-party-modal.component.jsx | 375 +- .../job-at-change/job-at-change.component.jsx | 101 +- .../schedule-event.color.component.jsx | 112 +- .../schedule-event.component.jsx | 672 +- .../schedule-event.container.jsx | 133 +- .../schedule-event.note.component.jsx | 119 +- .../job-audit-trail.component.jsx | 268 +- .../job-bills-total.component.jsx | 535 +- .../job-calculate-totals.component.jsx | 106 +- .../job-checklist-form.component.jsx | 565 +- .../job-checklist-template-list.component.jsx | 138 +- .../job-checklist-display.component.jsx | 14 +- .../job-checklist/job-checklist.component.jsx | 26 +- .../job-costing-modal.component.jsx | 43 +- .../job-costing-modal.container.jsx | 103 +- .../job-costing-modal.pie.component.jsx | 108 +- .../job-costing-parts-table.component.jsx | 210 +- .../job-costing-statistics.component.jsx | 86 +- .../job-create-iou.component.jsx | 165 +- .../job-damage-visual.component.jsx | 1197 +-- .../job-detail-cards.component.jsx | 250 +- .../job-detail-cards.damage.component.jsx | 22 +- .../job-detail-cards.dates.component.jsx | 367 +- .../job-detail-cards.documents.component.jsx | 54 +- .../job-detail-cards.insurance.component.jsx | 44 +- .../job-detail-cards.notes.component.jsx | 60 +- .../job-detail-cards.parts.component.jsx | 193 +- .../job-detail-cards.template.component.jsx | 58 +- .../job-detail-cards.totals.component.jsx | 58 +- .../job-detail-cards.vehicle.component.jsx | 30 +- .../job-lines-expander.component.jsx | 243 +- .../job-lines-part-price-change.component.jsx | 165 +- .../job-detail-lines/job-lines.component.jsx | 485 +- .../job-detail-lines/job-lines.container.jsx | 63 +- .../job-employee-assignments.component.jsx | 354 +- .../job-employee-assignments.container.jsx | 154 +- .../job-lifecycle/job-lifecycle.component.jsx | 489 +- .../job-line-bulk-assign.component.jsx | 241 +- .../job-line-convert-to-labor.component.jsx | 386 +- .../job-line-dispatch-button.component.jsx | 278 +- .../job-line-location-popup.component.jsx | 144 +- .../job-line-note-popup.component.jsx | 136 +- .../job-line-status-popup.component.jsx | 133 +- .../job-line-team-assignmnent.component.jsx | 178 +- .../job-lines-bill-reference.component.jsx | 26 +- .../job-lines-preset-button.component.jsx | 79 +- .../job-lines-upsert-modal.component.jsx | 468 +- .../job-lines-upsert-modal.container.jsx | 246 +- .../job-parts-queue-count.component.jsx | 132 +- .../job-payments/job-payments.component.jsx | 426 +- .../job-profile-data-warning.component.jsx | 21 +- ...b-reconciliation-bills-table.component.jsx | 198 +- .../job-reconciliation-modal.component.jsx | 106 +- .../job-reconciliation.modal.container.jsx | 93 +- ...b-reconciliation-parts-table.component.jsx | 229 +- .../job-reconciliation-totals.component.jsx | 183 +- .../job-reconciliation-totals.utility.js | 179 +- .../job-remove-from-parts-queue.component.jsx | 62 +- .../job-scoreboard-add-button.component.jsx | 340 +- .../job-search-select.component.jsx | 196 +- .../job-send-parts-price-change.component.jsx | 54 +- .../job-sync-button.component.jsx | 38 +- .../job-totals-table.component.jsx | 148 +- .../job-totals.table.labor.component.jsx | 368 +- .../job-totals.table.other.component.jsx | 191 +- .../job-totals.table.parts.component.jsx | 228 +- .../job-totals.table.totals.component.jsx | 154 +- .../jobs-admin-change.status.component.jsx | 98 +- .../jobs-admin-class.component.jsx | 133 +- .../jobs-admin-dates.component.jsx | 292 +- .../jobs-admin-delete-intake.component.jsx | 119 +- .../jobs-admin-mark-reexport.component.jsx | 271 +- ...jobs-admin-owner-reassociate.component.jsx | 111 +- .../jobs-admin-remove-ar.component.jsx | 98 +- .../jobs-admin-unvoid.component.jsx | 106 +- ...bs-admin-vehicle-reassociate.component.jsx | 111 +- .../jobs-available-scan.component.jsx | 279 +- ...jobs-available-supplement.estlines.util.js | 121 +- .../jobs-available-supplement.headerfields.js | 460 +- .../jobs-available-table.component.jsx | 438 +- .../jobs-available-table.container.jsx | 1108 +- .../jobs-change-status.component.jsx | 190 +- .../jobs-close-auto-allocate.component.jsx | 156 +- .../jobs-close-export-button.component.jsx | 433 +- .../jobs-close-lines.component.jsx | 384 +- .../jobs-convert-button.component.jsx | 477 +- .../jobs-create-jobs-info.component.jsx | 639 +- .../jobs-create-owner-info.component.jsx | 79 +- .../jobs-create-owner-info.container.jsx | 29 +- .../jobs-create-owner-info.new.component.jsx | 298 +- ...obs-create-owner-info.search.component.jsx | 289 +- .../jobs-create-vehicle-info.component.jsx | 119 +- .../jobs-create-vehicle-info.container.jsx | 32 +- ...jobs-create-vehicle-info.new.component.jsx | 336 +- ...eate-vehicle-info.predefined.component.jsx | 153 +- ...s-create-vehicle-info.search.component.jsx | 243 +- .../predefined-vehicles.js | 7976 +++++++-------- ...jobs-detail-change-estimator.component.jsx | 56 +- ...bs-detail-change-filehandler.component.jsx | 64 +- .../jobs-detail-checklists.component.jsx | 31 +- .../jobs-detail-dates.component.jsx | 251 +- .../jobs-detail-general.component.jsx | 507 +- ...il-header-actions.addtoproduction.util.jsx | 72 +- .../jobs-detail-header-actions.component.jsx | 2000 ++-- ...bs-detail-header-actions.duplicate.util.js | 206 +- ...etail-header-actions.toggle-production.jsx | 114 +- .../jobs-detail-header.component.jsx | 542 +- .../jobs-detail-labor.component.jsx | 181 +- .../jobs-detail-labor.container.jsx | 44 +- .../jobs-detail-pli.component.jsx | 92 +- .../jobs-detail-pli.container.jsx | 106 +- ...s-detail-rates-change-button.component.jsx | 60 +- .../jobs-detail-rates.component.jsx | 158 +- .../jobs-detail-rates.labor.component.jsx | 829 +- .../jobs-detail-rates.materials.component.jsx | 249 +- .../jobs-detail-rates.other.component.jsx | 181 +- .../jobs-detail-rates.parts.component.jsx | 2217 ++--- ...etail-rates.profile-override.component.jsx | 65 +- .../jobs-detail-rates.taxes.component.jsx | 293 +- .../jobs-detail-totals.component.jsx | 18 +- .../job-documents.utility.js | 23 +- ...bs-document-gallery.download.component.jsx | 238 +- ...bs-document-gallery.reassign.component.jsx | 282 +- .../jobs-documents-gallery.component.jsx | 440 +- .../jobs-documents-gallery.container.jsx | 49 +- ...obs-documents-gallery.delete.component.jsx | 101 +- ...s-documents-gallery.external.component.jsx | 86 +- ...-documents-gallery.selectall.component.jsx | 111 +- ...jobs-documents-local-gallery.container.jsx | 349 +- ...cuments-local-gallery.delete.component.jsx | 124 +- .../jobs-documents-local-gallery.download.jsx | 108 +- ...ments-local-gallery.external.component.jsx | 114 +- ...ments-local-gallery.reassign.component.jsx | 152 +- ...ents-local-gallery.selectall.component.jsx | 63 +- .../jobs-export-all-button.component.jsx | 358 +- .../jobs-find-modal.component.jsx | 551 +- .../jobs-find-modal.container.jsx | 162 +- .../jobs-list-paginated.component.jsx | 493 +- .../jobs-list/jobs-list.component.jsx | 758 +- .../jobs-mark-pst-exempt.component.jsx | 88 +- .../jobs-notes/jobs-notes.container.jsx | 110 +- .../jobs-notes/jobs.notes.component.jsx | 352 +- .../jobs-ready-list.component.jsx | 722 +- .../jobs-related-ros.component.jsx | 44 +- ...-allocations-adjustment-edit.component.jsx | 280 +- .../labor-allocations-table.component.jsx | 468 +- ...or-allocations-table.payroll.component.jsx | 575 +- .../labor-allocations-table.utility.js | 69 +- .../layout-form-row.component.jsx | 128 +- .../loading-skeleton.component.jsx | 12 +- .../loading-spinner.component.jsx | 40 +- .../manage-sign-in-button.component.jsx | 36 +- .../components/no-shop/no-shop.component.jsx | 16 +- .../not-found/not-found.component.jsx | 20 +- .../note-upsert-modal.component.jsx | 180 +- .../note-upsert-modal.container.jsx | 238 +- .../notes-preset-button.component.jsx | 71 +- .../owner-detail-form.component.jsx | 186 +- .../owner-detail-form.container.jsx | 179 +- .../owner-detail-jobs.component.jsx | 254 +- .../owner-detail-update-jobs.component.jsx | 92 +- .../owner-find-modal.component.jsx | 216 +- .../owner-find-modal.container.jsx | 119 +- .../owner-name-display.component.jsx | 48 +- .../owner-search-select.component.jsx | 148 +- .../owner-tag-popover.component.jsx | 140 +- .../owners-list/owners-list.component.jsx | 251 +- .../owners-list/owners-list.container.jsx | 61 +- .../partner-ping/partner-ping.component.jsx | 103 +- .../parts-dispatch-expander.component.jsx | 140 +- .../parts-dispatch-table.component.jsx | 251 +- .../parts-order-backorder-eta.component.jsx | 142 +- .../parts-order-cm-received.component.jsx | 112 +- .../parts-order-delete-line.component.jsx | 82 +- ...-order-line-backorder-button.component.jsx | 170 +- .../parts-order-list-table.component.jsx | 864 +- ...rts-order-modal-price-change.component.jsx | 169 +- .../parts-order-modal.component.jsx | 547 +- .../parts-order-modal.container.jsx | 652 +- .../parts-queue-card.component.jsx | 114 +- .../parts-queue-job-lines.component.jsx | 334 +- .../parts-queue.list.component.jsx | 626 +- .../parts-receive-modal.component.jsx | 230 +- .../parts-receive-modal.container.jsx | 186 +- .../parts-status-pie.component.jsx | 152 +- .../payable-export-all-button.component.jsx | 394 +- .../payable-export-button.component.jsx | 385 +- ...yable-mark-selected-exported.component.jsx | 176 +- .../payment-expanded-row.component.jsx | 279 +- .../payment-export-button.component.jsx | 373 +- .../payment-form/payment-form.component.jsx | 269 +- .../payment-form.totalpayments.component.jsx | 74 +- .../payment-mark-export-button-component.jsx | 154 +- ...yment-mark-selected-exported.component.jsx | 177 +- .../payment-modal/payment-modal.container.jsx | 326 +- .../payment-reexport-button.component.jsx | 105 +- .../payments-export-all-button.component.jsx | 366 +- .../payments-generate-link.component.jsx | 260 +- .../payment-list-paginated.component.jsx | 560 +- .../phonebook-form.component.jsx | 298 +- .../phonebook-form.container.jsx | 254 +- .../print-center-item.component.jsx | 133 +- .../print-center-jobs-labels.component.jsx | 212 +- .../print-center-jobs.component.jsx | 220 +- .../print-center-modal.component.jsx | 30 +- .../print-center-modal.container.jsx | 62 +- .../print-center-speed-print.component.jsx | 127 +- .../print-wrapper/print-wrapper.component.jsx | 72 +- .../production-board-filters.component.jsx | 72 +- ...ard-kanban-card-color-legend.component.jsx | 82 +- ...production-board-kanban-card.component.jsx | 370 +- ...n-board-kanban.card-settings.component.jsx | 268 +- .../production-board-kanban.component.jsx | 529 +- .../production-board-kanban.container.jsx | 159 +- .../production-board-kanban.utils.js | 163 +- .../production-list-columns.add.component.jsx | 126 +- ...roduction-list-columns.alert.component.jsx | 136 +- ...on-list-columns.bodypriority.component.jsx | 104 +- ...duction-list-columns.comment.component.jsx | 140 +- .../production-list-columns.data.jsx | 1133 +-- ...production-list-columns.date.component.jsx | 194 +- ...-list-columns.detailpriority.component.jsx | 105 +- ...n-list-columns.empassignment.component.jsx | 319 +- ...n-list-columns.lastcontacted.component.jsx | 260 +- ...n-list-columns.paintpriority.component.jsx | 104 +- ...n-list-columns.partsreceived.component.jsx | 56 +- ...-list-columns.productionnote.component.jsx | 193 +- ...roduction-list-columns.status.category.jsx | 102 +- ...oduction-list-columns.status.component.jsx | 113 +- ...ution-list-columns.touchtime.component.jsx | 45 +- .../production-list-detail.component.jsx | 297 +- ...tion-list-save-config-button.component.jsx | 163 +- .../production-list-print.component.jsx | 220 +- ...ction-list-table-view-select.component.jsx | 278 +- .../production-list-table.component.jsx | 585 +- .../production-list-table.container.jsx | 122 +- ...uction-list-table.resizeable.component.jsx | 46 +- .../production-remove-button.component.jsx | 74 +- .../production-sublets-manage.component.jsx | 195 +- .../profile-my/profile-my.component.jsx | 237 +- .../profile-shops/profile-shops.component.jsx | 124 +- .../profile-shops/profile-shops.container.jsx | 107 +- .../qbo-authorize/qbo-authorize.component.jsx | 81 +- .../components/rbac-wrapper/rbac-defaults.js | 110 +- .../rbac-wrapper/rbac-wrapper.component.jsx | 71 +- ...center-modal-filters-sorters-component.jsx | 778 +- .../report-center-modal-utils.js | 209 +- .../report-center-modal.component.jsx | 578 +- .../report-center-modal.container.jsx | 60 +- .../schedule-ats-summary.component.jsx | 74 +- .../schedule-block-day.component.jsx | 108 +- ...hedule-calendar-header-graph.component.jsx | 137 +- .../schedule-calendar-header.component.jsx | 379 +- .../schedule-calendar-util.js | 48 +- .../scheduler-calendar-wrapper.component.jsx | 61 +- .../schedule-calendar.component.jsx | 284 +- .../schedule-calendar.container.jsx | 120 +- .../schedule-day-view.component.jsx | 20 +- .../schedule-day-view.container.jsx | 91 +- ...e-existing-appointments-list.component.jsx | 71 +- .../schedule-job-modal.component.jsx | 357 +- .../schedule-job-modal.container.jsx | 437 +- .../schedule-manual-event.component.jsx | 287 +- .../schedule-production-list.component.jsx | 111 +- .../schedule-verify-integrity.component.jsx | 91 +- .../scoreboard-chart/chart-custom-tooltip.jsx | 56 +- .../scoreboard-chart.component.jsx | 263 +- .../scoreboard-day-stats.component.jsx | 76 +- .../scoreboard-display.component.jsx | 195 +- .../scoreboard-entry-edit.component.jsx | 206 +- .../scoreboard-jobs-list.component.jsx | 327 +- .../scoreboard-last-days.component.jsx | 47 +- .../scorebard-remove-button.component.jsx | 76 +- .../scoreboard-targets-table.component.jsx | 147 +- .../scoreboard-targets-table.util.js | 64 +- .../chart-custom-tooltip.jsx | 44 +- ...scoreboard-timetickets.chart.component.jsx | 62 +- .../scoreboard-timetickets.component.jsx | 667 +- ...scoreboard-timetickets.stats.component.jsx | 1124 +-- ...rd-timetickets.targets-table.component.jsx | 500 +- .../scoreboard-timetickets.bar.component.jsx | 116 +- .../scoreboard-timetickets.component.jsx | 552 +- ...scoreboard-timetickets.stats.component.jsx | 233 +- .../shop-csi-config-form.component.jsx | 34 +- .../shop-csi-config.component.jsx | 83 +- .../shop-employees-add-vacation.component.jsx | 214 +- .../shop-employees-form.component.jsx | 755 +- .../shop-employees-list.component.jsx | 254 +- .../shop-employees.container.jsx | 43 +- .../shop-info/shop-info.component.jsx | 211 +- .../shop-info/shop-info.container.jsx | 143 +- .../shop-info/shop-info.general.component.jsx | 2933 +++--- .../shop-info/shop-info.intake.component.jsx | 658 +- .../shop-info.laborrates.component.jsx | 660 +- .../shop-info.orderstatus.component.jsx | 169 +- .../shop-info/shop-info.parts-scan.jsx | 142 +- .../shop-info/shop-info.rbac.component.jsx | 1611 ++- ...p-info.responsibilitycenters.component.jsx | 8868 ++++++++--------- ....responsibilitycenters.taxes.component.jsx | 4933 ++++----- .../shop-info.rostatus.component.jsx | 774 +- .../shop-info.scheduling.component.jsx | 625 +- .../shop-info.speedprint.component.jsx | 181 +- .../shop-info.task-presets.component.jsx | 442 +- .../shop-sub-status.component.jsx | 50 +- .../shop-employee-teams-member.component.jsx | 8 +- .../shop-employee-teams.form.component.jsx | 771 +- .../shop-teams/shop-employee-teams.list.jsx | 127 +- .../shop-teams/shop-teams.container.jsx | 57 +- .../shop-template-add.component.jsx | 137 +- .../shop-template-delete.component.jsx | 80 +- ...-template-editor-save-button.component.jsx | 96 +- .../shop-template-test-render.component.jsx | 112 +- .../shop-templates-list.container.jsx | 125 +- .../shop-users-auth-edit.component.jsx | 84 +- .../shop-users/shop-users.component.jsx | 126 +- .../sign-in-form/sign-in-form.component.jsx | 185 +- .../tech-header/tech-header.component.jsx | 42 +- .../tech-job-clock-in-form.component.jsx | 152 +- .../tech-job-clock-in-form.container.jsx | 271 +- .../tech-job-clock-out-button.component.jsx | 529 +- .../tech-job-clock-out-delete.component.jsx | 79 +- .../tech-job-clocked-in-list.component.jsx | 151 +- .../tech-job-print-tickets.component.jsx | 241 +- .../tech-job-statistics.component.jsx | 205 +- .../tech-login/tech-login.component.jsx | 136 +- .../tech-lookup-jobs-drawer.component.jsx | 230 +- .../tech-lookup-jobs-list.component.jsx | 384 +- .../tech-sider/tech-sider.component.jsx | 267 +- .../time-tickets-dates-selector.component.jsx | 76 +- .../time-ticket-calculator.component.jsx | 225 +- .../time-ticket-enter-button.component.jsx | 42 +- .../time-ticket-list-team-pay.component.jsx | 456 +- .../time-ticket-list.component.jsx | 725 +- .../time-ticket-modal.component.jsx | 706 +- .../time-ticket-modal.container.jsx | 483 +- .../time-ticket-shift-active.component.jsx | 120 +- .../time-ticket-shift-form.component.jsx | 79 +- .../time-ticket-shift-form.container.jsx | 219 +- .../time-ticket-shift.container.jsx | 130 +- .../time-ticket-task-modal.component.jsx | 311 +- .../time-ticket-task-modal.container.jsx | 257 +- ...ime-tickets-attendance-table.component.jsx | 64 +- .../time-tickets-commit-toggle.component.jsx | 160 +- .../time-tickets-commit.component.jsx | 152 +- .../time-tickets-payroll-table.component.jsx | 64 +- ...me-tickets-summary-employees.component.jsx | 598 +- .../tt-approvals-list.component.jsx | 418 +- .../tt-approvals-list.container.jsx | 88 +- .../tt-approve-button.component.jsx | 163 +- .../update-alert/update-alert.component.jsx | 63 +- .../user-request-pw-reset.styles.scss | 1 - .../user-request-reset-pw.component.jsx | 155 +- .../user-validate-pw-reset.component.jsx | 238 +- .../user-validate-pw-reset.styles.scss | 1 - .../vehicle-detail-form.component.jsx | 258 +- .../vehicle-detail-form.container.jsx | 190 +- .../vehicle-detail-jobs.component.jsx | 237 +- .../vehicle-detail-update-jobs.component.jsx | 80 +- .../vehicle-search-select.component.jsx | 150 +- .../vehicle-tag-popover.component.jsx | 126 +- .../vehicle-vin-display.component.jsx | 24 +- .../vehicles-list/vehicles-list.component.jsx | 229 +- .../vehicles-list/vehicles-list.container.jsx | 61 +- .../vendor-search-select.component.jsx | 40 +- .../vendors-form/vendors-form.component.jsx | 449 +- .../vendors-form/vendors-form.container.jsx | 252 +- .../vendors-list/vendors-list.component.jsx | 191 +- .../vendors-list/vendors-list.container.jsx | 64 +- .../vendors-phonebook-add.component.jsx | 139 +- client/src/firebase/firebase.utils.js | 115 +- client/src/graphql/accounting.queries.js | 270 +- client/src/graphql/allocations.queries.js | 26 +- client/src/graphql/apollo-error-handling.js | 29 +- client/src/graphql/appointments.queries.js | 716 +- client/src/graphql/associations.queries.js | 95 +- client/src/graphql/audit_trail.queries.js | 72 +- client/src/graphql/available-jobs.queries.js | 166 +- client/src/graphql/bill-lines.queries.js | 37 +- client/src/graphql/bills.queries.js | 418 +- client/src/graphql/bodyshop.queries.js | 640 +- client/src/graphql/cccontracts.queries.js | 393 +- client/src/graphql/conversations.queries.js | 182 +- client/src/graphql/courtesy-car.queries.js | 284 +- client/src/graphql/csi.queries.js | 135 +- client/src/graphql/dms.queries.js | 18 +- client/src/graphql/documents.queries.js | 191 +- client/src/graphql/employee_teams.queries.js | 157 +- client/src/graphql/employees.queries.js | 212 +- client/src/graphql/inventory.queries.js | 279 +- .../src/graphql/job-conversations.queries.js | 61 +- client/src/graphql/jobs-lines.queries.js | 570 +- client/src/graphql/jobs.queries.js | 4593 +++++---- client/src/graphql/messages.queries.js | 21 +- client/src/graphql/metadata.queries.js | 24 +- client/src/graphql/notes.queries.js | 124 +- client/src/graphql/owners.queries.js | 294 +- client/src/graphql/parts-dispatch.queries.js | 119 +- client/src/graphql/parts-orders.queries.js | 700 +- .../src/graphql/payment_response.queries.js | 70 +- client/src/graphql/payments.queries.js | 301 +- client/src/graphql/phonebook.queries.js | 134 +- client/src/graphql/schema.js | 2 +- client/src/graphql/scoreboard.queries.js | 188 +- client/src/graphql/search.queries.js | 118 +- client/src/graphql/templates.queries.js | 97 +- client/src/graphql/timetickets.queries.js | 752 +- client/src/graphql/tt-approvals.queries.js | 149 +- client/src/graphql/user.queries.js | 124 +- client/src/graphql/vehicles.queries.js | 230 +- client/src/graphql/vendors.queries.js | 188 +- client/src/index.css | 16 +- client/src/index.jsx | 106 +- .../accounting-payables.container.jsx | 123 +- .../accounting-payments.container.jsx | 125 +- .../accounting-qbo/accounting-qbo.page.jsx | 61 +- .../accounting-receivables.container.jsx | 131 +- .../src/pages/bills/bills.page.component.jsx | 581 +- .../src/pages/bills/bills.page.container.jsx | 117 +- .../contract-create.page.component.jsx | 110 +- .../contract-create.page.container.jsx | 254 +- .../contract-detail.page.component.jsx | 211 +- .../contract-detail.page.container.jsx | 272 +- .../contracts/contracts.page.component.jsx | 16 +- .../contracts/contracts.page.container.jsx | 115 +- .../courtesy-car-create.page.container.jsx | 137 +- .../courtesy-car-detail.page.component.jsx | 37 +- .../courtesy-car-detail.page.container.jsx | 332 +- .../courtesy-cars.page.component.jsx | 10 +- .../courtesy-cars.page.container.jsx | 69 +- client/src/pages/csi/csi.container.page.jsx | 442 +- .../pages/dashboard/dashboard.container.jsx | 59 +- .../src/pages/disclaimer/disclaimer.page.jsx | 34 +- .../dms-payables/dms-payables.container.jsx | 252 +- client/src/pages/dms/dms.container.jsx | 344 +- .../export-logs.page.component.jsx | 353 +- .../export-logs.page.container.jsx | 58 +- client/src/pages/help/help.page.jsx | 10 +- client/src/pages/inventory/inventory.page.jsx | 46 +- .../src/pages/jobs-admin/jobs-admin.page.jsx | 208 +- .../src/pages/jobs-all/jobs-all.container.jsx | 109 +- .../jobs-available.page.container.jsx | 105 +- .../jobs-checklist-view.page.jsx | 204 +- .../pages/jobs-close/jobs-close.component.jsx | 944 +- .../pages/jobs-close/jobs-close.container.jsx | 131 +- .../jobs-create/jobs-create.component.jsx | 307 +- .../jobs-create/jobs-create.container.jsx | 538 +- .../jobs-delivery.page.container.jsx | 127 +- .../jobs-detail.page.component.jsx | 690 +- .../jobs-detail.page.container.jsx | 186 +- .../jobs-intake.page.container.jsx | 144 +- .../src/pages/jobs-ready/jobs-ready.page.jsx | 48 +- client/src/pages/jobs/jobs.page.jsx | 48 +- client/src/pages/landing/landing.page.jsx | 18 +- .../manage-root.page.component.jsx | 27 +- .../manage-root.page.container.jsx | 43 +- .../pages/manage/manage.page.component.jsx | 1054 +- .../pages/manage/manage.page.container.jsx | 43 +- .../owners-detail.page.component.jsx | 26 +- .../owners-detail.page.container.jsx | 111 +- .../pages/owners/owners.page.component.jsx | 2 +- .../pages/owners/owners.page.container.jsx | 44 +- .../parts-queue.page.container.jsx | 48 +- .../payments-all.container.page.jsx | 119 +- .../phonebook/phonebook.page.component.jsx | 377 +- .../phonebook/phonebook.page.container.jsx | 110 +- .../production-board.component.jsx | 2 +- .../production-board.container.jsx | 73 +- .../production-list.component.jsx | 2 +- .../production-list.container.jsx | 50 +- .../pages/profile/profile.container.page.jsx | 38 +- client/src/pages/profile/profile.page.jsx | 18 +- .../reset-password.component.jsx | 13 +- .../schedule/schedule.page.component.jsx | 2 +- .../schedule/schedule.page.container.jsx | 46 +- .../scoreboard/scoreboard.page.container.jsx | 157 +- .../pages/shift-clock/shift-clock.page.jsx | 8 +- .../shop-csi/shop-csi.container.page.jsx | 112 +- .../shop-vendor.page.component.jsx | 68 +- .../shop-vendor.page.container.jsx | 71 +- client/src/pages/shop/shop.page.component.jsx | 148 +- client/src/pages/sign-in/sign-in.page.jsx | 10 +- .../tech-assigned-prod-jobs.component.jsx | 445 +- .../tech-dispatched-parts.page.jsx | 231 +- .../tech-job-clock.component.jsx | 38 +- .../tech-lookup/tech-lookup.container.jsx | 34 +- .../tech-shift-clock.component.jsx | 30 +- client/src/pages/tech/tech.page.component.jsx | 177 +- client/src/pages/tech/tech.page.container.jsx | 46 +- .../temporary-docs.component.jsx | 62 +- .../temporary-docs.container.jsx | 69 +- .../time-tickets/time-tickets.container.jsx | 84 +- .../tt-approvals.page.container.jsx | 64 +- .../vehicles-detail.page.component.jsx | 30 +- .../vehicles-detail.page.container.jsx | 141 +- .../vehicles/vehicles.page.component.jsx | 2 +- .../vehicles/vehicles.page.container.jsx | 38 +- .../redux/application/application.actions.js | 64 +- .../redux/application/application.reducer.js | 200 +- .../redux/application/application.sagas.js | 500 +- .../application/application.selectors.js | 66 +- .../redux/application/application.types.js | 32 +- client/src/redux/email/email.actions.js | 24 +- client/src/redux/email/email.reducer.js | 60 +- client/src/redux/email/email.sagas.js | 14 +- client/src/redux/email/email.selectors.js | 12 +- client/src/redux/email/email.types.js | 10 +- client/src/redux/media/media.actions.js | 50 +- client/src/redux/media/media.reducer.js | 86 +- client/src/redux/media/media.sagas.js | 190 +- client/src/redux/media/media.selectors.js | 2 +- client/src/redux/media/media.types.js | 16 +- .../src/redux/messaging/messaging.actions.js | 30 +- .../src/redux/messaging/messaging.reducer.js | 92 +- client/src/redux/messaging/messaging.sagas.js | 155 +- .../redux/messaging/messaging.selectors.js | 30 +- client/src/redux/messaging/messaging.types.js | 14 +- client/src/redux/modals/modals.actions.js | 12 +- client/src/redux/modals/modals.reducer.js | 88 +- client/src/redux/modals/modals.sagas.js | 8 +- client/src/redux/modals/modals.selectors.js | 92 +- client/src/redux/modals/modals.types.js | 4 +- client/src/redux/root.reducer.js | 32 +- client/src/redux/root.saga.js | 34 +- client/src/redux/store.js | 32 +- client/src/redux/tech/tech.actions.js | 16 +- client/src/redux/tech/tech.reducer.js | 72 +- client/src/redux/tech/tech.sagas.js | 46 +- client/src/redux/tech/tech.selectors.js | 17 +- client/src/redux/tech/tech.types.js | 8 +- client/src/redux/user/user.actions.js | 89 +- client/src/redux/user/user.reducer.js | 236 +- client/src/redux/user/user.sagas.js | 550 +- client/src/redux/user/user.selectors.js | 42 +- client/src/redux/user/user.types.js | 69 +- client/src/reportWebVitals.js | 18 +- client/src/setupTests.js | 6 +- client/src/translations/en_us/common.json | 6604 ++++++------ client/src/translations/es/common.json | 6602 ++++++------ client/src/translations/fr/common.json | 6602 ++++++------ client/src/translations/i18n.js | 28 +- client/src/utils/AuditTrailMappings.js | 100 +- client/src/utils/Ciecaselect.jsx | 128 +- client/src/utils/CleanAxios.js | 30 +- client/src/utils/CurrencyFormatter.jsx | 22 +- client/src/utils/DateFormatter.jsx | 34 +- client/src/utils/DatePickerRanges.js | 111 +- client/src/utils/GraphQLClient.js | 227 +- client/src/utils/PhoneFormatter.jsx | 4 +- client/src/utils/RegisterSw.js | 101 +- client/src/utils/RenderTemplate.js | 766 +- client/src/utils/SSSUtils.js | 59 +- client/src/utils/TemplateConstants.js | 4745 +++++---- client/src/utils/TemplateSpecial.jsx | 2 +- client/src/utils/TestingHelpers.js | 281 +- client/src/utils/aamva.js | 843 +- client/src/utils/arrayHelper.js | 2 +- client/src/utils/asyncConfirm.js | 8 +- client/src/utils/betaHandler.js | 53 +- client/src/utils/create-recent-item.js | 10 +- client/src/utils/criticalPartsScan.js | 12 +- client/src/utils/day.js | 60 +- client/src/utils/eulaize.js | 27 +- client/src/utils/fcm-handler.js | 136 +- client/src/utils/formatbytes.js | 14 +- client/src/utils/graphQLmodifier.js | 587 +- client/src/utils/handleBeta.js | 51 +- client/src/utils/instanceRenderMgr.js | 31 +- client/src/utils/jobReadOnly.js | 4 +- client/src/utils/localmedia.js | 8 +- client/src/utils/prompt.js | 79 +- client/src/utils/sorters.js | 18 +- client/src/utils/undefinedtonull.js | 16 +- client/src/utils/useEffectDebugger.js | 8 +- client/src/utils/useKeyboardShortcut.jsx | 209 +- client/src/utils/useLocalStorage.js | 73 +- client/src/utils/usetraceupdate.jsx | 28 +- client/vite.config.js | 140 +- ecosystem.config.js | 34 +- firebase/firebase.json | 4 +- firebase/functions/index.js | 45 +- job-totals-testing-util.js | 181 +- libs/awsUtils.js | 78 +- os-loader.js | 197 +- package.json | 3 +- server.js | 124 +- server/accounting/pbs/pbs-ap-allocations.js | 438 +- server/accounting/pbs/pbs-constants.js | 23 +- server/accounting/pbs/pbs-job-export.js | 1196 +-- server/accounting/qb-receivables-lines.js | 1793 ++-- server/accounting/qbo/qbo-authorize.js | 35 +- server/accounting/qbo/qbo-callback.js | 120 +- server/accounting/qbo/qbo-payables.js | 673 +- server/accounting/qbo/qbo-payments.js | 864 +- server/accounting/qbo/qbo-receivables.js | 1324 ++- server/accounting/qbo/qbo.js | 15 +- server/accounting/qbxml/qbxml-payables.js | 229 +- server/accounting/qbxml/qbxml-payments.js | 325 +- server/accounting/qbxml/qbxml-receivables.js | 479 +- server/accounting/qbxml/qbxml-utils.js | 64 +- server/accounting/qbxml/qbxmlObject.json | 5 +- server/admin/adminops.js | 147 +- server/ccc/partspricechange.js | 59 +- server/cdk/cdk-calculate-allocations.js | 755 +- server/cdk/cdk-get-makes.js | 179 +- server/cdk/cdk-job-export.js | 2131 ++-- server/cdk/cdk-wsdl.js | 105 +- server/csi/csi.js | 2 +- server/csi/lookup.js | 25 +- server/csi/submit.js | 35 +- server/data/arms.js | 1872 ++-- server/data/autohouse.js | 1823 ++-- server/data/claimscorp.js | 1413 ++- server/data/data.js | 2 +- server/data/kaizen.js | 1303 +-- server/email/sendemail.js | 509 +- server/firebase/firebase-handler.js | 298 +- server/graphql-client/graphql-client.js | 11 +- server/graphql-client/queries.js | 10 +- server/intellipay/aws-secrets-manager.js | 73 +- server/intellipay/intellipay.js | 304 +- server/ioevent/ioevent.js | 64 +- server/job/job-costing.js | 1635 ++- server/job/job-lifecycle.js | 191 +- server/job/job-status-transition.js | 121 +- server/job/job-totals-USA.js | 1935 ++-- server/job/job-totals.js | 1193 ++- server/job/job.js | 22 +- server/media/media.js | 235 +- .../eventAuthorizationMIddleware.js | 12 +- server/middleware/validateAdminMiddleware.js | 20 +- .../validateFirebaseIdTokenMiddleware.js | 87 +- .../withUserGraphQLClientMiddleware.js | 20 +- server/mixdata/mixdata.js | 182 +- server/opensearch/os-handler.js | 438 +- server/parts-scan/parts-scan.js | 74 +- server/payroll/calculate-totals.js | 182 +- server/payroll/claim-task.js | 165 +- server/payroll/pay-all.js | 526 +- server/render/inlinecss.js | 31 +- server/routes/accountingRoutes.js | 10 +- server/routes/adminRoutes.js | 20 +- server/routes/cdkRoutes.js | 6 +- server/routes/csiRoutes.js | 2 +- server/routes/dataRoutes.js | 10 +- server/routes/intellipayRoutes.js | 12 +- server/routes/jobRoutes.js | 28 +- server/routes/mediaRoutes.js | 12 +- server/routes/miscellaneousRoutes.js | 42 +- server/routes/mixDataRoutes.js | 8 +- server/routes/notificationsRoutes.js | 8 +- server/routes/payrollRoutes.js | 5 +- server/routes/qboRoutes.js | 14 +- server/routes/renderRoutes.js | 6 +- server/routes/schedulingRoutes.js | 6 +- server/routes/smsRoutes.js | 20 +- server/routes/techRoutes.js | 6 +- server/routes/utilRoutes.js | 8 +- server/scheduling/scheduling-job.js | 510 +- server/sms/receive.js | 252 +- server/sms/send.js | 191 +- server/sms/status.js | 77 +- server/stripe/payment.js | 65 +- server/tasks/tasks.js | 125 +- server/tech/tech.js | 71 +- server/utils/adminEmail.js | 12 +- server/utils/calculateStatusDuration.js | 147 +- server/utils/durationToHumanReadable.js | 34 +- server/utils/getLifecycleStatusColor.js | 14 +- server/utils/instanceMgr.js | 19 +- server/utils/logger.js | 32 +- server/utils/utils.js | 9 +- server/web-sockets/web-socket.js | 397 +- setadmin.js | 38 +- 873 files changed, 111387 insertions(+), 125473 deletions(-) diff --git a/.prettierrc.js b/.prettierrc.js index 4f012c6d9..f2c6fc849 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,16 +1,18 @@ -exports.default = { +const config = { printWidth: 120, useTabs: false, tabWidth: 2, - trailingComma: 'es5', + trailingComma: "none", semi: true, singleQuote: false, bracketSpacing: true, - arrowParens: 'always', + arrowParens: "always", jsxSingleQuote: false, bracketSameLine: false, - endOfLine: 'lf', - importOrder: ['^@core/(.*)$', '^@server/(.*)$', '^@ui/(.*)$', '^[./]'], + endOfLine: "lf", + importOrder: ["^@core/(.*)$", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"], importOrderSeparation: true, - importOrderSortSpecifiers: true, + importOrderSortSpecifiers: true }; + +module.exports = config; diff --git a/_reference/Test_CDK_Acct Config.json b/_reference/Test_CDK_Acct Config.json index 44a140906..d8e7da4fc 100644 --- a/_reference/Test_CDK_Acct Config.json +++ b/_reference/Test_CDK_Acct Config.json @@ -567,4 +567,4 @@ "description": "Exempt" } ] -} \ No newline at end of file +} diff --git a/_reference/test-ecoystem.config.js b/_reference/test-ecoystem.config.js index 37bae797c..1bf66e16c 100644 --- a/_reference/test-ecoystem.config.js +++ b/_reference/test-ecoystem.config.js @@ -1,20 +1,20 @@ module.exports = { - apps: [ - { - name: "IO Test API", - cwd: "./io", - script: "./server.js", - env: { - NODE_ENV: "test", - }, - }, + apps: [ + { + name: "IO Test API", + cwd: "./io", + script: "./server.js", + env: { + NODE_ENV: "test" + } + }, - { - name: "Bitbucket Webhook", - script: "./webhook/index.js", - env: { - NODE_ENV: "production", - }, - }, - ], + { + name: "Bitbucket Webhook", + script: "./webhook/index.js", + env: { + NODE_ENV: "production" + } + } + ] }; diff --git a/client/craco.config.js b/client/craco.config.js index 54f46cdb6..87abf5bcf 100644 --- a/client/craco.config.js +++ b/client/craco.config.js @@ -1,10 +1,10 @@ // craco.config.js const TerserPlugin = require("terser-webpack-plugin"); const CracoLessPlugin = require("craco-less"); -const {convertLegacyToken} = require('@ant-design/compatible/lib'); -const {theme} = require('antd/lib'); +const { convertLegacyToken } = require("@ant-design/compatible/lib"); +const { theme } = require("antd/lib"); -const {defaultAlgorithm, defaultSeed} = theme; +const { defaultAlgorithm, defaultSeed } = theme; const mapToken = defaultAlgorithm(defaultSeed); const v4Token = convertLegacyToken(mapToken); @@ -12,43 +12,42 @@ const v4Token = convertLegacyToken(mapToken); // TODO, At the moment we are using less in the Dashboard. Once we remove this we can remove the less processor entirely. module.exports = { - plugins: [ - - { - plugin: CracoLessPlugin, - options: { - lessLoaderOptions: { - lessOptions: { - modifyVars: {...v4Token}, - javascriptEnabled: true, - }, - }, - }, + plugins: [ + { + plugin: CracoLessPlugin, + options: { + lessLoaderOptions: { + lessOptions: { + modifyVars: { ...v4Token }, + javascriptEnabled: true + } + } + } + } + ], + webpack: { + configure: (webpackConfig) => { + return { + ...webpackConfig, + // Required for Dev Server + devServer: { + ...webpackConfig.devServer, + allowedHosts: "all" }, - ], - webpack: { - configure: (webpackConfig) => { - return { - ...webpackConfig, - // Required for Dev Server - devServer: { - ...webpackConfig.devServer, - allowedHosts: 'all', - }, - optimization: { - ...webpackConfig.optimization, - // Workaround for CircleCI bug caused by the number of CPUs shown - // https://github.com/facebook/create-react-app/issues/8320 - minimizer: webpackConfig.optimization.minimizer.map((item) => { - if (item instanceof TerserPlugin) { - item.options.parallel = 2; - } + optimization: { + ...webpackConfig.optimization, + // Workaround for CircleCI bug caused by the number of CPUs shown + // https://github.com/facebook/create-react-app/issues/8320 + minimizer: webpackConfig.optimization.minimizer.map((item) => { + if (item instanceof TerserPlugin) { + item.options.parallel = 2; + } - return item; - }), - }, - }; - }, - }, - devtool: "source-map", + return item; + }) + } + }; + } + }, + devtool: "source-map" }; diff --git a/client/cypress.config.js b/client/cypress.config.js index f227b0b40..1f2d28ce6 100644 --- a/client/cypress.config.js +++ b/client/cypress.config.js @@ -1,17 +1,17 @@ -const {defineConfig} = require('cypress') +const { defineConfig } = require("cypress"); module.exports = defineConfig({ - experimentalStudio: true, - env: { - FIREBASE_USERNAME: 'cypress@imex.test', - FIREBASE_PASSWORD: 'cypress', + experimentalStudio: true, + env: { + FIREBASE_USERNAME: "cypress@imex.test", + FIREBASE_PASSWORD: "cypress" + }, + e2e: { + // We've imported your old cypress plugins here. + // You may want to clean this up later by importing these. + setupNodeEvents(on, config) { + return require("./cypress/plugins/index.js")(on, config); }, - e2e: { - // We've imported your old cypress plugins here. - // You may want to clean this up later by importing these. - setupNodeEvents(on, config) { - return require('./cypress/plugins/index.js')(on, config) - }, - baseUrl: 'http://localhost:3000', - }, -}) + baseUrl: "http://localhost:3000" + } +}); diff --git a/client/cypress/e2e/01-General Render/01-home.cy.js b/client/cypress/e2e/01-General Render/01-home.cy.js index 120baa84f..44202154f 100644 --- a/client/cypress/e2e/01-General Render/01-home.cy.js +++ b/client/cypress/e2e/01-General Render/01-home.cy.js @@ -1,24 +1,19 @@ /// -const {FIREBASE_USERNAME, FIREBASE_PASSWORcD} = Cypress.env(); +const { FIREBASE_USERNAME, FIREBASE_PASSWORcD } = Cypress.env(); describe("Renders the General Page", () => { - beforeEach(() => { - cy.visit("/"); - }); - it("Renders Correctly", () => { - }); - it("Has the Slogan", () => { - cy.findByText("A whole x22new kind of shop management system.").should( - "exist" - ); - /* ==== Generated with Cypress Studio ==== */ - cy.get( - ".ant-menu-item-active > .ant-menu-title-content > .header0-item-block" - ).click(); - cy.get("#email").clear(); - cy.get("#email").type("patrick@imex.dev"); - cy.get("#password").clear(); - cy.get("#password").type("patrick123{enter}"); - cy.get(".ant-form > .ant-btn").click(); - /* ==== End Cypress Studio ==== */ - }); + beforeEach(() => { + cy.visit("/"); + }); + it("Renders Correctly", () => {}); + it("Has the Slogan", () => { + cy.findByText("A whole x22new kind of shop management system.").should("exist"); + /* ==== Generated with Cypress Studio ==== */ + cy.get(".ant-menu-item-active > .ant-menu-title-content > .header0-item-block").click(); + cy.get("#email").clear(); + cy.get("#email").type("patrick@imex.dev"); + cy.get("#password").clear(); + cy.get("#password").type("patrick123{enter}"); + cy.get(".ant-form > .ant-btn").click(); + /* ==== End Cypress Studio ==== */ + }); }); diff --git a/client/cypress/e2e/1-getting-started/todo.cy.js b/client/cypress/e2e/1-getting-started/todo.cy.js index 28c0f35e1..87e609ced 100644 --- a/client/cypress/e2e/1-getting-started/todo.cy.js +++ b/client/cypress/e2e/1-getting-started/todo.cy.js @@ -11,133 +11,114 @@ // please read our getting started guide: // https://on.cypress.io/introduction-to-cypress -describe('example to-do app', () => { +describe("example to-do app", () => { + beforeEach(() => { + // Cypress starts out with a blank slate for each test + // so we must tell it to visit our website with the `cy.visit()` command. + // Since we want to visit the same URL at the start of all our tests, + // we include it in our beforeEach function so that it runs before each test + cy.visit("https://example.cypress.io/todo"); + }); + + it("displays two todo items by default", () => { + // We use the `cy.get()` command to get all elements that match the selector. + // Then, we use `should` to assert that there are two matched items, + // which are the two default items. + cy.get(".todo-list li").should("have.length", 2); + + // We can go even further and check that the default todos each contain + // the correct text. We use the `first` and `last` functions + // to get just the first and last matched elements individually, + // and then perform an assertion with `should`. + cy.get(".todo-list li").first().should("have.text", "Pay electric bill"); + cy.get(".todo-list li").last().should("have.text", "Walk the dog"); + }); + + it("can add new todo items", () => { + // We'll store our item text in a variable so we can reuse it + const newItem = "Feed the cat"; + + // Let's get the input element and use the `type` command to + // input our new list item. After typing the content of our item, + // we need to type the enter key as well in order to submit the input. + // This input has a data-test attribute so we'll use that to select the + // element in accordance with best practices: + // https://on.cypress.io/selecting-elements + cy.get("[data-test=new-todo]").type(`${newItem}{enter}`); + + // Now that we've typed our new item, let's check that it actually was added to the list. + // Since it's the newest item, it should exist as the last element in the list. + // In addition, with the two default items, we should have a total of 3 elements in the list. + // Since assertions yield the element that was asserted on, + // we can chain both of these assertions together into a single statement. + cy.get(".todo-list li").should("have.length", 3).last().should("have.text", newItem); + }); + + it("can check off an item as completed", () => { + // In addition to using the `get` command to get an element by selector, + // we can also use the `contains` command to get an element by its contents. + // However, this will yield the