Skip to content

Commit 80b5607

Browse files
change: [M3-9743] - Rename Analytics tab to Metrics tab on Linode details page (linode#12007)
* Rename `Analytics` tab to `Metrics` tab * Random lint fixes * Added changeset: Rename `Analytics` tab to `Metrics` tab on Linode details page
1 parent 41f867b commit 80b5607

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@linode/manager": Changed
3+
---
4+
5+
Rename `Analytics` tab to `Metrics` tab on Linode details page ([#12007](https://github.com/linode/manager/pull/12007))

packages/manager/src/features/Linodes/LinodesDetail/LinodesDetailNavigation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ const LinodesDetailNavigation = () => {
5454

5555
const tabs = [
5656
{
57-
routeName: `${url}/analytics`,
58-
title: 'Analytics',
57+
routeName: `${url}/metrics`,
58+
title: 'Metrics',
5959
},
6060
{
6161
routeName: `${url}/networking`,

packages/utilities/src/helpers/arrayToList.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ describe('Array to delimiter-separated list', () => {
1313

1414
it('should return a list with three or more items as Oxford comma separated', () => {
1515
expect(arrayToList(['hello', 'goodbye', 'good riddance'])).toEqual(
16-
'hello, goodbye, and good riddance'
16+
'hello, goodbye, and good riddance',
1717
);
1818

1919
expect(arrayToList(['apples', 'peas', 'carrots', 'peaches'])).toEqual(
20-
'apples, peas, carrots, and peaches'
20+
'apples, peas, carrots, and peaches',
2121
);
2222
});
2323

2424
it('should use the delimiter provided', () => {
2525
expect(
2626
arrayToList(
2727
['Mumbai, IN', 'Toronto, ON', 'Sydney, AU', 'Atlanta, GA'],
28-
';'
29-
)
28+
';',
29+
),
3030
).toEqual('Mumbai, IN; Toronto, ON; Sydney, AU; and Atlanta, GA');
3131
});
3232

packages/utilities/src/helpers/arrayToList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const arrayToList = (
22
input: string[],
3-
separator: string = ','
3+
separator: string = ',',
44
): string => {
55
if (!Array.isArray(input) || input.length === 0) {
66
return '';

0 commit comments

Comments
 (0)