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

stacklok / codegate-ui / 13325211149

14 Feb 2025 08:17AM UTC coverage: 68.625% (+0.02%) from 68.603%
13325211149

Pull #315

github

web-flow
Merge 7bf78fe19 into 0805f21ad
Pull Request #315: chore: configure prettier & apply formatting

364 of 590 branches covered (61.69%)

Branch coverage included in aggregate %.

360 of 519 new or added lines in 99 files covered. (69.36%)

5 existing lines in 4 files now uncovered.

769 of 1061 relevant lines covered (72.48%)

71.26 hits per line

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

0.0
/src/features/providers/hooks/use-mutation-create-provider.ts
1
import { v1AddProviderEndpointMutation } from '@/api/generated/@tanstack/react-query.gen'
2
import { useToastMutation } from '@/hooks/use-toast-mutation'
3
import { useInvalidateProvidersQueries } from './use-invalidate-providers-queries'
4
import { useNavigate } from 'react-router-dom'
5

6
export function useMutationCreateProvider() {
NEW
7
  const navigate = useNavigate()
×
NEW
8
  const invalidate = useInvalidateProvidersQueries()
×
UNCOV
9
  return useToastMutation({
×
10
    ...v1AddProviderEndpointMutation(),
11
    successMsg: 'Successfully added provider',
12
    onSuccess: async () => {
NEW
13
      await invalidate()
×
NEW
14
      navigate('/providers')
×
15
    },
16
  })
17
}
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

© 2025 Coveralls, Inc