-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show more algorithm details in occurrence identification history (#378)
- Loading branch information
Showing
7 changed files
with
40 additions
and
0 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
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
10 changes: 10 additions & 0 deletions
10
ui/src/pages/occurrence-details/algorithm-details/algorithm-details.module.scss
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,10 @@ | ||
@import 'src/design-system/variables/variables.scss'; | ||
@import 'src/design-system/variables/colors.scss'; | ||
@import 'src/design-system/variables/typography.scss'; | ||
|
||
.algorithmDetails { | ||
display: block; | ||
@include mono(); | ||
padding-bottom: 2px; | ||
color: $color-neutral-600; | ||
} |
13 changes: 13 additions & 0 deletions
13
ui/src/pages/occurrence-details/algorithm-details/algorithm-details.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Algorithm } from 'data-services/models/algorithm' | ||
import { Tooltip } from 'design-system/components/tooltip/tooltip' | ||
import styles from './algorithm-details.module.scss' | ||
|
||
export const AlgorithmDetails = ({ algorithm }: { algorithm: Algorithm | undefined }) => { | ||
return algorithm ? ( | ||
<Tooltip content={`id: ${algorithm.id} created: ${algorithm.description} jobs: `}> | ||
<div className={styles.algorithmDetails}> | ||
{algorithm.name} | ||
</div> | ||
</Tooltip> | ||
) : null | ||
} |
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
.content { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 12px; | ||
padding: 16px; | ||
position: relative; | ||
} | ||
|
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