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

EcrituresNumeriques / stylo / 17757377092

16 Sep 2025 06:55AM UTC coverage: 39.406% (-0.02%) from 39.426%
17757377092

Pull #1669

github

web-flow
Merge 9fd0e737a into e0e4828af
Pull Request #1669: Remplace Geist toast par react-toastify

586 of 824 branches covered (71.12%)

Branch coverage included in aggregate %.

18 of 152 new or added lines in 19 files covered. (11.84%)

33 existing lines in 12 files now uncovered.

5778 of 15326 relevant lines covered (37.7%)

2.61 hits per line

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

0.0
/front/src/components/ArticleSendCopy.jsx
1
import { Send } from 'lucide-react'
×
NEW
2
import React, { useCallback } from 'react'
×
UNCOV
3
import { useTranslation } from 'react-i18next'
×
NEW
4
import { toast } from 'react-toastify'
×
5

6
import { useArticleActions } from '../hooks/article.js'
×
7

NEW
8
import ContactSearch from './ContactSearch.jsx'
×
9

NEW
10
import styles from './articleSendCopy.module.scss'
×
11

12
export default function ArticleSendCopy({ article }) {
×
13
  const { copy } = useArticleActions({ articleId: article._id })
×
14
  const { t } = useTranslation()
×
15

16
  const handleUserUpdated = useCallback(
×
17
    async ({ user, action }) => {
×
18
      if (action === 'select' || action === 'unselect') {
×
19
        try {
×
20
          await copy(user._id)
×
NEW
21
          toast(
×
NEW
22
            t('article.sendCopy.successNotification', {
×
23
              username: user.displayName || user.username,
×
24
            }),
×
NEW
25
            {
×
NEW
26
              type: 'success',
×
NEW
27
            }
×
NEW
28
          )
×
29
        } catch (err) {
×
NEW
30
          toast(
×
NEW
31
            t('article.sendCopy.errorNotification', {
×
32
              errMessage: err.message,
×
33
            }),
×
NEW
34
            {
×
NEW
35
              type: 'error',
×
NEW
36
            }
×
NEW
37
          )
×
38
        }
×
39
      }
×
40
    },
×
41
    [article._id]
×
42
  )
×
43

44
  return (
×
45
    <section className={styles.acquintances}>
×
46
      <ContactSearch
×
47
        selectedIcon={<Send />}
×
48
        unselectedIcon={<Send />}
×
49
        onUserUpdated={handleUserUpdated}
×
50
        members={[]}
×
51
      />
×
52
    </section>
×
53
  )
54
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc