Skip to content

Commit 55c04a6

Browse files
committed
Fix types and build
1 parent 797d678 commit 55c04a6

File tree

7 files changed

+8
-25
lines changed

7 files changed

+8
-25
lines changed

apps/web/app/(v1)/GlobalCommandBarProvider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function useConnectionCommands() {
148148
params: z.object({
149149
connection_id: z.string().describe('The ID of the connection to check'),
150150
}),
151-
execute: async ({params}) => {
151+
execute: () => {
152152
try {
153153
// await trpc.checkConnection.mutate({id: params.connection_id})
154154
alert('Connection check successful!')
@@ -168,7 +168,7 @@ function useConnectionCommands() {
168168
.string()
169169
.describe('The ID of the connection to refresh'),
170170
}),
171-
execute: async ({params}) => {
171+
execute: () => {
172172
try {
173173
// await trpc.refreshConnection.mutate({id: params.connection_id})
174174
alert('Connection refreshed successfully!')

apps/web/app/(v1)/console/(authenticated)/connections/client.tsx

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,13 @@
11
'use client'
22

3-
import {Loader2, Trash} from 'lucide-react'
4-
import {useMemo, useState} from 'react'
3+
import {useCommandDefinitionMap} from '@/app/(v1)/GlobalCommandBarProvider'
54
import type {Core} from '@openint/api-v1/models'
65
import {Button} from '@openint/shadcn/ui'
7-
import {
8-
AlertDialog,
9-
AlertDialogAction,
10-
AlertDialogCancel,
11-
AlertDialogContent,
12-
AlertDialogDescription,
13-
AlertDialogFooter,
14-
AlertDialogHeader,
15-
AlertDialogTitle,
16-
AlertDialogTrigger,
17-
} from '@openint/shadcn/ui/alert-dialog'
186
import {Sheet, SheetContent, SheetTitle} from '@openint/shadcn/ui/sheet'
197
import {CommandPopover} from '@openint/ui-v1'
208
import {DataTable, type ColumnDef} from '@openint/ui-v1/components/DataTable'
219
import {useMutation, useSuspenseQuery} from '@openint/ui-v1/trpc'
22-
import {useCommandDefinitionMap} from '@/app/(v1)/GlobalCommandBarProvider'
10+
import {useMemo, useState} from 'react'
2311
import {useTRPC} from '../client'
2412

2513
const columns: Array<ColumnDef<Core['connection']>> = [

apps/web/app/(v1)/console/(authenticated)/connector-config/loading.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from 'react'
2-
31
export default function Loading() {
42
return (
53
<div className="flex h-full w-full items-center justify-center">

apps/web/app/(v1)/console/(authenticated)/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type {PageProps} from '@/lib-common/next-utils'
44
import {currentViewer} from '@/lib-server/auth.server'
55
import type {APICaller} from '@/lib-server/globals'
66
import {createAPICaller} from '@/lib-server/globals'
7-
import {AddConnection, ClientApp, ConnectionList} from './client'
7+
import {AddConnection, ConnectionList} from './client'
88

99
async function AddConnectionServer({
1010
viewer,
@@ -71,7 +71,7 @@ function Fallback() {
7171
}
7272

7373
export default async function Page(props: PageProps) {
74-
const {viewer, token = ''} = await currentViewer(props)
74+
const {viewer} = await currentViewer(props)
7575

7676
const api = createAPICaller(viewer)
7777

packages/commands/command-types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import type {IconName} from '@openint/ui-v1/components/Icon'
21
import type {z} from '@openint/util'
2+
// Hack alert. Figure out how to straighten the dependencies out
3+
import type {IconName} from '../ui-v1/components/Icon'
34

45
export type _infer<T, TDefault = unknown> = T extends z.ZodTypeAny
56
? z.infer<T>

packages/commands/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"@opensdks/util-zod": "^0.0.16"
1111
},
1212
"devDependencies": {
13-
"@openint/ui-v1": "workspace:*",
1413
"inngest": "^3.22.13"
1514
}
1615
}

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)