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

CaptainFact / captain-fact-frontend / 20411409289

21 Dec 2025 02:42PM UTC coverage: 1.46% (-1.8%) from 3.249%
20411409289

push

github

Betree
iterate

26 of 1952 branches covered (1.33%)

Branch coverage included in aggregate %.

1 of 8 new or added lines in 4 files covered. (12.5%)

528 existing lines in 32 files now uncovered.

39 of 2500 relevant lines covered (1.56%)

0.07 hits per line

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

0.0
/app/components/Statements/StatementHeader.jsx
1
import React from 'react'
2
import { withTranslation } from 'react-i18next'
3
import Popup from 'reactjs-popup'
4
import { InfoCircle } from 'styled-icons/fa-solid'
5

6
import Message from '../Utils/Message'
7
import TimeDisplay from '../Utils/TimeDisplay'
8
import { StatementDropdownMenu } from './StatementDropdownMenu'
9

10
export default withTranslation('videoDebate')(
11
  ({
12
    t,
13
    statementTime,
14
    isDraft,
15
    speaker,
16
    handleShowHistory,
17
    handleEdit,
18
    handleShare,
19
    handleDelete,
20
    withoutActions,
21
    customButtons = null,
×
22
  }) => (
UNCOV
23
    <header className="flex items-center justify-between border-b border-gray-200 dark:border-border p-3 dark:bg-background">
×
24
      <div className="flex items-center">
25
        <div className="mr-2 min-w-[60px] border-r border-gray-200 dark:border-border pr-2.5 text-gray-600 dark:text-muted-foreground font-medium">
26
          <TimeDisplay time={statementTime} textClassName="sm:text-sm text-xs" />
27
        </div>
28
        {isDraft && (
×
29
          <Popup
30
            contentStyle={{ zIndex: 999, maxWidth: 350 }}
31
            on="hover"
32
            trigger={
33
              <div className="mr-2">
34
                <span className="inline-flex items-center rounded-md bg-yellow-100 dark:bg-yellow-900 px-2 py-1 text-xs text-yellow-800 dark:text-yellow-200">
35
                  <span className="mr-1">{t('statement.draft')}</span>
36
                  <InfoCircle size={12} />
37
                </span>
38
              </div>
39
            }
40
          >
41
            <Message type="dark">{t('statement.draftDetails')}</Message>
42
          </Popup>
43
        )}
44
        {speaker && speaker.picture && (
×
45
          <img className="mr-1.5 h-6 w-6 rounded-full" src={speaker.picture} alt="" />
46
        )}
47
        <strong className="sm:text-base text-xs mr-1 dark:text-foreground">
48
          {speaker ? speaker.fullName : ''}
×
49
        </strong>
50
      </div>
51
      <div className="flex items-center gap-2">
52
        {customButtons}
53
        {!withoutActions && (
×
54
          <StatementDropdownMenu
55
            isDraft={isDraft}
56
            handleDelete={handleDelete}
57
            handleEdit={handleEdit}
58
            handleShowHistory={handleShowHistory}
59
            handleShare={handleShare}
60
          />
61
        )}
62
      </div>
63
    </header>
64
  ),
65
)
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