Skip to content

Commit

Permalink
Add functionality to web report to filter issues by path
Browse files Browse the repository at this point in the history
Add search functionality instead of filter to prevent issues with displaying a
long list of filters.

Fixes oss-review-toolkit#5130

Signed-off-by: Stefano Bennati stefano.bennati@here.com
  • Loading branch information
bennati committed Mar 8, 2022
1 parent a531ccb commit 60ddc2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion reporter-web-app/src/components/PackageFindingsTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {
PlusSquareOutlined
} from '@ant-design/icons';
import PathExcludesTable from './PathExcludesTable';
import { getColumnSearchProps } from './Shared';

// Generates the HTML to display scanFindings as a Table
const PackageFindingsTable = (props) => {
Expand Down Expand Up @@ -206,7 +207,9 @@ const PackageFindingsTable = (props) => {
key: 'path',
sorter: (a, b) => a.path.length - b.path.length,
textWrap: 'word-break',
title: 'Path'
title: 'Path',
// Search bar
...getColumnSearchProps('path',{},webAppPackage)
},
{
align: 'center',
Expand Down

0 comments on commit 60ddc2c

Please sign in to comment.