Skip to content
Open
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-13448-fixed-1772228313479.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Fixed
---

Database Connection Pools table page size ([#13448](https://github.com/linode/manager/pull/13448))
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ import {
import React from 'react';

import { Link } from 'src/components/Link';
import {
MIN_PAGE_SIZE,
PAGE_SIZES,
} from 'src/components/PaginationFooter/PaginationFooter.constants';
import { MIN_PAGE_SIZE } from 'src/components/PaginationFooter/PaginationFooter.constants';
import { DEFAULT_PAGE_SIZES } from 'src/features/Databases/constants';
import {
CONNECTION_POOL_LABEL_CELL_STYLES,
MANAGE_CONNECTION_POOLS_LEARN_MORE_LINK,
Expand Down Expand Up @@ -183,7 +181,7 @@ export const DatabaseConnectionPools = ({ database }: Props) => {
) => pagination.handlePageSizeChange(Number(e.detail.pageSize))}
page={pagination.page}
pageSize={pagination.pageSize}
pageSizes={PAGE_SIZES}
pageSizes={DEFAULT_PAGE_SIZES}
style={{
borderLeft: `1px solid ${theme.tokens.alias.Border.Normal}`,
borderRight: `1px solid ${theme.tokens.alias.Border.Normal}`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import {
} from 'akamai-cds-react-components/Table';
import React from 'react';

import { MIN_PAGE_SIZE } from 'src/components/PaginationFooter/PaginationFooter.constants';
import { TableRowEmpty } from 'src/components/TableRowEmpty/TableRowEmpty';
import { DEFAULT_PAGE_SIZES } from 'src/features/Databases/constants';
import { DatabaseSettingsDeleteClusterDialog } from 'src/features/Databases/DatabaseDetail/DatabaseSettings/DatabaseSettingsDeleteClusterDialog';
import DatabaseSettingsResetPasswordDialog from 'src/features/Databases/DatabaseDetail/DatabaseSettings/DatabaseSettingsResetPasswordDialog';
import { ManageAccessControlDrawer } from 'src/features/Databases/DatabaseDetail/ManageAccessControlDrawer';
Expand Down Expand Up @@ -54,8 +56,6 @@ const DatabaseLandingTable = ({
preferenceKey,
queryParamsPrefix: dbPlatformType,
});
const PAGE_SIZES = [25, 50, 75, 100];
const MIN_PAGE_SIZE = 25;

const [selectedDatabase, setSelectedDatabase] =
React.useState<DatabaseInstance>({} as DatabaseInstance);
Expand Down Expand Up @@ -245,7 +245,7 @@ const DatabaseLandingTable = ({
) => pagination.handlePageSizeChange(Number(e.detail.pageSize))}
page={pagination.page}
pageSize={pagination.pageSize}
pageSizes={PAGE_SIZES}
pageSizes={DEFAULT_PAGE_SIZES}
style={{
borderLeft: `1px solid ${theme.tokens.alias.Border.Normal}`,
borderRight: `1px solid ${theme.tokens.alias.Border.Normal}`,
Expand Down
2 changes: 2 additions & 0 deletions packages/manager/src/features/Databases/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,5 @@ export const usernameOptions = [
{ label: defaultUsername, value: defaultUsername },
{ label: 'akmadmin', value: 'akmadmin' },
]; // Currently the only options for the username field

export const DEFAULT_PAGE_SIZES = [25, 50, 75, 100];