-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alert history pr review changes (#5778)
* chore: rename alert history scss files in pascal case * fix: use proper variables * chore: use color variable for action button dropdown item * chore: improve the directory structure for alert history components * chore: move inline style to scss file and extract dropdown renderer component * chore: use colors from Color instead of css variables inside tsx files * chore: return null in default case * chore: update alert details spinner tip * chore: timelinePlugin warnings and remove file wide warning disabling * chore: change Arial to Geist Mono in timeline plugin
- Loading branch information
1 parent
d37410a
commit 86d707e
Showing
55 changed files
with
417 additions
and
415 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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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,22 @@ | ||
import './AlertHistory.styles.scss'; | ||
|
||
import { useState } from 'react'; | ||
|
||
import Statistics from './Statistics/Statistics'; | ||
import Timeline from './Timeline/Timeline'; | ||
|
||
function AlertHistory(): JSX.Element { | ||
const [totalCurrentTriggers, setTotalCurrentTriggers] = useState(0); | ||
|
||
return ( | ||
<div className="alert-history"> | ||
<Statistics | ||
totalCurrentTriggers={totalCurrentTriggers} | ||
setTotalCurrentTriggers={setTotalCurrentTriggers} | ||
/> | ||
<Timeline totalCurrentTriggers={totalCurrentTriggers} /> | ||
</div> | ||
); | ||
} | ||
|
||
export default AlertHistory; |
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
frontend/src/container/AlertHistory/Timeline/GraphWrapper/GraphWrapper.tsx
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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,22 +1,3 @@ | ||
import './alertHistory.styles.scss'; | ||
|
||
import { useState } from 'react'; | ||
|
||
import Statistics from './Statistics/Statistics'; | ||
import Timeline from './Timeline/Timeline'; | ||
|
||
function AlertHistory(): JSX.Element { | ||
const [totalCurrentTriggers, setTotalCurrentTriggers] = useState(0); | ||
|
||
return ( | ||
<div className="alert-history"> | ||
<Statistics | ||
totalCurrentTriggers={totalCurrentTriggers} | ||
setTotalCurrentTriggers={setTotalCurrentTriggers} | ||
/> | ||
<Timeline totalCurrentTriggers={totalCurrentTriggers} /> | ||
</div> | ||
); | ||
} | ||
import AlertHistory from './AlertHistory'; | ||
|
||
export default AlertHistory; |
Oops, something went wrong.