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

zooniverse / front-end-monorepo / 16483941485

23 Jul 2025 11:24PM UTC coverage: 77.14%. First build
16483941485

Pull #6972

github

web-flow
Merge 177ac29d5 into e09dfce1b
Pull Request #6972: lib-react-components: Add CollectIconButton, CollectionsModal, and related components

11378 of 17314 branches covered (65.72%)

Branch coverage included in aggregate %.

89 of 150 new or added lines in 18 files covered. (59.33%)

17670 of 20342 relevant lines covered (86.86%)

394.83 hits per line

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

10.81
/packages/lib-react-components/src/helpers/collections/createCollection.js
1
import { collections } from '@zooniverse/panoptes-js'
1✔
2
import auth from 'panoptes-client/lib/auth'
1!
3

NEW
4
export async function createCollection({ options, projectId, subjectIds }) {
×
NEW
5
  const token = await auth.checkBearerToken()
×
NEW
6
  const authorization = `Bearer ${token}`
×
7

NEW
8
  const response = await collections.create({
×
9
    authorization,
10
    data: options,
11
    project: projectId,
12
    subjects: subjectIds
13
  })
14

NEW
15
  const [newCollection] = response.body.collections
×
NEW
16
  return newCollection
×
NEW
17
}
×
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