-
-
- className={styles.packsTable}
- columns={columns}
- dataSource={filteredPacks}
- loading={loading}
- scrollY={250}
- pagination={{ pageSize: 250 }}
- />
- {error && Failed to load Deprecated Packs
}
+
+
+
+
+ The current screen size is not supported. Use a larger display to access the Packs table.
+
+
+
+
+
+
+
+
`${record.name}-${record.version}-${record.hash}`}
+ pagination={{
+ pageSizeOptions: ["500", "1000", "2500", "5000"],
+ defaultPageSize: 1000,
+ showSizeChanger: true,
+ }}
+ scroll={{ y: 800 }}
+ bordered
+ tableLayout="fixed"
+ sticky
+ />
+ {error && Failed to load Deprecated Packs
}
+
+
);
};
diff --git a/src/components/PacksTable/__mocks__/@docusaurus/theme-common.ts b/src/components/PacksTable/__mocks__/@docusaurus/theme-common.ts
new file mode 100644
index 0000000000..9cc4a7910c
--- /dev/null
+++ b/src/components/PacksTable/__mocks__/@docusaurus/theme-common.ts
@@ -0,0 +1,4 @@
+export const useColorMode = () => ({
+ colorMode: "light",
+ setColorMode: jest.fn(),
+});
diff --git a/src/components/PacksTable/__mocks__/@theme/Admonition.tsx b/src/components/PacksTable/__mocks__/@theme/Admonition.tsx
new file mode 100644
index 0000000000..bf8c7c295e
--- /dev/null
+++ b/src/components/PacksTable/__mocks__/@theme/Admonition.tsx
@@ -0,0 +1,5 @@
+import React from "react";
+
+export default function MockAdmonition({ children }: { children: React.ReactNode }) {
+ return {children}
;
+}
diff --git a/utils/helpers/affected-table.test.js b/utils/helpers/affected-table.test.js
index a0e27b9896..1dd6ebe2af 100644
--- a/utils/helpers/affected-table.test.js
+++ b/utils/helpers/affected-table.test.js
@@ -11,8 +11,8 @@ describe("generateMarkdownTable", () => {
const expectedTable = `| Version | Palette Enterprise | Palette Enterprise Airgap | VerteX | VerteX Airgap |
| - | -------- | -------- | -------- | -------- |
-| 4.5.3 | Impacted | No Impact | No Impact | No Impact |
-| 4.4.20 | Impacted | No Impact | No Impact | No Impact |`;
+| 4.5.3 | ⚠️ Impacted | ✅ No Impact | ✅ No Impact | ✅ No Impact |
+| 4.4.20 | ⚠️ Impacted | ✅ No Impact | ✅ No Impact | ✅ No Impact |`;
expect(generateMarkdownTable(cveImpactMap).replace(/\s+/g, "")).toBe(expectedTable.replace(/\s+/g, ""));
});