diff --git a/web/gui-v2/src/components/DetailViewWorkforce.jsx b/web/gui-v2/src/components/DetailViewWorkforce.jsx index 1d76d5d7..14d0877b 100644 --- a/web/gui-v2/src/components/DetailViewWorkforce.jsx +++ b/web/gui-v2/src/components/DetailViewWorkforce.jsx @@ -1,5 +1,7 @@ import React from 'react'; +import { Alert } from '@eto/eto-ui-components'; + import HeaderWithLink from './HeaderWithLink'; import StatBox from './StatBox'; import StatWrapper from './StatWrapper'; @@ -17,23 +19,29 @@ const DetailViewWorkforce = ({ <> - - { otherMetricsWorkforceKeys.map((key) => ( - - From {yearSpanText}, {data.name} here is some explanatory text - describing how they had NUMBER jobs of the specified type - (#{data.other_metrics[key].rank} rank in PARAT - {data.in_sandp_500 && <>, #NUMBER in the S&P500}) - - } - key={key} - label={otherMetricMap[key]} - value={data.other_metrics[key].total} - /> - ))} - + {data.linkedin.length > 0 ? + + { otherMetricsWorkforceKeys.map((key) => ( + + From {yearSpanText}, {data.name} here is some explanatory text + describing how they had NUMBER jobs of the specified type + (#{data.other_metrics[key].rank} rank in PARAT + {data.in_sandp_500 && <>, #NUMBER in the S&P500}) + + } + key={key} + label={otherMetricMap[key]} + value={data.other_metrics[key].total} + /> + ))} + + : + + ZACH_TKTK Note about no jobs due to no LinkedIn data + + } ); }; diff --git a/web/gui-v2/src/static_data/table_columns.js b/web/gui-v2/src/static_data/table_columns.js index 9609611e..fb2a1ddb 100644 --- a/web/gui-v2/src/static_data/table_columns.js +++ b/web/gui-v2/src/static_data/table_columns.js @@ -581,19 +581,40 @@ const columnDefinitions = [ ...generateSliderColDef("patents", "Transportation"), tooltip: "Zach_tktk", }, - { title: "AI jobs", key: "ai_jobs", aggregateType: "median", - ...generateSliderColDef("other_metrics", "ai_jobs"), - tooltip: "Zach_tktk", + ...generateSliderColDef( + "other_metrics", + "ai_jobs", + undefined, // Use default extract function + (_val, row) => { + if ( row?._group || row.linkedin.length > 0 ) { + return ; + } else { + return + } + }, + ), + tooltip: "Zach_tktk" }, { title: "Tech Tier 1 jobs", key: "tt1_jobs", aggregateType: "median", - ...generateSliderColDef("other_metrics", "tt1_jobs"), + ...generateSliderColDef( + "other_metrics", + "tt1_jobs", + undefined, // Use default extract function + (_val, row) => { + if ( row?._group || row.linkedin.length > 0 ) { + return ; + } else { + return + } + }, + ), initialCol: true, tooltip: "Zach_tktk", },