Skip to content

Commit 61b6933

Browse files
Improve styles (#1408)
* Improve styles * Remove bottom prompt input from the Template page
1 parent 7e63b10 commit 61b6933

File tree

13 files changed

+59
-46
lines changed

13 files changed

+59
-46
lines changed

src/components/Agentic/IncidentTemplate/index.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,6 @@ export const IncidentTemplate = () => {
187187
onSetMCPServer={handleSetMCPServer}
188188
onDeleteMCPServer={handleDeleteMCPServer}
189189
/>
190-
<s.StyledAgentPromptInput
191-
onChange={handleInputChange}
192-
onSubmit={handleInputSubmit}
193-
value={""}
194-
isDisabled={true}
195-
placeholder={"Enter a custom prompt"}
196-
/>
197190
{agentIdToUpdate && (
198191
<Overlay>
199192
<MCPServerDialog

src/components/Agentic/IncidentTemplate/styles.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,6 @@ export const StyledIncidentPromptInput = styled(PromptInput)`
5555
}
5656
`;
5757

58-
export const StyledAgentPromptInput = styled(PromptInput)`
59-
height: 96px;
60-
${/* TODO: change to color from the theme */ ""}
61-
border: 1px solid #6063f6;
62-
63-
& ${TextArea} {
64-
height: 100%;
65-
66-
&::placeholder {
67-
color: ${({ theme }) => theme.colors.v3.text.primary};
68-
}
69-
}
70-
`;
71-
7258
export const StyledOverlay = styled(Overlay)`
7359
align-items: center;
7460
`;

src/components/Errors/EmptyState/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ const getPresetContent = (preset: EmptyStatePreset) => {
2727
},
2828
noDismissedData: {
2929
icon: <CheckCircleIcon size={32} color={"currentColor"} />,
30-
title: "No dismissed errors available"
30+
title: "No dismissed errors available",
31+
message: "Click above to see all errors"
3132
},
3233
selectAsset: {
3334
icon: <ErrorIcon size={32} color={"currentColor"} />,

src/components/Errors/GlobalErrorsList/styles.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ export const BackToAllErrorsButton = styled.button`
5757
align-items: center;
5858
cursor: pointer;
5959
color: ${({ theme }) => theme.colors.v3.text.primary};
60+
61+
&:hover {
62+
color: ${({ theme }) => theme.colors.v3.text.link};
63+
}
6064
`;
6165

6266
export const ToolbarContainer = styled.div`

src/components/Insights/InsightsCatalog/InsightsPage/EmptyState/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ const getPresetContent = (preset: EmptyStatePreset, theme: DefaultTheme) => {
2727
},
2828
noDismissedData: {
2929
icon: <CardsColoredIcon size={33} themeKind={themeKind} />,
30-
title: "No dismissed issues"
30+
title: "No dismissed issues",
31+
message: "Click above to see all issues"
3132
},
3233
noInsightsYet: {
3334
icon: <CardsColoredIcon size={33} themeKind={themeKind} />,

src/components/Insights/InsightsCatalog/styles.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ export const BackToAllInsightsButton = styled.button`
8787
align-items: center;
8888
cursor: pointer;
8989
color: ${({ theme }) => theme.colors.v3.text.primary};
90+
91+
&:hover {
92+
color: ${({ theme }) => theme.colors.v3.text.link};
93+
}
9094
`;
9195

9296
export const MarkingAsReadToolbarActionsContainer = styled.div`

src/components/RecentActivity/CreateEnvironmentWizard/ErrorsPanel/ErrorCard/index.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const ErrorCard = ({ title, description }: ErrorCardProps) => {
2929
startTimer();
3030
};
3131

32-
const handleCrossButtonClick = () => {
32+
const handleCloseButtonClick = () => {
3333
setIsVisible(false);
3434
};
3535

@@ -62,11 +62,9 @@ export const ErrorCard = ({ title, description }: ErrorCardProps) => {
6262
<s.Title>{title}</s.Title>
6363
<s.Description>{description}</s.Description>
6464
</s.ContentContainer>
65-
<s.CrossButton
66-
buttonType={"tertiary"}
67-
icon={CrossIcon}
68-
onClick={handleCrossButtonClick}
69-
/>
65+
<s.CloseButton onClick={handleCloseButtonClick}>
66+
<CrossIcon color={"currentColor"} />
67+
</s.CloseButton>
7068
</s.Container>
7169
</CSSTransition>
7270
);

src/components/RecentActivity/CreateEnvironmentWizard/ErrorsPanel/ErrorCard/styles.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
bodySemiboldTypography,
44
subscriptRegularTypography
55
} from "../../../../common/App/typographies";
6-
import { Button } from "../../../../common/v3/Button";
76
import type { ContainerProps } from "./types";
87

98
export const Container = styled.div<ContainerProps>`
@@ -22,14 +21,14 @@ export const Container = styled.div<ContainerProps>`
2221
}
2322
&.${$transitionClassName}-enter-active {
2423
transform: translateX(0);
25-
transition: all ${$transitionDuration}ms ease;
24+
transition: all ${$transitionDuration}ms ease-in-out;
2625
}
2726
&.${$transitionClassName}-exit {
2827
transform: translateX(0);
2928
}
3029
&.${$transitionClassName}-exit-active {
3130
transform: translateX(100%);
32-
transition: all ${$transitionDuration}ms ease;
31+
transition: all ${$transitionDuration}ms ease-in-out;
3332
}
3433
`}
3534
`;
@@ -50,11 +49,17 @@ export const Description = styled.div`
5049
color: ${({ theme }) => theme.colors.v3.text.secondary};
5150
`;
5251

53-
export const CrossButton = styled(Button)`
54-
padding: 0;
52+
export const CloseButton = styled.button`
53+
display: flex;
54+
align-items: center;
55+
justify-content: center;
56+
color: ${({ theme }) => theme.colors.v3.icon.tertiary};
57+
background: none;
58+
border: none;
59+
cursor: pointer;
5560
`;
5661

5762
export const ErrorIconContainer = styled.div`
5863
display: flex;
59-
color: ${({ theme }) => theme.colors.v3.icon.white};
64+
color: ${({ theme }) => theme.colors.v3.icon.primary};
6065
`;

src/components/common/AffectedEndpointsSelector/EndpointOption/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export const EndpointOption = <T,>({
1111
hideCopyIcon,
1212
onClick,
1313
metric,
14-
isHeader
14+
isHeader,
15+
className
1516
}: EndpointOptionProps<T>) => {
1617
const title = `${serviceName} ${route}`;
1718

@@ -28,14 +29,14 @@ export const EndpointOption = <T,>({
2829
};
2930

3031
return (
31-
<s.Container>
32+
<s.Container className={className}>
3233
<Tooltip title={title}>
3334
<s.EndpointName
3435
$selected={selected}
3536
$clickable={Boolean(onClick)}
3637
onClick={handleEndpointNameClick}
3738
>
38-
<s.ServiceName>{serviceName}</s.ServiceName>
39+
<s.ServiceName $selected={selected}>{serviceName}</s.ServiceName>
3940
<s.Route>
4041
{spanCodeObjectId && onSpanLinkClick ? (
4142
<s.RouteLink $selected={selected} onClick={handleRouteLinkClick}>

src/components/common/AffectedEndpointsSelector/EndpointOption/styles.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
import styled, { css } from "styled-components";
2-
import { footnoteRegularTypography } from "../../App/typographies";
2+
import { bodyRegularTypography } from "../../App/typographies";
33
import { CopyButton } from "../../v3/CopyButton";
44
import { Link as CommonLink } from "../../v3/Link";
5-
import type { EndpointNameProps, SpanLinkProps } from "./types";
5+
import type {
6+
EndpointNameProps,
7+
ServiceNameProps,
8+
SpanLinkProps
9+
} from "./types";
610

711
export const StyledCopyButton = styled(CopyButton)`
812
display: none;
913
padding: 0;
1014
`;
1115

1216
export const Container = styled.div`
13-
${footnoteRegularTypography}
17+
${bodyRegularTypography}
1418
1519
display: flex;
1620
gap: 4px;
@@ -52,14 +56,15 @@ export const EndpointName = styled.div<EndpointNameProps>`
5256
: ""}
5357
`;
5458

55-
export const ServiceName = styled.span`
59+
export const ServiceName = styled.span<ServiceNameProps>`
5660
max-width: 100px;
5761
min-width: 30px;
5862
flex-shrink: 0;
5963
overflow: hidden;
6064
text-overflow: ellipsis;
6165
white-space: nowrap;
62-
color: ${({ theme }) => theme.colors.v3.text.tertiary};
66+
color: ${({ theme, $selected }) =>
67+
$selected ? theme.colors.v3.text.secondary : theme.colors.v3.text.tertiary};
6368
`;
6469

6570
export const Route = styled.span`
@@ -70,6 +75,8 @@ export const Route = styled.span`
7075
`;
7176

7277
export const RouteLink = styled(CommonLink)<SpanLinkProps>`
78+
${bodyRegularTypography}
79+
7380
${({ $selected }) =>
7481
$selected
7582
? css`

0 commit comments

Comments
 (0)