Skip to content

Instantly share code, notes, and snippets.

View broguinn's full-sized avatar

Braden O'Guinn broguinn

View GitHub Profile
diff --git a/apps/command-center/src/locales/langs/en.json b/apps/command-center/src/locales/langs/en.json
index 1efe05b67..a7fd7f929 100755
--- a/apps/command-center/src/locales/langs/en.json
+++ b/apps/command-center/src/locales/langs/en.json
@@ -188,7 +188,7 @@
"label": "Processing…"
},
"callSupportStage": {
- "errorLead": "We're connecting you with support because of this error:",
+ "errorLead": "There was an error, we're connecting you with support:",
diff --git a/apps/api/src/schema/driverSession/resolvers/DriverSession.ts b/apps/api/src/schema/driverSession/resolvers/DriverSession.ts
index e61df53cf..2dc186724 100644
--- a/apps/api/src/schema/driverSession/resolvers/DriverSession.ts
+++ b/apps/api/src/schema/driverSession/resolvers/DriverSession.ts
@@ -35,7 +35,8 @@ export const DriverSession: DriverSessionResolvers = {
return (
answeredYes(DriverSessionArtifactType.loadStatus) &&
- answeredYes(DriverSessionArtifactType.isPickingUpLoadedTrailer)
+ (answeredYes(DriverSessionArtifactType.isPickingUpLoadedTrailer) ||
diff --git a/apps/command-center/src/sections/kiosk/view.tsx b/apps/command-center/src/sections/kiosk/view.tsx
index 2ffc9e760..07ef27437 100644
--- a/apps/command-center/src/sections/kiosk/view.tsx
+++ b/apps/command-center/src/sections/kiosk/view.tsx
@@ -134,13 +134,13 @@ const CallFooter = styled(Box, {
bottom: 0,
left: 0,
right: 0,
- minHeight: 72,
- paddingBlock: theme.spacing(1.5),
diff --git a/apps/api/src/lib/clients/customer/allen.ts b/apps/api/src/lib/clients/customer/allen.ts
index 22d4bfbea..fc3f7f578 100644
--- a/apps/api/src/lib/clients/customer/allen.ts
+++ b/apps/api/src/lib/clients/customer/allen.ts
@@ -117,3 +117,18 @@ export async function verifyDriver(request: AllenVerifyDriverRequest): Promise<A
const { interaction } = await verifyDriverWithDiagnostics(request);
return interaction;
}
+
+interface AllenClient {
diff --git a/apps/command-center/src/sections/kiosk/view.tsx b/apps/command-center/src/sections/kiosk/view.tsx
index e5774966f..b083ed104 100644
--- a/apps/command-center/src/sections/kiosk/view.tsx
+++ b/apps/command-center/src/sections/kiosk/view.tsx
@@ -27,7 +27,7 @@ import { KioskErrorBoundary } from './kiosk-error-boundary';
import { useKioskIdleUpdate } from './use-kiosk-idle-update';
import { ConnectionIndicator } from './connection-indicator';
import { DevWorkflowStageSwitcher } from './dev-workflow-stage-switcher';
-import { useKioskWebSocket, type CallState } from './use-kiosk-websocket';
+import { type CallState, useKioskWebSocket } from './use-kiosk-websocket';
diff --git a/apps/command-center/src/sections/kiosk/view.tsx b/apps/command-center/src/sections/kiosk/view.tsx
index e5774966f..b083ed104 100644
--- a/apps/command-center/src/sections/kiosk/view.tsx
+++ b/apps/command-center/src/sections/kiosk/view.tsx
@@ -27,7 +27,7 @@ import { KioskErrorBoundary } from './kiosk-error-boundary';
import { useKioskIdleUpdate } from './use-kiosk-idle-update';
import { ConnectionIndicator } from './connection-indicator';
import { DevWorkflowStageSwitcher } from './dev-workflow-stage-switcher';
-import { useKioskWebSocket, type CallState } from './use-kiosk-websocket';
+import { type CallState, useKioskWebSocket } from './use-kiosk-websocket';
diff --git a/apps/api/src/schema/VehicleRecognition/schema.graphql b/apps/api/src/schema/VehicleRecognition/schema.graphql
index f6527b2ff..e732d7558 100644
--- a/apps/api/src/schema/VehicleRecognition/schema.graphql
+++ b/apps/api/src/schema/VehicleRecognition/schema.graphql
@@ -91,6 +91,16 @@ type VehicleRecognition implements TimelineEvent {
gatekeeperWorkflowProgress: GatekeeperWorkflowProgress
@auth(or: [OpsRequired, GatekeeperRequired, KioskRequired], gatekeeperPermissionsSource: VehicleRecognition)
"""
+ Ordered history of every client-facing stage this recognition's gatekeeper workflow has asked for,
+ reconstructed from the FSM transitions of its current workflow instance. Unlike
diff --git a/apps/api/src/lib/vehicleRecognition/equipmentUpdateHandler.ts b/apps/api/src/lib/vehicleRecognition/equipmentUpdateHandler.ts
index c1053ce61..b62c66135 100644
--- a/apps/api/src/lib/vehicleRecognition/equipmentUpdateHandler.ts
+++ b/apps/api/src/lib/vehicleRecognition/equipmentUpdateHandler.ts
@@ -37,7 +37,11 @@ export async function updateLicensePlate(
equipment.licensePlateImageAnalysis = plate;
equipment.licensePlateImageAnalysisId = plate.id;
- equipment = await saveVehicleRecognitionEquipment(equipment, manager);
+ // Resolve the related-equipment match BEFORE the write so these read-only lookups don't run on a
diff --git a/apps/api/src/lib/laneSupport/stateUpdater.ts b/apps/api/src/lib/laneSupport/stateUpdater.ts
index cdb770f3c..588ccb18b 100644
--- a/apps/api/src/lib/laneSupport/stateUpdater.ts
+++ b/apps/api/src/lib/laneSupport/stateUpdater.ts
@@ -1,15 +1,12 @@
import { AppDataSource } from '@src/data-source';
import { Customer, Lane, Yard } from '@entity';
-import { deriveLaneSupportState, LaneSupportState } from './derivation';
+import { LaneSupportState } from './derivation';
diff --git a/apps/api/src/migration/1777922782941-staging-prefix-uuid-defaults.ts b/apps/api/src/migration/1777922782941-staging-prefix-uuid-defaults.ts
index 6b72ddfe6..0613eea3c 100644
--- a/apps/api/src/migration/1777922782941-staging-prefix-uuid-defaults.ts
+++ b/apps/api/src/migration/1777922782941-staging-prefix-uuid-defaults.ts
@@ -21,7 +21,7 @@ export class StagingPrefixUuidDefaults1777922782941 implements MigrationInterfac
public async up(queryRunner: QueryRunner): Promise<void> {
const [{ current_database }] = await queryRunner.query(`SELECT current_database()`);
- const allowedDbs = new Set(['monolith_staging', 'semistow_dev']);
+ const allowedDbs = new Set(['monolith_staging']);