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

CaptainFact / captain-fact-frontend / 19996954966

07 Dec 2025 01:19AM UTC coverage: 5.41% (-0.2%) from 5.567%
19996954966

Pull #1407

github

Betree
iterate
Pull Request #1407: Dark mode

43 of 1740 branches covered (2.47%)

Branch coverage included in aggregate %.

0 of 63 new or added lines in 13 files covered. (0.0%)

5 existing lines in 5 files now uncovered.

192 of 2604 relevant lines covered (7.37%)

0.18 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
    handleTimeClick,
17
    handleShowHistory,
18
    handleEdit,
19
    handleShare,
20
    handleDelete,
21
    withoutActions,
22
    customButtons = null,
×
23
  }) => (
NEW
24
    <header className="flex items-center justify-between border-b border-gray-200 dark:border-border p-3 dark:bg-background">
×
25
      <div className="flex items-center">
26
        <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">
27
          <TimeDisplay
28
            time={statementTime}
29
            handleClick={handleTimeClick}
30
            textClassName="sm:text-sm text-xs"
31
          />
32
        </div>
33
        {isDraft && (
×
34
          <Popup
35
            contentStyle={{ zIndex: 999, maxWidth: 350 }}
36
            on="hover"
37
            trigger={
38
              <div className="mr-2">
39
                <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">
40
                  <span className="mr-1">{t('statement.draft')}</span>
41
                  <InfoCircle size={12} />
42
                </span>
43
              </div>
44
            }
45
          >
46
            <Message type="dark">{t('statement.draftDetails')}</Message>
47
          </Popup>
48
        )}
49
        {speaker && speaker.picture && (
×
50
          <img className="mr-1.5 h-6 w-6 rounded-full" src={speaker.picture} alt="" />
51
        )}
52
        <strong className="sm:text-base text-xs mr-1 dark:text-foreground">
53
          {speaker ? speaker.full_name : ''}
×
54
        </strong>
55
      </div>
56
      <div className="flex items-center gap-2">
57
        {customButtons}
58
        {!withoutActions && (
×
59
          <StatementDropdownMenu
60
            isDraft={isDraft}
61
            handleDelete={handleDelete}
62
            handleEdit={handleEdit}
63
            handleShowHistory={handleShowHistory}
64
            handleShare={handleShare}
65
          />
66
        )}
67
      </div>
68
    </header>
69
  ),
70
)
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