Skip to content

Commit

Permalink
remove unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Oct 6, 2024
1 parent a421b58 commit 99d50b3
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 71 deletions.
41 changes: 0 additions & 41 deletions src/app/(guest)/test/page.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions src/app/(user)/_components/UserNav.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
'use client'

import { Avatar } from '@/lib/ui/Avatar'
import { Button } from '@/lib/ui/Button'
import { PersonIcon } from '@radix-ui/react-icons'
import {
DropdownMenu,
DropdownMenuContent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,6 @@ import { PullRequest } from '@/app/(user)/pull_requests/_utils/get-pull-requests
import PieChart from '@/lib/ui/PieChart'
import ChartCard from '@/app/(user)/pull_requests/_components/ChartCard'

const chartConfig = {
repo1: {
label: 'Repo 1',
},
repo2: {
label: 'Repo 2',
},
repo3: {
label: 'Repo 2',
},
repo4: {
label: 'Repo 4',
},
}

export const prPerRepoData = [
{
label: 'Repo 1',
Expand Down
3 changes: 1 addition & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import type { Metadata } from 'next'
import { Inter, Onest } from 'next/font/google'
import { Onest } from 'next/font/google'
import { ClerkProvider } from '@clerk/nextjs'
import localFont from 'next/font/local'
import './globals.scss'
import { cn } from '@/lib/utils'
import { TooltipProvider } from '@/lib/ui/Tooltip'
import Script from 'next/script'
import { Toaster } from '@/lib/ui/Toast/Toaster'
Expand Down
1 change: 1 addition & 0 deletions src/lib/ai/chat/get-answer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ interface GetAnswerParams {
persona_emoji_level: number
slack_access_token: string
ext_gh_install_id: number | null
gitlab_access_token: string | null
trello_access_token: string | null
asana_access_token: string | null
ext_trello_new_task_list_id: string | null
Expand Down
1 change: 1 addition & 0 deletions src/lib/ai/chat/tools/get-write-code-tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ interface GetWriteCodeToolParams {
organization: {
id: number
ext_gh_install_id: number | null
gitlab_access_token: string | null
slack_access_token: string
}
answerId: string
Expand Down
6 changes: 0 additions & 6 deletions src/lib/ai/get-write-code-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ export function getWriteCodeCommand(params: GetWriteCodeCommandParams) {

let command = instructions

console.log('INSTRUCTIONS: ')
console.log(instructions)

console.log('CONTEXT: ')
console.log(context)

if (context) {
command += `\nUse the following context to help write the code by following code style, conventions, and references.`
}
Expand Down
1 change: 0 additions & 1 deletion src/lib/github/get-github-access-token.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {
createGithubClient,
GithubClient,
} from '@/lib/github/create-github-client'

Expand Down
1 change: 0 additions & 1 deletion src/lib/github/write-code-for-github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ export async function writeCodeForGithub(
html_url: res.data.html_url,
}
} catch (error) {
console.error('ERROR: ', error)
deleteRepository({ path: directory })
throw error
}
Expand Down
1 change: 0 additions & 1 deletion src/lib/github/write-code-for-gitlab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ export async function writeCodeForGitlab(
html_url: res.web_url,
}
} catch (error) {
console.error('ERROR: ', error)
deleteRepository({ path: directory })
throw error
}
Expand Down
6 changes: 6 additions & 0 deletions src/lib/organization/find-org-with-slack-team-id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ export const findOrgWithSlackTeamId = async (teamId: string) => {
'github.organization.organization_id',
'homie.organization.id',
)
.leftJoin(
'gitlab.app_user',
'gitlab.app_user.organization_id',
'homie.organization.id',
)
.leftJoin(
'trello.workspace',
'trello.workspace.organization_id',
Expand All @@ -26,6 +31,7 @@ export const findOrgWithSlackTeamId = async (teamId: string) => {
.select([
'homie.organization.id',
'ext_gh_install_id',
'gitlab.app_user.gitlab_access_token',
'trello_access_token',
'ext_trello_done_task_list_id',
'ext_trello_new_task_list_id',
Expand Down
1 change: 0 additions & 1 deletion src/lib/ui/PieChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react'
import { Pie, PieChart as RechartsPieChart } from 'recharts'
import clsx from 'clsx'
import {
ChartConfig,
ChartContainer,
ChartLegend,
ChartLegendContent,
Expand Down
1 change: 0 additions & 1 deletion src/queue/jobs/send-daily-reports.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { createJob } from '@/queue/create-job'
import { dbClient } from '@/database/client'
import { formatInTimeZone } from 'date-fns-tz'
import { dispatch } from '@/queue/dispatch'
import { sendOrganizationDailyReport } from '@/queue/jobs/send-organization-daily-report'

export const sendDailyReports = createJob({
Expand Down

0 comments on commit 99d50b3

Please sign in to comment.