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

EcrituresNumeriques / stylo / 15835468493

23 Jun 2025 09:24PM UTC coverage: 39.218% (-0.2%) from 39.44%
15835468493

push

github

web-flow
Améliore la navigation suite à l'authentification (#1615)

571 of 801 branches covered (71.29%)

Branch coverage included in aggregate %.

18 of 195 new or added lines in 8 files covered. (9.23%)

5 existing lines in 3 files now uncovered.

5616 of 14975 relevant lines covered (37.5%)

2.66 hits per line

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

0.0
/front/src/components/workspace/WorkspacesMenu.jsx
NEW
1
import React from 'react'
×
NEW
2
import { NavLink } from 'react-router'
×
3

NEW
4
import { useWorkspaces } from '../../hooks/workspace.js'
×
5

NEW
6
import Alert from '../molecules/Alert.jsx'
×
NEW
7
import Loading from '../molecules/Loading.jsx'
×
8

NEW
9
import styles from '../header.module.scss'
×
10

NEW
11
export default function WorkspacesMenu({ activeTool }) {
×
NEW
12
  const { workspaces, error, isLoading } = useWorkspaces()
×
NEW
13
  if (isLoading) {
×
NEW
14
    return <Loading />
×
NEW
15
  }
×
NEW
16
  if (error) {
×
NEW
17
    return <Alert Alert={error.message} />
×
NEW
18
  }
×
NEW
19
  return (
×
NEW
20
    <>
×
NEW
21
      {workspaces.map((workspace) => (
×
NEW
22
        <li key={workspace._id}>
×
NEW
23
          <NavLink
×
NEW
24
            to={`/workspaces/${workspace._id}/${activeTool}`}
×
NEW
25
            state={{ from: location.pathname }}
×
26
          >
NEW
27
            <span
×
NEW
28
              className={styles.chip}
×
NEW
29
              style={{ backgroundColor: workspace.color }}
×
NEW
30
            />
×
31

NEW
32
            {workspace.name}
×
NEW
33
          </NavLink>
×
NEW
34
        </li>
×
NEW
35
      ))}
×
NEW
36
    </>
×
37
  )
NEW
38
}
×
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