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
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,24 @@ export const NotInstrumented: Story = {
}
};

export const NotDataYet: Story = {
args: {
codeContext: {
spans: {
assets: [],
errorData: null
},
isInstrumented: true,
methodId: "method id",
displayName: "code location display name",
hasMissingDependency: false,
canInstrumentMethod: true
},
isAutoFixing: false,
isAnnotationAdding: false
}
};

export const AddingTheAnnotation: Story = {
args: {
codeContext: {
Expand Down
13 changes: 7 additions & 6 deletions src/components/Navigation/CodeButtonMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export const CodeButtonMenu = (props: CodeButtonMenuProps) => {

const renderNoObservability = () => (
<s.EmptyStateContainer>
<s.Title>No observability</s.Title>
<s.Text>Click to observe this code in runtime</s.Text>
<s.AddObservabilityButtonContainer>
{props.isAnnotationAdding && <Spinner />}
Expand All @@ -73,11 +72,13 @@ export const CodeButtonMenu = (props: CodeButtonMenuProps) => {

const renderNoData = () => (
<s.EmptyStateContainer>
<s.Title>No data yet</s.Title>
<s.Title>
No data received yet,{" "}
<s.Link href={"#"} onClick={handleTroubleshootingLinkClick}>
need help?
</s.Link>
</s.Title>
<s.Text>Trigger any action to analyze runtime data</s.Text>
<s.Link href={"#"} onClick={handleTroubleshootingLinkClick}>
Not seeing your application data?
</s.Link>
</s.EmptyStateContainer>
);

Expand All @@ -102,7 +103,7 @@ export const CodeButtonMenu = (props: CodeButtonMenuProps) => {

return (
<Popup
height={"78px"}
height={"86px"}
header={
props.codeContext.hasMissingDependency
? renderMissingDependency()
Expand Down
5 changes: 2 additions & 3 deletions src/components/Navigation/CodeButtonMenu/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ export const Container = styled.div`
display: flex;
flex-direction: column;
width: 270px;
gap: 4px;
`;

export const CodeLocation = styled.div`
display: flex;
padding: 8px;
color: ${({ theme }) => theme.colors.v3.text.secondary};
gap: 4px;
align-items: center;
Expand All @@ -30,9 +30,8 @@ export const CodeIconContainer = styled.div`
export const EmptyStateContainer = styled.div`
display: flex;
flex-direction: column;
gap: 8px;
gap: 4px;
font-size: 14px;
padding: 0 8px;
`;

export const Title = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navigation/KebabMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const KebabMenu = (props: KebabMenuProps) => {
? [
{
id: "localEngine",
groupName: "localEngine",
groupName: "settings",
label: "Local Engine",
icon: <s.LocalEngineStatusBadge />,
onClick: handleLocalEngineClick
Expand Down
8 changes: 4 additions & 4 deletions src/components/common/ToggleSwitch/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ const getSwitchContainerColor = (
if (isDisabled) {
switch (theme.mode) {
case "light":
return isChecked ? "#E5E5FF" : "#E6E8F2";
return isChecked ? "#4B4DB4" : "#E6E8F2";
case "dark":
case "dark-jetbrains":
return isChecked ? "#28293E" : "#27282E";
return isChecked ? "#4B4DB4" : "#27282E";
}
}

Expand Down Expand Up @@ -97,11 +97,11 @@ const getCircleColor = (
if (isDisabled) {
switch (theme.mode) {
case "light": {
return "#E6E8F2";
return isChecked ? "#7C90F8" : "#E6E8F2";
}
case "dark":
case "dark-jetbrains":
return "#2C2E33";
return isChecked ? "#7C90F8" : "#2C2E33";
}
}

Expand Down