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

CaptainFact / captain-fact-frontend / 12936416000

23 Jan 2025 08:45AM UTC coverage: 5.515% (-1.4%) from 6.953%
12936416000

push

github

Betree
chore: Migrate to tailwind

43 of 1641 branches covered (2.62%)

Branch coverage included in aggregate %.

6 of 301 new or added lines in 93 files covered. (1.99%)

93 existing lines in 38 files now uncovered.

192 of 2620 relevant lines covered (7.33%)

0.17 hits per line

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

0.0
/app/components/UsersActions/ActionsDirectionFilter.js
1
import React from 'react'
2
import { Trans } from 'react-i18next'
3
import { Link } from 'react-router-dom'
4

5
import { cn } from '@/lib/css-utils'
6

7
import { TabsList, TabsTrigger } from '../ui/tabs'
8
import UserAppellation from '../Users/UserAppellation'
9

NEW
10
const ActionsDirectionFilter = ({ user, value }) => {
×
11
  const baseLink = `/u/${user.username}`
×
12
  const getLinkProps = (filterValue) => ({
×
13
    className: cn('text-black hover:text-black'),
14
    to: filterValue === 'ALL' ? baseLink : `${baseLink}?direction=${filterValue}`,
×
15
  })
16

17
  return (
×
18
    <TabsList value={value}>
19
      <Link {...getLinkProps('ALL')}>
20
        <TabsTrigger value="ALL">
21
          <Trans i18nKey="history:actionDirection.all">All</Trans>
22
        </TabsTrigger>
23
      </Link>
24
      <Link {...getLinkProps('AUTHOR')}>
25
        <TabsTrigger value="AUTHOR">
26
          <Trans i18nKey="history:actionDirection.authored" parent="span">
27
            From&nbsp;
28
            <UserAppellation defaultComponent="span" user={user} compact withoutActions />
29
          </Trans>
30
        </TabsTrigger>
31
      </Link>
32
      <Link {...getLinkProps('TARGET')}>
33
        <TabsTrigger value="TARGET">
34
          <Trans i18nKey="history:actionDirection.target" parent="span">
35
            Targeting&nbsp;
36
            <UserAppellation defaultComponent="span" user={user} compact withoutActions />
37
          </Trans>
38
        </TabsTrigger>
39
      </Link>
40
    </TabsList>
41
  )
42
}
43

44
export default ActionsDirectionFilter
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