Skip to content

Commit

Permalink
set initial expand true and change filter order
Browse files Browse the repository at this point in the history
  • Loading branch information
nam-singh committed Sep 12, 2024
1 parent c3448a1 commit 7145590
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions report-react/src/SavedReport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,22 @@ const filteredReport = {
<span style={{paddingLeft:"1rem"}}>{total} issues found</span>
</div>
<div style={{display:"flex",float:"right"}}>
<MultiSelect
<Dropdown
className="viewMulti"
ariaLabel="Select report view"
id="reportView"
size="sm"
items={viewItems}
light={false}
type="default"
style={{width:"160px", float: "right"}}
selectedItem={this.state.reportViewState}
onChange={async (evt: any) => {
// set state
this.setState({ reportViewState: evt.selectedItem });
}}
/>
<MultiSelect
className="viewMulti"
ariaLabel="Issue type filter"
label="Filter"
Expand Down Expand Up @@ -236,21 +251,6 @@ const filteredReport = {
initialSelectedItems={this.state.selectedItems}
onChange={(event: { selectedItems: Array<{ id: string; text: string }> }) => this.handleFilterChange(event.selectedItems)}

/>
<Dropdown
className="viewMulti"
ariaLabel="Select report view"
id="reportView"
size="sm"
items={viewItems}
light={false}
type="default"
style={{width:"160px", float: "right"}}
selectedItem={this.state.reportViewState}
onChange={async (evt: any) => {
// set state
this.setState({ reportViewState: evt.selectedItem });
}}
/>
</div>

Expand Down
2 changes: 1 addition & 1 deletion report-react/src/report/ReportRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class ReportRow extends React.Component<IReportRowProps, IReportR
scrollRef: RefObject<HTMLDivElement> = React.createRef();

state: IReportRowState = {
expanded: false,
expanded: true,
lastTimestamp: this.props.report.timestamp,
scrollTo: false
};
Expand Down

0 comments on commit 7145590

Please sign in to comment.