Skip to content

Commit

Permalink
Add banner related to fixing variable identifiers in mbio (#1128)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmfalke committed Jul 8, 2024
1 parent 088ceec commit 51f3d57
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/libs/web-common/src/components/Announcements.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { groupBy, noop } from 'lodash';
import { Link, IconAlt } from '@veupathdb/wdk-client/lib/Components';
import { useWdkService } from '@veupathdb/wdk-client/lib/Hooks/WdkServiceHook';
import { safeHtml } from '@veupathdb/wdk-client/lib/Utils/ComponentUtils';
import { makeEdaRoute } from '../routes';
import { colors, Warning } from '@veupathdb/coreui';

const stopIcon = (
<span className="fa-stack" style={{ fontSize: '1.2em' }}>
Expand Down Expand Up @@ -105,6 +107,25 @@ const siteAnnouncements = [
}
},
*/
{
id: 'mbio-variable-fix',
category: 'degraded',
renderDisplay: (props) => {
if (
props.projectId !== 'MicrobiomeDB' ||
!props.location.pathname.startsWith(makeEdaRoute())
)
return null;
return (
<div>
Some variable names updates have invalidated some filters. Please
remove the invalid filters to continue your work in affected analyses.
Invalid filters are marked with a{' '}
<Warning fill={colors.warning[500]} /> icon.
</div>
);
},
},

{
id: 'clinepiEDA',
Expand Down

0 comments on commit 51f3d57

Please sign in to comment.