Skip to content

Commit 4dd6519

Browse files
authored
Updated Section titles & labels (#3185)
Renamed Subscription to Subnet in menus Renamed Settings to Configuration Renamed Diagnostics to Heath Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
1 parent cdffdae commit 4dd6519

File tree

3 files changed

+25
-22
lines changed

3 files changed

+25
-22
lines changed

web-app/src/screens/Console/Configurations/ConfigurationPanels/ConfigurationOptions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const ConfigurationOptions = () => {
102102

103103
return (
104104
<Fragment>
105-
<PageHeaderWrapper label={"Settings"} actions={<HelpMenu />} />
105+
<PageHeaderWrapper label={"Configuration"} actions={<HelpMenu />} />
106106
<PageLayout>
107107
<Grid item xs={12} id={"settings-container"}>
108108
<ScreenTitle

web-app/src/screens/Console/HealthInfo/HealthInfo.tsx

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ const HealthInfo = () => {
6060

6161
const [downloadDisabled, setDownloadDisabled] = useState(true);
6262
const [localMessage, setMessage] = useState<string>("");
63-
const [buttonStartText, setButtonStartText] =
64-
useState<string>("Start Diagnostic");
65-
const [title, setTitle] = useState<string>("New Diagnostic");
63+
const [buttonStartText, setButtonStartText] = useState<string>(
64+
"Start Health Report",
65+
);
66+
const [title, setTitle] = useState<string>("Health Report");
6667
const [diagFileContent, setDiagFileContent] = useState<string>("");
6768
const [subnetResponse, setSubnetResponse] = useState<string>("");
6869
const clusterRegistered = registeredCluster();
@@ -85,24 +86,24 @@ const HealthInfo = () => {
8586

8687
useEffect(() => {
8788
if (serverDiagnosticStatus === DiagStatInProgress) {
88-
setTitle("Diagnostic in progress...");
89+
setTitle("Health Report in progress...");
8990
setMessage(
90-
"Diagnostic started. Please do not refresh page during diagnosis.",
91+
"Health Report started. Please do not refresh page during diagnosis.",
9192
);
9293
return;
9394
}
9495

9596
if (serverDiagnosticStatus === DiagStatSuccess) {
96-
setTitle("Diagnostic complete");
97-
setMessage("Diagnostic file is ready to be downloaded.");
98-
setButtonStartText("Start New Diagnostic");
97+
setTitle("Health Report complete");
98+
setMessage("Health Report file is ready to be downloaded.");
99+
setButtonStartText("Start Health Report");
99100
return;
100101
}
101102

102103
if (serverDiagnosticStatus === DiagStatError) {
103104
setTitle("Error");
104-
setMessage("An error occurred while getting the Diagnostic file.");
105-
setButtonStartText("Retry Diagnostic");
105+
setMessage("An error occurred while getting the Health Report file.");
106+
setButtonStartText("Retry Health Report");
106107
return;
107108
}
108109
}, [serverDiagnosticStatus, startDiagnostic]);
@@ -117,7 +118,7 @@ const HealthInfo = () => {
117118
setDownloadDisabled(false);
118119
}
119120
if (serverDiagnosticStatus === DiagStatInProgress) {
120-
// Disable Start Diagnotic and Disable Download buttons
121+
// Disable Start Health Report and Disable Download buttons
121122
// if a Diagnosis is in progress.
122123
setDownloadDisabled(true);
123124
}
@@ -150,7 +151,7 @@ const HealthInfo = () => {
150151
c.send("ok");
151152
}, 10 * 1000);
152153
setMessage(
153-
"Diagnostic started. Please do not refresh page during diagnosis.",
154+
"Health Report started. Please do not refresh page during diagnosis.",
154155
);
155156
dispatch(setServerDiagStat(DiagStatInProgress));
156157
};
@@ -184,12 +185,14 @@ const HealthInfo = () => {
184185
) {
185186
// handle close with error
186187
console.log("connection closed by server with code:", event.code);
187-
setMessage("An error occurred while getting the Diagnostic file.");
188+
setMessage(
189+
"An error occurred while getting the Health Report file.",
190+
);
188191
dispatch(setServerDiagStat(DiagStatError));
189192
} else {
190193
console.log("connection closed by server");
191194

192-
setMessage("Diagnostic file is ready to be downloaded.");
195+
setMessage("Health Report file is ready to be downloaded.");
193196
dispatch(setServerDiagStat(DiagStatSuccess));
194197
}
195198
};

web-app/src/screens/Console/valid-routes.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,12 @@ export const validRoutes = (
263263
{
264264
group: "Administrator",
265265
path: IAM_PAGES.SETTINGS,
266-
name: "Settings",
266+
name: "Configuration",
267267
id: "configurations",
268268
icon: <SettingsIcon />,
269269
},
270270
{
271-
group: "Subscription",
271+
group: "Subnet",
272272
path: IAM_PAGES.LICENSE,
273273
name: "License",
274274
id: "license",
@@ -277,35 +277,35 @@ export const validRoutes = (
277277
forceDisplay: true,
278278
},
279279
{
280-
group: "Subscription",
280+
group: "Subnet",
281281
name: "Health",
282282
id: "diagnostics",
283283
icon: <HealthMenuIcon />,
284284
path: IAM_PAGES.TOOLS_DIAGNOSTICS,
285285
},
286286
{
287-
group: "Subscription",
287+
group: "Subnet",
288288
name: "Performance",
289289
id: "performance",
290290
icon: <PerformanceMenuIcon />,
291291
path: IAM_PAGES.TOOLS_SPEEDTEST,
292292
},
293293
{
294-
group: "Subscription",
294+
group: "Subnet",
295295
name: "Profile",
296296
id: "profile",
297297
icon: <ProfileMenuIcon />,
298298
path: IAM_PAGES.PROFILE,
299299
},
300300
{
301-
group: "Subscription",
301+
group: "Subnet",
302302
name: "Inspect",
303303
id: "inspectObjects",
304304
path: IAM_PAGES.SUPPORT_INSPECT,
305305
icon: <InspectMenuIcon />,
306306
},
307307
{
308-
group: "Subscription",
308+
group: "Subnet",
309309
name: "Call Home",
310310
id: "callhome",
311311
icon: <CallHomeMenuIcon />,

0 commit comments

Comments
 (0)