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

alkem-io / client-web / #9504

03 Dec 2024 12:59PM UTC coverage: 5.936%. First build
#9504

Pull #7254

travis-ci

Pull Request #7254: Inn-app Notifications v1 for Beta Testers

194 of 10667 branches covered (1.82%)

Branch coverage included in aggregate %.

40 of 178 new or added lines in 15 files covered. (22.47%)

1532 of 18410 relevant lines covered (8.32%)

0.19 hits per line

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

0.0
/src/main/ui/platformNavigation/PlatformNotificationsButton.tsx
1
import { IconButton, Paper } from '@mui/material';
2
import NotificationsNoneOutlinedIcon from '@mui/icons-material/NotificationsNoneOutlined';
3
import { useTranslation } from 'react-i18next';
4
import BadgeCounter from '@/core/ui/icon/BadgeCounter';
5
import { useInAppNotifications } from '@/main/inAppNotifications/useInAppNotifications';
6
import { useInAppNotificationsContext } from '@/main/inAppNotifications/InAppNotificationsContext';
7

8
export const PlatformNotificationsButton = () => {
9
  const { isEnabled, setIsOpen } = useInAppNotificationsContext();
10
  const { unreadCount } = useInAppNotifications();
NEW
11
  const { t } = useTranslation();
×
NEW
12

×
NEW
13
  const openNotifications = () => {
×
NEW
14
    setIsOpen(true);
×
NEW
15
  };
×
16

NEW
17
  if (!isEnabled) {
×
NEW
18
    return null;
×
19
  }
20

NEW
21
  return (
×
NEW
22
    <Paper
×
23
      component={IconButton}
24
      onClick={openNotifications}
NEW
25
      color="primary"
×
26
      aria-label={t('buttons.notifications')}
NEW
27
      sx={{
×
NEW
28
        position: 'relative',
×
29
        overflow: 'visible',
30
        '&:hover': {
NEW
31
          background: theme => theme.palette.background.paper,
×
32
          opacity: 0.9,
33
        },
34
      }}
35
    >
36
      <NotificationsNoneOutlinedIcon />
37
      {unreadCount > 0 && (
38
        <BadgeCounter count={unreadCount} size="small" sx={{ position: 'absolute', top: -4, right: -4 }} />
39
      )}
40
    </Paper>
NEW
41
  );
×
42
};
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