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

CBIIT / INS-WebPortal / 21869757389

10 Feb 2026 02:52PM UTC coverage: 2.819% (-0.03%) from 2.85%
21869757389

push

github

web-flow
Merge pull request #493 from CBIIT/INS-1526

INS-1526 Added in privacy banner notice

49 of 1795 branches covered (2.73%)

Branch coverage included in aggregate %.

0 of 50 new or added lines in 3 files covered. (0.0%)

95 of 3314 relevant lines covered (2.87%)

11.64 hits per line

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

0.0
/src/components/OverlayWindow/OverlayWindow.js
NEW
1
import React, { useEffect, useState } from 'react';
×
NEW
2
import {
×
3
  Dialog,
4
  DialogContent,
5
  DialogContentText,
6
  Button,
7
  DialogTitle,
8
  Divider,
9
  List,
10
  ListItem,
11
  ListItemText,
12
  ListItemIcon,
13
  DialogActions,
14
} from '@material-ui/core';
NEW
15
import FiberManualRecord from '@material-ui/icons/FiberManualRecord';
×
NEW
16
import * as text from './OverlayText.json';
×
NEW
17
import DialogThemeProvider from './OverlayThemeConfig';
×
18

NEW
19
const OverlayWindow = () => {
×
NEW
20
  const [open, setOpen] = useState(false);
×
21

NEW
22
  const handleClose = () => {
×
NEW
23
    setOpen(false);
×
NEW
24
    sessionStorage.setItem('overlayLoad', 'true');
×
25
  };
26

NEW
27
  useEffect(() => {
×
NEW
28
    if (sessionStorage.getItem('overlayLoad') !== 'true') {
×
NEW
29
      setOpen(true);
×
30
    }
31
  }, []);
32

NEW
33
  const content = text.content.map((item) => (
×
NEW
34
    <DialogContentText key={item.substring(0, 30)}>{item}</DialogContentText>
×
35
  ));
NEW
36
  const list = text.list.map((item) => (
×
NEW
37
    <ListItem key={item.substring(0, 30)}>
×
38
      <ListItemIcon>
39
        <FiberManualRecord style={{ fontSize: 8 }} />
40
      </ListItemIcon>
41
      <ListItemText primary={item} />
42
    </ListItem>
43
  ));
44

NEW
45
  return (
×
46
    <DialogThemeProvider>
47
      <Dialog
48
        open={open}
49
        aria-labelledby="alert-dialog-title"
50
        maxWidth="md"
51
      >
52
        <DialogTitle id="alert-dialog-title">Warning</DialogTitle>
53
        <Divider />
54
        <DialogContent>
55
          {content}
56
          {' By using this system, you understand and consent to the following: '}
57
          <List>
58
            {list}
59
          </List>
60
        </DialogContent>
61
        <Divider />
62
        <DialogActions>
63
          <Button onClick={handleClose}>Continue</Button>
64
        </DialogActions>
65
      </Dialog>
66
    </DialogThemeProvider>
67
  );
NEW
68
};
×
69

70
export default OverlayWindow;
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