Skip to content

Commit

Permalink
chore(escalation_policies): Minor UI Improvements across the board (#…
Browse files Browse the repository at this point in the history
…76493)

bunch of random ui improvements
  • Loading branch information
MichaelSun48 authored Aug 22, 2024
1 parent 9e0a3a1 commit 1743ed6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 19 deletions.
22 changes: 11 additions & 11 deletions static/app/views/alerts/escalationPolicies/escalationPolicyList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ function EscalateAfterItem({minutes}: {minutes: number}) {
icon: 'blue400',
iconBorder: 'blue200',
}}
showLastLine
/>
);
}
Expand All @@ -103,10 +102,11 @@ function RepeatItem({n}: {n: number}) {
title={'Repeat: ' + n + ' time' + (n > 1 ? 's' : '')}
icon={<IconRefresh size="xs" />}
colorConfig={{
title: 'purple400',
icon: 'purple400',
iconBorder: 'purple200',
title: 'yellow400',
icon: 'yellow400',
iconBorder: 'yellow200',
}}
isActive
/>
);
}
Expand Down Expand Up @@ -139,9 +139,9 @@ function EscalationPolicyTimeline({policy}: {policy: EscalationPolicy}) {
})}
<RepeatItem n={policy.repeatNTimes} />
</Timeline.Container>
<SideBarContainer>
<RightSideBarContainer>
<SideBarSection title={'Used by 1 Alert'}>Some content here</SideBarSection>
</SideBarContainer>
</RightSideBarContainer>
</EscalationPolicyContent>
</EscalationPolicyContainer>
);
Expand Down Expand Up @@ -197,6 +197,7 @@ const EscalationPolicyTimelineList = styled('ul')`
display: flex;
flex-direction: column;
gap: ${space(2)};
padding: 0;
`;

const IncidentCreatedTimelineItem = styled(Timeline.Item)`
Expand Down Expand Up @@ -232,15 +233,14 @@ const EscalationPolicyContainer = styled('li')`
`;

const EscalationPolicyContent = styled('div')`
display: grid;
grid-template-columns: 2fr 1fr;
gap: 15px;
display: flex;
justify-content: space-between;
`;

const SideBarContainer = styled('div')`
const RightSideBarContainer = styled('div')`
display: flex;
flex-direction: column;
gap: 5px;
width: 500px;
`;

const SideBarTitle = styled('h6')`
Expand Down
15 changes: 9 additions & 6 deletions static/app/views/alerts/triageSchedules/ScheduleTimelineRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,13 @@ export function ScheduleTimelineRow({schedule, totalWidth, timeWindowConfig}: Pr
<DetailsHeadline>
<Name>{schedule.name}</Name>
</DetailsHeadline>
<Description>{schedule.description}</Description>
<Description>
{schedule.description ??
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod'}
</Description>
</DetailsArea>
<OnRotationContainer>
<ScheduleTitle>On Rotation Now:</ScheduleTitle>
<ScheduleTitle>On Rotation:</ScheduleTitle>
{/* TODO */}
{/* {rotations[1].userId && <ParticipantList users={[users[rotations[1].userId]]} />} */}
</OnRotationContainer>
Expand Down Expand Up @@ -197,7 +200,7 @@ const DetailsArea = styled('div')`
border-right: 1px solid ${p => p.theme.border};
border-radius: 0;
position: relative;
padding: ${space(3)};
padding: ${space(1.5)};
display: block;
`;

Expand All @@ -217,15 +220,15 @@ const Description = styled('h3')`
word-break: break-word;
margin-bottom: ${space(0.5)};
font-weight: ${p => p.theme.fontWeightNormal};
color: ${p => p.theme.subText};
`;

const ScheduleTitle = styled('h6')`
color: ${p => p.theme.subText};
display: flex;
align-items: center;
gap: ${space(0.5)};
font-size: ${p => p.theme.fontSizeMedium};
margin: ${space(1)} 0 0;
margin: 0;
`;

const TimelineRow = styled('li')`
Expand Down Expand Up @@ -260,7 +263,7 @@ const ScheduleOuterContainer = styled('div')`

const OnRotationContainer = styled('div')`
display: flex;
padding: ${space(1)} ${space(1)};
padding: ${space(1.5)};
flex-direction: column;
border-right: 1px solid ${p => p.theme.innerBorder};
text-align: left;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,10 @@ function ScheduleList() {
return (
<Fragment>
<SentryDocumentTitle title={t('Escalation Policies')} orgSlug={organization.slug} />

<PageFiltersContainer>
<AlertHeader router={router} activeTab="schedules" />
<Layout.Body>
<Layout.Main fullWidth>
<AlertHeader router={router} activeTab="schedules" />
<MonitorListPanel role="region">
<TimelineWidthTracker ref={elementRef} />
<Header>
Expand Down

0 comments on commit 1743ed6

Please sign in to comment.