Skip to content

Commit

Permalink
Cleans up console log statements and other small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahbenizzy committed Mar 6, 2024
1 parent 940bc64 commit 2058b94
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion telemetry/ui/src/components/routes/app/AppView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export const AppView = () => {
highlightedActions={previousActions}
hoverAction={
hoverSequenceID
? stepsSorted.find((step) => step.step_start_log.sequence_id == hoverSequenceID)
? stepsSorted.find((step) => step.step_start_log.sequence_id === hoverSequenceID)
: undefined
}
currentSequenceID={currentActionIndex}
Expand Down
8 changes: 0 additions & 8 deletions telemetry/ui/src/components/routes/app/GraphView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ const ActionNode = (props: { data: NodeData }) => {
);
};
export const ActionActionEdge = ({
id,
sourceX,
sourceY,
targetX,
Expand All @@ -122,7 +121,6 @@ export const ActionActionEdge = ({
);
const containsTo = allActionsInPath.some((action) => action.step_start_log.action === data.to);
const shouldHighlight = containsFrom && containsTo;
console.log(previousActions, currentAction);
const getSmartEdgeResponse = getSmartEdge({
sourcePosition,
targetPosition,
Expand All @@ -146,12 +144,7 @@ export const ActionActionEdge = ({
})[0];
}

// const onEdgeClick = () => {
// setEdges((edges) => edges.filter((edge) => edge.id !== id));
// };
console.log(id);
const style = {
// stroke: shouldHighlight ? 'black' : 'gray',
markerColor: shouldHighlight ? 'black' : 'gray',
strokeWidth: shouldHighlight ? 2 : 0.5
};
Expand Down Expand Up @@ -197,7 +190,6 @@ const getLayoutedElements = (
height: 100
})),
edges: edges.map((edge) => {
console.log(edge, nodeNameMap[edge.source], nodeNameMap[edge.target]);
return {
...edge,
sources: [edge.source],
Expand Down
1 change: 0 additions & 1 deletion telemetry/ui/src/components/routes/app/StepList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ const TraceSubTable = (props: {
props.currentSelectedIndex !== undefined &&
sequenceID <= props.currentSelectedIndex &&
sequenceID >= props.currentSelectedIndex - props.numPriorIndices;
console.log(depth, Array(depth));
const lightText = 'text-gray-300';
const normalText = shouldBeHighlighted ? 'text-gray-100' : 'text-gray-400';
return (
Expand Down

0 comments on commit 2058b94

Please sign in to comment.