-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into new-navigation-reb…
…ased
- Loading branch information
Showing
68 changed files
with
1,291 additions
and
1,806 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,22 @@ | ||
## Checklist | ||
### Purpose | ||
<!--- Explain what this PR accomplishes. Why are we changing this? --> | ||
|
||
### What has changed | ||
<!--- Explain what has changed and how --> | ||
|
||
### Steps to test | ||
<!--- | ||
Try to explain in a few steps how to test and what things to look out for. | ||
--> | ||
|
||
<!-- [For UI changes] | ||
### Screenshots | ||
--> | ||
|
||
### Checklist | ||
<!--- Go over all the following points, and put an `x` in all the boxes that apply. --> | ||
- [ ] This pull request is not adding new forms that use redux | ||
- [ ] This pull request is adding missing TypeScript types to modified code segments where it's easy to do so with confidence | ||
- [ ] This pull request is replacing `lodash.get` with optional chaining for modified code segments | ||
|
||
Resolves: #[issue-number] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,3 +87,5 @@ export interface IDateFilter { | |
filter?: string; | ||
query?: string; | ||
} | ||
|
||
export type IDateFilters = Array<IDateFilter> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import {Placement} from 'popper.js'; | ||
import * as React from 'react'; | ||
import {Popover} from 'reactstrap'; | ||
|
||
interface IProps { | ||
children(toggle: () => void): React.ReactNode; | ||
placement: Placement; | ||
component: React.ComponentType<{closePopup(): void}>; | ||
} | ||
|
||
interface IState { | ||
isOpen: boolean; | ||
} | ||
|
||
export class Popup extends React.PureComponent<IProps, IState> { | ||
elem: HTMLElement | undefined; | ||
referenceElem: HTMLElement | undefined; | ||
constructor(props: any) { | ||
super(props); | ||
|
||
this.state = { | ||
isOpen: false, | ||
}; | ||
|
||
this.toggle = this.toggle.bind(this); | ||
} | ||
|
||
toggle() { | ||
this.setState({ | ||
isOpen: !this.state.isOpen, | ||
}); | ||
} | ||
|
||
render() { | ||
const {component: Component} = this.props; | ||
|
||
return ( | ||
<> | ||
<div | ||
ref={(elem: any) => this.referenceElem = elem} | ||
> | ||
{this.props.children(this.toggle)} | ||
</div> | ||
|
||
{this.referenceElem && ( | ||
<Popover | ||
className="action-popover" | ||
target={this.referenceElem} | ||
isOpen={this.state.isOpen} | ||
placement={this.props.placement ?? 'auto'} | ||
> | ||
<Component closePopup={this.toggle} /> | ||
</Popover> | ||
)} | ||
</> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
-r requirements.txt | ||
-r mypy-requirements.txt | ||
-r black-requirements.txt | ||
|
||
flake8 | ||
|
Oops, something went wrong.