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/apollo/client.ts b/apps/command-center/src/apollo/client.ts
index 34b2be73..2f6e0b43 100644
--- a/apps/command-center/src/apollo/client.ts
+++ b/apps/command-center/src/apollo/client.ts
@@ -1,6 +1,6 @@
import { createClient } from 'graphql-ws';
import { SentryLink } from 'apollo-link-sentry';
-import { buildGenericConnectionMerge } from 'shared';
+import { buildGenericConnectionMerge, } from 'shared';
import { setContext } from '@apollo/client/link/context';
diff --git a/packages/shared/src/utils/apollo.ts b/packages/shared/src/utils/apollo.ts
index 3f3ab69c..d6301226 100644
--- a/packages/shared/src/utils/apollo.ts
+++ b/packages/shared/src/utils/apollo.ts
@@ -1,8 +1,15 @@
export function buildGenericConnectionMerge() {
return {
- keyArgs: () => ['filters'],
- merge(existing: any, incoming: any, { readField }: any) {
- const edges = existing ? { ...existing.edges } : {};
diff --git a/apps/command-center/src/app/dashboard/gate-events/auto-recognition/history/page.tsx b/apps/command-center/src/app/dashboard/gate-events/auto-recognition/history/page.tsx
index dd96fc51..464af5a5 100644
--- a/apps/command-center/src/app/dashboard/gate-events/auto-recognition/history/page.tsx
+++ b/apps/command-center/src/app/dashboard/gate-events/auto-recognition/history/page.tsx
@@ -23,6 +23,7 @@ const GetYardsVehicleRecognition = gql(`
yards {
id
...yardVehicleRecognitionFilters
+ ...yardVehicleDetectionGrid
}
diff --git a/apps/command-center/src/app/dashboard/gate-events/auto-recognition/instant-gate-support/page.tsx b/apps/command-center/src/app/dashboard/gate-events/auto-recognition/instant-gate-support/page.tsx
index cabf6454..94ee32c7 100644
--- a/apps/command-center/src/app/dashboard/gate-events/auto-recognition/instant-gate-support/page.tsx
+++ b/apps/command-center/src/app/dashboard/gate-events/auto-recognition/instant-gate-support/page.tsx
@@ -2,14 +2,17 @@
import { Iconify } from 'minimal';
import { useQueryState } from 'nuqs';
+import { gql } from '@/src/generated';
+import { useQuery } from '@apollo/client';
diff --git a/apps/command-center/src/app/dashboard/gate-events/auto-recognition/instant-gate-support/page.tsx b/apps/command-center/src/app/dashboard/gate-events/auto-recognition/instant-gate-support/page.tsx
index cabf6454..2b90549f 100644
--- a/apps/command-center/src/app/dashboard/gate-events/auto-recognition/instant-gate-support/page.tsx
+++ b/apps/command-center/src/app/dashboard/gate-events/auto-recognition/instant-gate-support/page.tsx
@@ -43,6 +43,13 @@ const getYardsQuery = gql(`
id
yards {
id
+ shouldAIAnalize
+ fullName
diff --git a/apps/parking-web/src/components/VehicleDetectionGrid.tsx b/apps/parking-web/src/components/VehicleDetectionGrid.tsx
index 20475791..b6d27328 100644
--- a/apps/parking-web/src/components/VehicleDetectionGrid.tsx
+++ b/apps/parking-web/src/components/VehicleDetectionGrid.tsx
@@ -2,28 +2,16 @@
import React from 'react';
import { VehicleDetectionGrid as SharedVehicleDetectionGrid } from 'shared';
+import { YardVehicleRecognitionFiltersFragmentDoc } from '@shared/generated/graphql';
import * as dotenv from 'dotenv';
import { createZoomClient } from '@src/lib/clients/zoom';
dotenv.config();
async function run() {
const zoom = createZoomClient();
const userId = 'QlnQyO41TqycR_whw8ggJQ';
console.log('Creating Zoom client...');
diff --git a/apps/command-center/src/app/dashboard/gate-events/auto-recognition/instant-gate-support/page.tsx b/apps/command-center/src/app/dashboard/gate-events/auto-recognition/instant-gate-support/page.tsx
index cdbffec0..fb2942be 100644
--- a/apps/command-center/src/app/dashboard/gate-events/auto-recognition/instant-gate-support/page.tsx
+++ b/apps/command-center/src/app/dashboard/gate-events/auto-recognition/instant-gate-support/page.tsx
@@ -105,8 +105,10 @@ export default function InstantGateSupport() {
serialize: (v) => JSON.stringify(v),
});
- const [selectedTab, setSelectedTab] = useState(0);
- const [dropdownOption, setDropdownOption] = useState<DropdownOption>(DropdownOption.LOAD_STATUS);
diff --git a/apps/parking-web/src/apollo/client.ts b/apps/parking-web/src/apollo/client.ts
index 7da985b5..90f2b00f 100644
--- a/apps/parking-web/src/apollo/client.ts
+++ b/apps/parking-web/src/apollo/client.ts
@@ -57,6 +57,11 @@ const createApolloClient = () =>
},
},
}),
+ defaultOptions: {
+ watchQuery: {
diff --git a/apps/parking-web/src/sections/events/EventDetails/index.tsx b/apps/parking-web/src/sections/events/EventDetails/index.tsx
index 055f224a..73fdbd2a 100644
--- a/apps/parking-web/src/sections/events/EventDetails/index.tsx
+++ b/apps/parking-web/src/sections/events/EventDetails/index.tsx
@@ -2,8 +2,8 @@ import { DateTime } from 'luxon';
import styled from '@emotion/styled';
import { useQuery } from '@apollo/client';
import React, { useRef, useMemo, useState, useEffect } from 'react';
+import { ChipComponent, DriverSessionView, CameraEventCarousel } from 'shared';
import { formatContainerNumberForDisplay } from 'shared/src/utils/containerDisplay';