• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

clippingkk / web / #1178

21 Aug 2025 10:49AM UTC coverage: 0.523% (-0.02%) from 0.546%
#1178

push

web-flow
Merge c060881fd into 4eea96e38

30 of 448 branches covered (6.7%)

Branch coverage included in aggregate %.

12 of 7134 new or added lines in 368 files covered. (0.17%)

3 existing lines in 3 files now uncovered.

147 of 33423 relevant lines covered (0.44%)

8.69 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/app/auth/github/content.tsx
1
'use client'
×
NEW
2
import { useEffect } from 'react'
×
NEW
3
import LoadingIcon from '@/components/icons/loading.svg'
×
4
import { useAuthSuccessed } from '@/hooks/hooks'
×
5
import { useGithubLoginLazyQuery } from '@/schema/generated'
×
6

×
7
type GithubOAuthContentProps = {
×
8
  code: string
×
9
}
×
10

×
11
function GithubOAuthContent(props: GithubOAuthContentProps) {
×
12
  const { code } = props
×
13
  const [exec, resp] = useGithubLoginLazyQuery()
×
14

×
15
  useAuthSuccessed(resp.called, resp.loading, resp.error, resp.data?.githubAuth)
×
16
  useEffect(() => {
×
17
    if (!code) {
×
18
      console.log('no code')
×
19
      // TODO: redirect
×
20
      return
×
21
    }
×
22

×
23
    exec({
×
24
      variables: {
×
NEW
25
        code,
×
NEW
26
      },
×
27
    })
×
NEW
28
  }, [code, exec])
×
29

×
30
  return (
×
31
    <div className='p-10 bg-gray-300 bg-opacity-40 rounded-sm text-4xl backdrop-blur-lg'>
×
NEW
32
      {resp.loading && <LoadingIcon className='animate-spin' />}
×
33
      {resp.error && (
×
NEW
34
        <div className='max-w-sm h-96 overflow-y-auto'>
×
NEW
35
          {resp.error.message}
×
NEW
36
        </div>
×
37
      )}
×
38
    </div>
×
39
  )
×
40
}
×
41

×
42
export default GithubOAuthContent
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc