From 66e3cf790311e1acd48baa6a9edb696d429cc663 Mon Sep 17 00:00:00 2001 From: Jennifer Melot Date: Wed, 26 Jun 2024 10:16:59 -0400 Subject: [PATCH] Add new default column --- web/gui-v2/src/components/ListView.test.js | 2 +- web/gui-v2/src/static_data/table_columns.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/gui-v2/src/components/ListView.test.js b/web/gui-v2/src/components/ListView.test.js index 3f060bf..9e4bb71 100644 --- a/web/gui-v2/src/components/ListView.test.js +++ b/web/gui-v2/src/components/ListView.test.js @@ -13,7 +13,7 @@ import { exportsForTestingOnly } from './ListViewTable'; const { extractCurrentFilters, filterRow } = exportsForTestingOnly; -const INITIAL_COLUMNS = ['Company', 'Country', 'AI publications', 'AI patents', 'AI jobs']; +const INITIAL_COLUMNS = ['Company', 'Country', 'AI publications', 'AI patents', 'AI jobs', 'Tech Tier 1 jobs']; const REMOVED_COLUMN = 'AI publications'; describe("ListView", () => { diff --git a/web/gui-v2/src/static_data/table_columns.js b/web/gui-v2/src/static_data/table_columns.js index 009c78c..0ebb90d 100644 --- a/web/gui-v2/src/static_data/table_columns.js +++ b/web/gui-v2/src/static_data/table_columns.js @@ -563,6 +563,7 @@ const columnDefinitions = [ return ; }, ), + initialCol: true, }, // Apply tooltips to the column definition entries ].map((entry) => ({ ...entry, tooltip: tooltips.columnHeaders[entry.key] }));