-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dynamic-sampling): Sampling breakdown (#80304)
Display a breakdown visualization of the whole org in manual sampling mode. Closes getsentry/projects#355
- Loading branch information
1 parent
1c9225f
commit 25f1e04
Showing
5 changed files
with
313 additions
and
54 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
27 changes: 27 additions & 0 deletions
27
static/app/views/settings/dynamicSampling/percentInput.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,27 @@ | ||
import type React from 'react'; | ||
import {css} from '@emotion/react'; | ||
import styled from '@emotion/styled'; | ||
|
||
import {InputGroup} from 'sentry/components/inputGroup'; | ||
import {space} from 'sentry/styles/space'; | ||
|
||
interface Props extends React.ComponentProps<typeof InputGroup.Input> {} | ||
|
||
export function PercentInput(props: Props) { | ||
return ( | ||
<InputGroup | ||
css={css` | ||
width: 160px; | ||
`} | ||
> | ||
<InputGroup.Input type="number" {...props} /> | ||
<InputGroup.TrailingItems> | ||
<TrailingPercent>%</TrailingPercent> | ||
</InputGroup.TrailingItems> | ||
</InputGroup> | ||
); | ||
} | ||
|
||
const TrailingPercent = styled('strong')` | ||
padding: 0 ${space(0.25)}; | ||
`; |
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
Oops, something went wrong.