Skip to content

Commit eaff2e0

Browse files
Fixed Pagination issue in kubernetes plans table (#13126)
* fixed: [UIE-9656] fixed pagination issue in kubernetes
1 parent 765a0ba commit eaff2e0

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

packages/manager/src/features/Account/Maintenance/utilities.test.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import type { AccountMaintenance } from '@linode/api-v4';
1111
const NOW_ISO = '2025-10-27T12:00:00.000Z';
1212

1313
describe('Account Maintenance utilities', () => {
14-
1514
const baseMaintenance: Omit<AccountMaintenance, 'when'> & { when: string } = {
1615
complete_time: null,
1716
description: 'scheduled',
@@ -42,9 +41,7 @@ describe('Account Maintenance utilities', () => {
4241
...baseMaintenance,
4342
start_time: '2025-10-27T12:00:00.000Z',
4443
};
45-
expect(deriveMaintenanceStartISO(m)).toBe(
46-
'2025-10-27T12:00:00.000Z'
47-
);
44+
expect(deriveMaintenanceStartISO(m)).toBe('2025-10-27T12:00:00.000Z');
4845
});
4946

5047
it('uses when directly as start time (when already accounts for notification period)', () => {
@@ -54,9 +51,7 @@ describe('Account Maintenance utilities', () => {
5451
when: '2025-10-27T09:00:00.000Z',
5552
};
5653
// `when` already accounts for notification_period_sec, so it IS the start time
57-
expect(deriveMaintenanceStartISO(m)).toBe(
58-
'2025-10-27T09:00:00.000Z'
59-
);
54+
expect(deriveMaintenanceStartISO(m)).toBe('2025-10-27T09:00:00.000Z');
6055
});
6156

6257
it('uses when directly for all statuses without needing policies', () => {

packages/manager/src/features/Kubernetes/KubernetesPlansPanel/KubernetesPlanContainer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ export const KubernetesPlanContainer = (
408408
customOptions={PLAN_PANEL_PAGE_SIZE_OPTIONS}
409409
handlePageChange={handlePageChange}
410410
handleSizeChange={handlePageSizeChange}
411+
minPageSize={PLAN_PANEL_PAGE_SIZE_OPTIONS[0].value}
411412
page={page}
412413
pageSize={pageSize}
413414
sx={{

0 commit comments

Comments
 (0)