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

mendersoftware / mender-server / 10423

11 Nov 2025 04:53PM UTC coverage: 74.435% (-0.1%) from 74.562%
10423

push

gitlab-ci

web-flow
Merge pull request #1071 from mendersoftware/dependabot/npm_and_yarn/frontend/main/development-dependencies-92732187be

3868 of 5393 branches covered (71.72%)

Branch coverage included in aggregate %.

5 of 5 new or added lines in 2 files covered. (100.0%)

176 existing lines in 95 files now uncovered.

64605 of 86597 relevant lines covered (74.6%)

7.74 hits per line

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

99.21
/frontend/src/js/components/helptips/OnboardingTips.tsx
1
// Copyright 2019 Northern.tech AS
2✔
2
//
2✔
3
//    Licensed under the Apache License, Version 2.0 (the "License");
2✔
4
//    you may not use this file except in compliance with the License.
2✔
5
//    You may obtain a copy of the License at
2✔
6
//
2✔
7
//        http://www.apache.org/licenses/LICENSE-2.0
2✔
8
//
2✔
9
//    Unless required by applicable law or agreed to in writing, software
2✔
10
//    distributed under the License is distributed on an "AS IS" BASIS,
2✔
11
//    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2✔
12
//    See the License for the specific language governing permissions and
2✔
13
//    limitations under the License.
2✔
14
import { useDispatch } from 'react-redux';
2✔
15

2✔
16
import { Schedule as HelpIcon } from '@mui/icons-material';
2✔
17
import { Button } from '@mui/material';
2✔
18

2✔
19
import storeActions from '@northern.tech/store/actions';
2✔
20
import { ALL_DEVICES, onboardingSteps } from '@northern.tech/store/constants';
2✔
21
import { advanceOnboarding } from '@northern.tech/store/thunks';
2✔
22

2✔
23
import BaseOnboardingTip, { BaseOnboardingTooltip } from './BaseOnoardingTip';
2✔
24

2✔
25
const { setShowConnectingDialog, setShowDismissOnboardingTipsDialog } = storeActions;
23✔
26

2✔
27
export const DevicePendingTip = props => (
23✔
28
  <BaseOnboardingTip
3✔
29
    icon={<HelpIcon />}
2✔
30
    component={<div>If you followed the steps in &quot;Connecting a device&quot;, your device will show here shortly.</div>}
2✔
31
    {...props}
2✔
32
  />
2✔
33
);
2✔
34

2✔
35
export const GetStartedTip = props => {
23✔
36
  const dispatch = useDispatch();
3✔
37
  return (
3✔
38
    <BaseOnboardingTooltip {...props}>
2✔
39
      <div className="margin-top" style={{ marginBottom: -12 }}>
2✔
40
        <p>
2✔
41
          <b>Welcome to Mender!</b>
2✔
42
        </p>
2✔
43
        We can help you get started with connecting your first device and deploying an update to it.
2✔
44
        <div className="flexbox center-aligned margin-top-small space-between">
2✔
UNCOV
45
          <b className="clickable slightly-smaller" onClick={() => dispatch(setShowDismissOnboardingTipsDialog(true))}>
2✔
46
            No thanks, I don&apos;t need help
2✔
47
          </b>
2✔
UNCOV
48
          <Button onClick={() => dispatch(setShowConnectingDialog(true))}>Get started</Button>
2✔
49
        </div>
2✔
50
      </div>
2✔
51
    </BaseOnboardingTooltip>
2✔
52
  );
2✔
53
};
2✔
54

2✔
55
export const DevicesPendingDelayed = () => (
23✔
56
  <div>If your device still isn&apos;t showing, try following the connection steps again or see our documentation for more.</div>
2✔
57
);
2✔
58

2✔
59
export const DashboardOnboardingState = () => <div>Your device has requested to join the server. Click the row to expand the device details.</div>;
23✔
60

2✔
61
export const DevicesPendingAcceptingOnboarding = () => (
23✔
62
  <div>
3✔
63
    Your device has made a request to join the Mender server. You can inspect its identity details, such as mac address and public key, to verify it is
2✔
64
    definitely your device.
2✔
65
    <br />
2✔
66
    When you are ready, Accept it!
2✔
67
  </div>
2✔
68
);
2✔
69

2✔
70
export const DashboardOnboardingPendings = () => <div>Next accept your device</div>;
23✔
71

2✔
72
export const DevicesAcceptedOnboarding = props => {
23✔
73
  const dispatch = useDispatch();
3✔
74
  return (
3✔
75
    <BaseOnboardingTooltip {...props}>
2✔
76
      <div className="margin-top" style={{ marginBottom: -12 }}>
2✔
77
        <div>
2✔
78
          <p>Your device is now authenticated and has connected to the server! It&apos;s ready to receive updates, report its data and more.</p>
2✔
79
          Would you like to learn how to deploy your first update?
2✔
80
        </div>
2✔
81
        <div className="flexbox center-aligned margin-top-small space-between">
2✔
UNCOV
82
          <b className="clickable slightly-smaller" onClick={() => dispatch(setShowDismissOnboardingTipsDialog(true))}>
2✔
83
            Dismiss the tutorial
2✔
84
          </b>
2✔
UNCOV
85
          <Button onClick={() => dispatch(advanceOnboarding(onboardingSteps.DEVICES_ACCEPTED_ONBOARDING))}>Yes, let&apos;s deploy!</Button>
2✔
86
        </div>
2✔
87
      </div>
2✔
88
    </BaseOnboardingTooltip>
2✔
89
  );
2✔
90
};
2✔
91

2✔
92
export const DevicesDeployReleaseOnboarding = () => <div>Select &apos;Device actions&apos; to view the list of actions for your device.</div>;
23✔
93

2✔
94
export const DevicesDeployReleaseOnboardingStep2 = () => (
23✔
95
  <div>Choose &apos;Create deployment for this device&apos; to deploy an update using the demo software provided.</div>
2✔
96
);
2✔
97

2✔
98
export const SchedulingArtifactSelection = ({ selectedRelease }) => <div>{`Select the ${selectedRelease.name} release we included.`}</div>;
23✔
99

2✔
100
export const SchedulingAllDevicesSelection = () => (
23✔
101
  <div>
3✔
102
    Select &apos;All devices&apos; for now.<p>You can learn how to create device groups later.</p>
2✔
103
  </div>
2✔
104
);
2✔
105

2✔
106
export const SchedulingGroupSelection = ({ createdGroup }) => <div>{`Select the ${createdGroup} device group you just made.`}</div>;
23✔
107

2✔
108
export const SchedulingReleaseToDevices = ({ selectedDevice, selectedGroup, selectedRelease }) => (
23✔
109
  <div>{`Create the deployment! This will deploy the ${selectedRelease.name} Artifact to ${
3✔
110
    selectedDevice ? selectedDevice.id : selectedGroup || ALL_DEVICES
2!
111
  }`}</div>
2✔
112
);
2✔
113

2✔
114
export const DeploymentsInprogress = () => <div>Your deployment is in progress. Click to view a report</div>;
23✔
115

2✔
116
export const DeploymentUploadFinished = () => <div>Your deployment has finished. Click to close the panel</div>;
23✔
117

2✔
118
export const DeploymentsPast = () => <div>Your deployment has finished, click here to view it</div>;
23✔
119

2✔
120
export const DeploymentsPastCompletedFailure = () => (
23✔
121
  <div>Your deployment has finished, but it looks like there was a problem. Click to view the deployment report, where you can see the error log.</div>
3✔
122
);
2✔
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

© 2025 Coveralls, Inc