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

EcrituresNumeriques / stylo / 14090633575

26 Mar 2025 06:19PM UTC coverage: 31.811% (+0.01%) from 31.801%
14090633575

push

github

web-flow
chore: remplace feather par lucide (plus d'icĂ´nes) (#1374)

470 of 703 branches covered (66.86%)

Branch coverage included in aggregate %.

4 of 47 new or added lines in 46 files covered. (8.51%)

2 existing lines in 1 file now uncovered.

4483 of 14867 relevant lines covered (30.15%)

2.26 hits per line

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

0.0
/front/src/components/Write/ArticleEditorMetadata.jsx
1
import React, { useCallback } from 'react'
×
2
import { useDispatch, useSelector } from 'react-redux'
×
3
import { useTranslation } from 'react-i18next'
×
NEW
4
import { Sidebar } from 'lucide-react'
×
5

6
import styles from './articleEditorMetadata.module.scss'
×
7
import ArticleMetadata from './ArticleMetadata.jsx'
×
8

9
/**
10
 * @param {object} props
11
 * @param {(object) => void} props.onChange
12
 * @param {boolean} props.readOnly
13
 * @param {object} props.metadata
14
 * @returns {Element}
15
 */
16
export default function ArticleEditorMetadata({
×
17
  onChange,
×
18
  readOnly,
×
19
  metadata,
×
20
}) {
×
21
  const { t } = useTranslation()
×
22
  const dispatch = useDispatch()
×
23
  const expanded = useSelector(
×
24
    (state) => state.articlePreferences.expandSidebarRight
×
25
  )
×
26

27
  const toggleExpand = useCallback(
×
28
    () =>
×
29
      dispatch({
×
30
        type: 'ARTICLE_PREFERENCES_TOGGLE',
×
31
        key: 'expandSidebarRight',
×
32
      }),
×
33
    []
×
34
  )
×
35

36
  return (
×
37
    <nav className={`${expanded ? styles.expandRight : styles.retractRight}`}>
×
38
      <button
×
39
        onClick={toggleExpand}
×
40
        className={expanded ? styles.close : styles.open}
×
41
      >
42
        <Sidebar />
×
43
        {expanded
×
44
          ? t('write.sidebar.closeButton')
×
45
          : t('write.sidebar.metadataButton')}
×
46
      </button>
×
47
      {expanded && (
×
48
        <ArticleMetadata
×
49
          metadata={metadata}
×
50
          onChange={onChange}
×
51
          readOnly={readOnly}
×
52
        />
×
53
      )}
54
    </nav>
×
55
  )
56
}
×
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