Rename PathTable => AlertTable
This commit is contained in:
@@ -32,18 +32,21 @@ import { isWholeFileLoc, isLineColumnLoc } from "../../common/bqrs-utils";
|
||||
import { ScrollIntoViewHelper } from "./scroll-into-view-helper";
|
||||
import { sendTelemetry } from "../common/telemetry";
|
||||
|
||||
export type PathTableProps = ResultTableProps & {
|
||||
export type AlertTableProps = ResultTableProps & {
|
||||
resultSet: InterpretedResultSet<SarifInterpretationData>;
|
||||
};
|
||||
export interface PathTableState {
|
||||
export interface AlertTableState {
|
||||
expanded: Set<string>;
|
||||
selectedItem: undefined | Keys.ResultKey;
|
||||
}
|
||||
|
||||
export class PathTable extends React.Component<PathTableProps, PathTableState> {
|
||||
export class AlertTable extends React.Component<
|
||||
AlertTableProps,
|
||||
AlertTableState
|
||||
> {
|
||||
private scroller = new ScrollIntoViewHelper();
|
||||
|
||||
constructor(props: PathTableProps) {
|
||||
constructor(props: AlertTableProps) {
|
||||
super(props);
|
||||
this.state = { expanded: new Set<string>(), selectedItem: undefined };
|
||||
this.handleNavigationEvent = this.handleNavigationEvent.bind(this);
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
ParsedResultSets,
|
||||
IntoResultsViewMsg,
|
||||
} from "../../common/interface-types";
|
||||
import { PathTable } from "./alert-table";
|
||||
import { AlertTable } from "./alert-table";
|
||||
import { Graph } from "./graph";
|
||||
import { RawTable } from "./raw-results-table";
|
||||
import {
|
||||
@@ -461,7 +461,7 @@ class ResultTable extends React.Component<
|
||||
...resultSet,
|
||||
interpretation: { ...resultSet.interpretation, data },
|
||||
};
|
||||
return <PathTable {...this.props} resultSet={sarifResultSet} />;
|
||||
return <AlertTable {...this.props} resultSet={sarifResultSet} />;
|
||||
}
|
||||
case "GraphInterpretationData": {
|
||||
const grapResultSet = {
|
||||
|
||||
Reference in New Issue
Block a user