Skip to content

Commit 7533ce5

Browse files
Ignore generated files and fix lint warnings
1 parent a18c021 commit 7533ce5

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ const eslintConfig = defineConfig([
1111
".next/**",
1212
"out/**",
1313
"build/**",
14+
"coverage/**",
15+
".claude/**",
1416
"next-env.d.ts",
1517
]),
1618
]);

src/app/api/billing/subscription/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { NextResponse } from 'next/server'
2-
import { requireOrgRole, canManageInstance } from '@/lib/auth'
2+
import { requireOrgRole } from '@/lib/auth'
33
import { supabaseAdmin } from '@/lib/supabase/admin'
44
import { updateSubscriptionPlan } from '@/lib/stripe/subscriptions'
55
import { PLANS } from '@/lib/constants'
@@ -12,7 +12,7 @@ const updateSchema = z.object({
1212
})
1313

1414
export async function POST(req: Request) {
15-
const { org, membership } = await requireOrgRole('admin')
15+
const { org } = await requireOrgRole('admin')
1616
const body = await req.json()
1717

1818
const parsed = updateSchema.safeParse(body)

src/components/instances/create-instance-form.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
22

33
import { useState } from 'react'
4-
import { useRouter, useParams } from 'next/navigation'
4+
import { useParams } from 'next/navigation'
55
import { Button } from '@/components/ui/button'
66
import { Input } from '@/components/ui/input'
77
import { Label } from '@/components/ui/label'
@@ -13,7 +13,6 @@ import { toast } from 'sonner'
1313
import { Loader2, Cpu, MemoryStick, Check } from 'lucide-react'
1414

1515
export function CreateInstanceForm() {
16-
const router = useRouter()
1716
const params = useParams<{ orgSlug: string }>()
1817
const [name, setName] = useState('')
1918
const [plan, setPlan] = useState<InstancePlan>('starter')

src/components/instances/instance-overview.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ function ProvisioningProgress({ instance, healthStatus }: { instance: Instance;
2525
const completedCount = steps.filter(s => s.done).length
2626
const currentIdx = steps.findIndex(s => !s.done)
2727

28-
const [now, setNow] = useState(Date.now())
28+
const [now, setNow] = useState(() => new Date(instance.created_at).getTime())
2929
useEffect(() => {
30-
const id = setInterval(() => setNow(Date.now()), 1000)
30+
const updateNow = () => setNow(Date.now())
31+
updateNow()
32+
const id = setInterval(updateNow, 1000)
3133
return () => clearInterval(id)
3234
}, [])
3335
const elapsed = Math.floor((now - new Date(instance.created_at).getTime()) / 1000)

0 commit comments

Comments
 (0)