diff --git a/nerdlets/maintainer-dashboard/index.js b/nerdlets/maintainer-dashboard/index.js index 89786f7..b23ccc0 100644 --- a/nerdlets/maintainer-dashboard/index.js +++ b/nerdlets/maintainer-dashboard/index.js @@ -6,7 +6,7 @@ import { client } from './graphql/ApolloClientInstance'; import gql from 'graphql-tag'; import * as humanizeDuration from 'humanize-duration'; import BootstrapTable from 'react-bootstrap-table-next'; -import 'react-bootstrap-table-next/dist/react-bootstrap-table2.min.css'; +import filterFactory, { textFilter, selectFilter, dateFilter, Comparator, multiSelectFilter } from 'react-bootstrap-table2-filter'; import { Card, CardHeader, @@ -27,7 +27,8 @@ import { Tabs, TabsItem, BillboardChart, - BlockText + BlockText, + Icon } from 'nr1'; import PullRequestLogo from './img/git-pull-request-16.svg'; import IssueLogo from './img/issue-opened-16.svg'; @@ -58,7 +59,7 @@ const REPOS = [ 'newrelic/infrastructure-agent', 'newrelic/newrelic-dotnet-agent', 'newrelic/newrelic-python-agent', - 'newrelic/newrelic-ruby-agent', + /* 'newrelic/newrelic-ruby-agent', 'newrelic/node-newrelic', 'newrelic/newrelic-java-agent', 'newrelic/infrastructure-bundle', @@ -103,7 +104,7 @@ const REPOS = [ 'newrelic/nri-winservices', 'newrelic/aws-log-ingestion', 'newrelic/k8s-metadata-injection', - 'newrelic/k8s-webhook-cert-manager' + 'newrelic/k8s-webhook-cert-manager' */ ] const TOKEN = ''; @@ -256,12 +257,29 @@ class IssueTable extends React.PureComponent { } render() { + const sortCaret = order => { + let type; + if (order === 'asc') type = Icon.TYPE.INTERFACE__ARROW__ARROW_TOP + else if (order === 'desc') type = Icon.TYPE.INTERFACE__ARROW__ARROW_BOTTOM + else type = Icon.TYPE.INTERFACE__ARROW__ARROW_VERTICAL + return