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

IQSS / dataverse-frontend / 11581077667

29 Oct 2024 07:27PM UTC coverage: 97.486% (-0.03%) from 97.518%
11581077667

Pull #531

github

ChengShi-1
fix: change the order of 'revoke' in e2e test
Pull Request #531: API Token use cases integration for account page

1453 of 1518 branches covered (95.72%)

Branch coverage included in aggregate %.

71 of 71 new or added lines in 5 files covered. (100.0%)

2 existing lines in 1 file now uncovered.

3821 of 3892 relevant lines covered (98.18%)

8732.62 hits per line

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

75.0
/src/sections/collection/publish-collection/PublishCollectionButton.tsx
1
import { useTranslation } from 'react-i18next'
2
import { useState } from 'react'
3
import { CollectionRepository } from '../../../collection/domain/repositories/CollectionRepository'
4
import { PublishCollectionModal } from './PublishCollectionModal'
5
import { Button } from '@iqss/dataverse-design-system'
6
import { GlobeAmericas } from 'react-bootstrap-icons'
7
import styles from '../../shared/add-data-actions/AddDataActionsButton.module.scss'
8

9
interface PublishCollectionButtonProps {
10
  repository: CollectionRepository
11
  collectionId: string
12
}
13
export function PublishCollectionButton({
10✔
14
  repository,
15
  collectionId
16
}: PublishCollectionButtonProps) {
6✔
17
  const { t } = useTranslation('collection')
10✔
18
  const [showModal, setShowModal] = useState(false)
6✔
19

20
  return (
6✔
21
    <>
22
      <PublishCollectionModal
23
        show={showModal}
24
        repository={repository}
25
        collectionId={collectionId}
UNCOV
26
        handleClose={() => setShowModal(false)}
×
27
      />
28
      <Button
29
        icon={<GlobeAmericas className={styles.icon} />}
30
        variant="secondary"
UNCOV
31
        onClick={() => setShowModal(true)}
×
32
        type="button">
33
        {t('publish.button')}
34
      </Button>
35
    </>
36
  )
37
}
10✔
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

© 2025 Coveralls, Inc