Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-12007-changed-1744290501828.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Changed
---

Rename `Analytics` tab to `Metrics` tab on Linode details page ([#12007](https://github.com/linode/manager/pull/12007))
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ const LinodesDetailNavigation = () => {

const tabs = [
{
routeName: `${url}/analytics`,
title: 'Analytics',
routeName: `${url}/metrics`,
title: 'Metrics',
},
{
routeName: `${url}/networking`,
Expand Down
8 changes: 4 additions & 4 deletions packages/utilities/src/helpers/arrayToList.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ describe('Array to delimiter-separated list', () => {

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

expect(arrayToList(['apples', 'peas', 'carrots', 'peaches'])).toEqual(
'apples, peas, carrots, and peaches'
'apples, peas, carrots, and peaches',
);
});

it('should use the delimiter provided', () => {
expect(
arrayToList(
['Mumbai, IN', 'Toronto, ON', 'Sydney, AU', 'Atlanta, GA'],
';'
)
';',
),
).toEqual('Mumbai, IN; Toronto, ON; Sydney, AU; and Atlanta, GA');
});

Expand Down
2 changes: 1 addition & 1 deletion packages/utilities/src/helpers/arrayToList.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const arrayToList = (
input: string[],
separator: string = ','
separator: string = ',',
): string => {
if (!Array.isArray(input) || input.length === 0) {
return '';
Expand Down