Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
7 changes: 0 additions & 7 deletions src/components/Agentic/IncidentTemplate/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,6 @@ export const IncidentTemplate = () => {
onSetMCPServer={handleSetMCPServer}
onDeleteMCPServer={handleDeleteMCPServer}
/>
<s.StyledAgentPromptInput
onChange={handleInputChange}
onSubmit={handleInputSubmit}
value={""}
isDisabled={true}
placeholder={"Enter a custom prompt"}
/>
{agentIdToUpdate && (
<Overlay>
<MCPServerDialog
Expand Down
14 changes: 0 additions & 14 deletions src/components/Agentic/IncidentTemplate/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,6 @@ export const StyledIncidentPromptInput = styled(PromptInput)`
}
`;

export const StyledAgentPromptInput = styled(PromptInput)`
height: 96px;
${/* TODO: change to color from the theme */ ""}
border: 1px solid #6063f6;

& ${TextArea} {
height: 100%;

&::placeholder {
color: ${({ theme }) => theme.colors.v3.text.primary};
}
}
`;

export const StyledOverlay = styled(Overlay)`
align-items: center;
`;
3 changes: 2 additions & 1 deletion src/components/Errors/EmptyState/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ const getPresetContent = (preset: EmptyStatePreset) => {
},
noDismissedData: {
icon: <CheckCircleIcon size={32} color={"currentColor"} />,
title: "No dismissed errors available"
title: "No dismissed errors available",
message: "Click above to see all errors"
},
selectAsset: {
icon: <ErrorIcon size={32} color={"currentColor"} />,
Expand Down
4 changes: 4 additions & 0 deletions src/components/Errors/GlobalErrorsList/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ export const BackToAllErrorsButton = styled.button`
align-items: center;
cursor: pointer;
color: ${({ theme }) => theme.colors.v3.text.primary};

&:hover {
color: ${({ theme }) => theme.colors.v3.text.link};
}
`;

export const ToolbarContainer = styled.div`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ const getPresetContent = (preset: EmptyStatePreset, theme: DefaultTheme) => {
},
noDismissedData: {
icon: <CardsColoredIcon size={33} themeKind={themeKind} />,
title: "No dismissed issues"
title: "No dismissed issues",
message: "Click above to see all issues"
},
noInsightsYet: {
icon: <CardsColoredIcon size={33} themeKind={themeKind} />,
Expand Down
4 changes: 4 additions & 0 deletions src/components/Insights/InsightsCatalog/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ export const BackToAllInsightsButton = styled.button`
align-items: center;
cursor: pointer;
color: ${({ theme }) => theme.colors.v3.text.primary};

&:hover {
color: ${({ theme }) => theme.colors.v3.text.link};
}
`;

export const MarkingAsReadToolbarActionsContainer = styled.div`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const ErrorCard = ({ title, description }: ErrorCardProps) => {
startTimer();
};

const handleCrossButtonClick = () => {
const handleCloseButtonClick = () => {
setIsVisible(false);
};

Expand Down Expand Up @@ -62,11 +62,9 @@ export const ErrorCard = ({ title, description }: ErrorCardProps) => {
<s.Title>{title}</s.Title>
<s.Description>{description}</s.Description>
</s.ContentContainer>
<s.CrossButton
buttonType={"tertiary"}
icon={CrossIcon}
onClick={handleCrossButtonClick}
/>
<s.CloseButton onClick={handleCloseButtonClick}>
<CrossIcon color={"currentColor"} />
</s.CloseButton>
</s.Container>
</CSSTransition>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
bodySemiboldTypography,
subscriptRegularTypography
} from "../../../../common/App/typographies";
import { Button } from "../../../../common/v3/Button";
import type { ContainerProps } from "./types";

export const Container = styled.div<ContainerProps>`
Expand All @@ -22,14 +21,14 @@ export const Container = styled.div<ContainerProps>`
}
&.${$transitionClassName}-enter-active {
transform: translateX(0);
transition: all ${$transitionDuration}ms ease;
transition: all ${$transitionDuration}ms ease-in-out;
}
&.${$transitionClassName}-exit {
transform: translateX(0);
}
&.${$transitionClassName}-exit-active {
transform: translateX(100%);
transition: all ${$transitionDuration}ms ease;
transition: all ${$transitionDuration}ms ease-in-out;
}
`}
`;
Expand All @@ -50,11 +49,17 @@ export const Description = styled.div`
color: ${({ theme }) => theme.colors.v3.text.secondary};
`;

export const CrossButton = styled(Button)`
padding: 0;
export const CloseButton = styled.button`
display: flex;
align-items: center;
justify-content: center;
color: ${({ theme }) => theme.colors.v3.icon.tertiary};
background: none;
border: none;
cursor: pointer;
`;

export const ErrorIconContainer = styled.div`
display: flex;
color: ${({ theme }) => theme.colors.v3.icon.white};
color: ${({ theme }) => theme.colors.v3.icon.primary};
`;
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export const EndpointOption = <T,>({
hideCopyIcon,
onClick,
metric,
isHeader
isHeader,
className
}: EndpointOptionProps<T>) => {
const title = `${serviceName} ${route}`;

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

return (
<s.Container>
<s.Container className={className}>
<Tooltip title={title}>
<s.EndpointName
$selected={selected}
$clickable={Boolean(onClick)}
onClick={handleEndpointNameClick}
>
<s.ServiceName>{serviceName}</s.ServiceName>
<s.ServiceName $selected={selected}>{serviceName}</s.ServiceName>
<s.Route>
{spanCodeObjectId && onSpanLinkClick ? (
<s.RouteLink $selected={selected} onClick={handleRouteLinkClick}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
import styled, { css } from "styled-components";
import { footnoteRegularTypography } from "../../App/typographies";
import { bodyRegularTypography } from "../../App/typographies";
import { CopyButton } from "../../v3/CopyButton";
import { Link as CommonLink } from "../../v3/Link";
import type { EndpointNameProps, SpanLinkProps } from "./types";
import type {
EndpointNameProps,
ServiceNameProps,
SpanLinkProps
} from "./types";

export const StyledCopyButton = styled(CopyButton)`
display: none;
padding: 0;
`;

export const Container = styled.div`
${footnoteRegularTypography}
${bodyRegularTypography}

display: flex;
gap: 4px;
Expand Down Expand Up @@ -52,14 +56,15 @@ export const EndpointName = styled.div<EndpointNameProps>`
: ""}
`;

export const ServiceName = styled.span`
export const ServiceName = styled.span<ServiceNameProps>`
max-width: 100px;
min-width: 30px;
flex-shrink: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: ${({ theme }) => theme.colors.v3.text.tertiary};
color: ${({ theme, $selected }) =>
$selected ? theme.colors.v3.text.secondary : theme.colors.v3.text.tertiary};
`;

export const Route = styled.span`
Expand All @@ -70,6 +75,8 @@ export const Route = styled.span`
`;

export const RouteLink = styled(CommonLink)<SpanLinkProps>`
${bodyRegularTypography}

${({ $selected }) =>
$selected
? css`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,18 @@ export interface EndpointOptionProps<T> {
label: string;
};
isHeader?: boolean;
className?: string;
}

export interface EndpointNameProps {
$selected?: boolean;
$clickable?: boolean;
}

export interface ServiceNameProps {
$selected?: boolean;
}

export interface SpanLinkProps {
$selected?: boolean;
}
2 changes: 1 addition & 1 deletion src/components/common/AffectedEndpointsSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const AffectedEndpointsSelector = <T = undefined,>({
isDisabled={isDisabled}
listHeader={
<s.ListHeader>
<EndpointOption
<s.ListHeaderEndpointOption
route={"Endpoint"}
serviceName={"Service"}
hideCopyIcon={true}
Expand Down
12 changes: 10 additions & 2 deletions src/components/common/AffectedEndpointsSelector/styles.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
import styled from "styled-components";
import { footnoteRegularTypography } from "../App/typographies";
import { EndpointOption } from "./EndpointOption";
import { RouteLink } from "./EndpointOption/styles";

export const ListHeader = styled.div`
display: flex;
gap: 4px;
color: ${({ theme }) => theme.colors.v3.text.tertiary};

${footnoteRegularTypography}
`;

export const ServicePart = styled.div`
width: 151px;
`;

export const ListHeaderEndpointOption = styled(EndpointOption)`
${footnoteRegularTypography}

& > ${RouteLink} {
${footnoteRegularTypography}
}
`;
Loading