Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {SVGIconProps} from './svgIcon';
import {SvgIcon} from './svgIcon';

export function IconInProgress(props: SVGIconProps) {
export function IconPieHalf(props: SVGIconProps) {
return (
<SvgIcon {...props}>
<path
Expand Down
15 changes: 15 additions & 0 deletions static/app/icons/iconPieQuarter.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type {SVGIconProps} from './svgIcon';
import {SvgIcon} from './svgIcon';

export function IconPieQuarter(props: SVGIconProps) {
return (
<SvgIcon {...props}>
<path d="M8 3C10.76 3 13 5.24 13 8H8V3Z" />
<path
fillRule="evenodd"
clipRule="evenodd"
d="M8 0C12.42 0 16 3.58 16 8C16 12.42 12.42 16 8 16C3.58 16 0 12.42 0 8C0 3.58 3.58 0 8 0ZM8 1.5C4.41 1.5 1.5 4.41 1.5 8C1.5 11.59 4.41 14.5 8 14.5C11.59 14.5 14.5 11.59 14.5 8C14.5 4.41 11.59 1.5 8 1.5Z"
/>
</SvgIcon>
);
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {SVGIconProps} from './svgIcon';
import {SvgIcon} from './svgIcon';

export function IconInReview(props: SVGIconProps) {
export function IconPieThreeQuarters(props: SVGIconProps) {
return (
<SvgIcon {...props}>
<path
Expand Down
19 changes: 13 additions & 6 deletions static/app/icons/icons.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -689,17 +689,24 @@ const SECTIONS: TSection[] = [
defaultProps: {},
},
{
id: 'inProgress',
id: 'pieQuarter',
groups: ['status'],
keywords: ['circle', 'progress'],
name: 'InProgress',
keywords: ['circle', 'progress', 'pie', 'quarter'],
name: 'PieQuarter',
defaultProps: {},
},
{
id: 'inReview',
id: 'pieHalf',
groups: ['status'],
keywords: ['circle', 'progress'],
name: 'InReview',
keywords: ['circle', 'progress', 'pie', 'half'],
name: 'PieHalf',
defaultProps: {},
},
{
id: 'pieThreeQuarters',
groups: ['status'],
keywords: ['circle', 'progress', 'pie'],
name: 'PieThreeQuarters',
defaultProps: {},
},
{
Expand Down
5 changes: 3 additions & 2 deletions static/app/icons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ export {IconHappy} from './iconHappy';
export {IconHide} from './iconHide';
export {IconImage} from './iconImage';
export {IconInfo} from './iconInfo';
export {IconInProgress} from './iconInProgress';
export {IconInput} from './iconInput';
export {IconInReview} from './iconInReview';
export {IconIssues} from './iconIssues';
export {IconJira} from './iconJira';
export {IconJson} from './iconJson';
Expand Down Expand Up @@ -95,6 +93,9 @@ export {IconOption} from './iconOption';
export {IconPanel} from './iconPanel';
export {IconPause} from './iconPause';
export {IconPerforce} from './iconPerforce';
export {IconPieHalf} from './iconPieHalf';
export {IconPieQuarter} from './iconPieQuarter';
export {IconPieThreeQuarters} from './iconPieThreeQuarters';
export {IconPin} from './iconPin';
export {IconPlay} from './iconPlay';
export {IconPrevent} from './iconPrevent';
Expand Down
15 changes: 8 additions & 7 deletions static/app/views/issueList/utils/progress.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
import type {ReactNode} from 'react';

import {IconCircle} from 'sentry/icons/iconCircle';
import {IconInProgress} from 'sentry/icons/iconInProgress';
import {IconInReview} from 'sentry/icons/iconInReview';
import {IconPieHalf} from 'sentry/icons/iconPieHalf';
import {IconPieQuarter} from 'sentry/icons/iconPieQuarter';
import {IconPieThreeQuarters} from 'sentry/icons/iconPieThreeQuarters';
import {IconResolved} from 'sentry/icons/iconResolved';
import {t} from 'sentry/locale';

export enum ProgressState {
IDENTIFIED = 'identified',
TRIAGED = 'triaged',
ASSIGNED = 'assigned',
DIAGNOSED = 'diagnosed',
FIX_PROPOSED = 'fix_proposed',
FIX_APPLIED = 'fix_applied',
}

const PROGRESS_STATE_LABELS: Record<ProgressState, string> = {
[ProgressState.IDENTIFIED]: t('Identified'),
[ProgressState.TRIAGED]: t('Triaged'),
[ProgressState.ASSIGNED]: t('Assigned'),
[ProgressState.DIAGNOSED]: t('Diagnosed'),
[ProgressState.FIX_PROPOSED]: t('Fix Proposed'),
[ProgressState.FIX_APPLIED]: t('Fix Applied'),
Expand All @@ -31,9 +32,9 @@ export function formatProgressState(state: ProgressState | null): string {

const PROGRESS_STATE_ICONS: Record<ProgressState, ReactNode> = {
[ProgressState.IDENTIFIED]: <IconCircle size="md" variant="muted" />,
[ProgressState.TRIAGED]: <IconCircle size="md" variant="muted" />,
[ProgressState.DIAGNOSED]: <IconInProgress size="md" variant="warning" />,
[ProgressState.FIX_PROPOSED]: <IconInReview size="md" variant="success" />,
[ProgressState.ASSIGNED]: <IconPieQuarter size="md" variant="muted" />,
[ProgressState.DIAGNOSED]: <IconPieHalf size="md" variant="warning" />,
[ProgressState.FIX_PROPOSED]: <IconPieThreeQuarters size="md" variant="success" />,
Comment thread
malwilley marked this conversation as resolved.
[ProgressState.FIX_APPLIED]: <IconResolved size="md" variant="success" />,
};

Expand Down
2 changes: 1 addition & 1 deletion static/app/views/issueList/utils/useFetchIssueTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ function builtInIssuesFields({
[FieldKey.ISSUE_PROGRESS]: {
...PREDEFINED_FIELDS[FieldKey.ISSUE_PROGRESS]!,
name: 'Issue Progress',
values: ['identified', 'triaged', 'diagnosed', 'fix_proposed', 'fix_applied'],
values: ['identified', 'assigned', 'diagnosed', 'fix_proposed', 'fix_applied'],
Comment thread
malwilley marked this conversation as resolved.
predefined: true,
},
[FieldKey.ISSUE_SEER_ACTIONABILITY]: {
Expand Down
Loading