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

CBIIT / bento-icdc-frontend / 26530955228

27 May 2026 06:34PM UTC coverage: 17.321% (-8.4%) from 25.73%
26530955228

Pull #1607

github

web-flow
Merge 361b68ce9 into bc935f39c
Pull Request #1607: Feature/ai test studio - ICDC-4165 & ICDC-4171

306 of 2599 branches covered (11.77%)

Branch coverage included in aggregate %.

1 of 4346 new or added lines in 75 files covered. (0.02%)

2 existing lines in 2 files now uncovered.

2197 of 11852 relevant lines covered (18.54%)

0.41 hits per line

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

0.0
/src/components/AddToCartDialog/AddToCartDialogAlertView.jsx
1
// import React from "react";
2
// import { Dialog, DialogContent, DialogContentText } from "@material-ui/core";
3
// import DialogThemeProvider from "./dialogThemeConfig";
4

5
// function AddToCartDialogAlertView(props) {
6
//   const { open, classes, onClose } = props;
7
//   const closeAlertModelTimer = 4000;
8

9
//   const alertMessage =
10
//     "The cart is limited to 2,000 files. Please narrow the search criteria or remove some files from the cart to add more.";
11

12
//   const AlertDialog = (
13
//     <DialogThemeProvider>
14
//       <Dialog
15
//         open={open}
16
//         aria-labelledby="alert-dialog-title"
17
//         aria-describedby="alert-dialog-description"
18
//         className={classes.popUpWindow}
19
//       >
20
//         <DialogContent className={classes.popUpWindowContent}>
21
//           <DialogContentText id="alert-dialog-description">
22
//             {alertMessage}
23
//           </DialogContentText>
24
//         </DialogContent>
25
//       </Dialog>
26
//     </DialogThemeProvider>
27
//   );
28

29
//   if (open === true) {
30
//     //  close the Dialog after 3 seconds.
31
//     setTimeout(() => {
32
//       onClose();
33
//     }, closeAlertModelTimer);
34
//   }
35
//   return AlertDialog;
36
// }
37

38
// export default AddToCartDialogAlertView;
39

40
import React, { useEffect } from 'react';
41
import { Dialog, DialogContent, DialogContentText } from '@material-ui/core';
42
import DialogThemeProvider from './dialogThemeConfig';
43

44
function AddToCartDialogAlertView(props) {
45
  const { open, classes, onClose } = props;
×
46
  const closeAlertModelTimer = 4000;
×
47

48
  const alertMessage =
NEW
49
    'The cart is limited to 2,000 files. Please narrow the search criteria or remove some files from the cart to add more.';
×
50

NEW
51
  useEffect(() => {
×
NEW
52
    if (!open) return undefined;
×
53

NEW
54
    const timerId = setTimeout(() => {
×
NEW
55
      onClose();
×
56
    }, closeAlertModelTimer);
57

NEW
58
    return () => clearTimeout(timerId);
×
59
  }, [open, onClose]);
60

NEW
61
  return (
×
62
    <DialogThemeProvider>
63
      <Dialog
64
        open={open}
65
        aria-labelledby="alert-dialog-title"
66
        aria-describedby="alert-dialog-description"
67
        className={classes.popUpWindow}
68
      >
69
        <DialogContent className={classes.popUpWindowContent}>
70
          <DialogContentText id="alert-dialog-description">
71
            {alertMessage}
72
          </DialogContentText>
73
        </DialogContent>
74
      </Dialog>
75
    </DialogThemeProvider>
76
  );
77
}
78

79
export default AddToCartDialogAlertView;
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