Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.
Python aiburrchatbot-frameworkdagsgenerative-aigraphshacktoberfestllmopsllmsmlopspersistent-data-structurestate-machinestate-managementvisibility
Cleans up console log statements and ==, adds to lint
elijahbenizzyab82fdd3fee5
diff --git a/telemetry/ui/.eslintrc.js b/telemetry/ui/.eslintrc.jsindex f567da13..ec131827 100644--- a/telemetry/ui/.eslintrc.js+++ b/telemetry/ui/.eslintrc.js@@ -21,7 +21,8 @@ module.exports = {'react-hooks/exhaustive-deps': 'off', // Checks effect dependencies'react/react-in-jsx-scope': 'off','@typescript-eslint/ban-ts-comment': 'off',- 'react/prop-types': 'off' //Appears to be busted: see https://stackoverflow.com/questions/38684925/react-eslint-error-missing-in-props-validation+ 'react/prop-types': 'off', //Appears to be busted: see https://stackoverflow.com/questions/38684925/react-eslint-error-missing-in-props-validation+ 'eqeqeq': 'error',},settings: {react: {diff --git a/telemetry/ui/src/components/common/dates.tsx b/telemetry/ui/src/components/common/dates.tsxindex cb8c4168..c6d8f4d3 100644--- a/telemetry/ui/src/components/common/dates.tsx+++ b/telemetry/ui/src/components/common/dates.tsx@@ -17,7 +17,7 @@ export const DateDisplay: React.FC<{ date: string }> = ({ date }) => {export const DateTimeDisplay: React.FC<{ date: string; mode: 'short' | 'long' }> = (props) => {const displayDateTime = new Date(props.date).toLocaleString('en-US', {day: 'numeric',- month: props.mode == 'short' ? 'numeric' : 'long',+ month: props.mode === 'short' ? 'numeric' : 'long',year: 'numeric',hour: 'numeric',minute: '2-digit',diff --git a/telemetry/ui/src/components/routes/app/AppView.tsx b/telemetry/ui/src/components/routes/app/AppView.tsxindex 3b7bc283..fff95174 100644--- a/telemetry/ui/src/components/routes/app/AppView.tsx+++ b/telemetry/ui/src/components/routes/app/AppView.tsx@@ -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}diff --git a/telemetry/ui/src/components/routes/app/DataView.tsx b/telemetry/ui/src/components/routes/app/DataView.tsxindex 6f403687..3ca43c99 100644--- a/telemetry/ui/src/components/routes/app/DataView.tsx+++ b/telemetry/ui/src/components/routes/app/DataView.tsx@@ -31,7 +31,7 @@ export const DataView = (props: { currentStep: Step | undefined; priorStep: Step{stateData !== undefined && (<StateButtonlabel="after"- selected={whichState == 'after'}+ selected={whichState === 'after'}setSelected={() => {setWhichState('after');}}@@ -41,7 +41,7 @@ export const DataView = (props: { currentStep: Step | undefined; priorStep: Step{<StateButtonlabel="before"- selected={whichState == 'before'}+ selected={whichState === 'before'}setSelected={() => {setWhichState('before');}}diff --git a/telemetry/ui/src/components/routes/app/GraphView.tsx b/telemetry/ui/src/components/routes/app/GraphView.tsxindex 5d103b26..b5013eef 100644--- a/telemetry/ui/src/components/routes/app/GraphView.tsx+++ b/telemetry/ui/src/components/routes/app/GraphView.tsx@@ -102,7 +102,6 @@ const ActionNode = (props: { data: NodeData }) => {);};export const ActionActionEdge = ({- id,sourceX,sourceY,targetX,@@ -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,@@ -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};@@ -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],diff --git a/telemetry/ui/src/components/routes/app/StepList.tsx b/telemetry/ui/src/components/routes/app/StepList.tsxindex 6ade798f..5c2d9c9b 100644--- a/telemetry/ui/src/components/routes/app/StepList.tsx+++ b/telemetry/ui/src/components/routes/app/StepList.tsx@@ -96,7 +96,7 @@ const CommonTableRow = (props: {props.setCurrentHoverIndex(props.sequenceID);}}onClick={() => {- if (props.currentSelectedIndex == props.sequenceID) {+ if (props.currentSelectedIndex === props.sequenceID) {props.setCurrentSelectedIndex(undefined);} else {props.setCurrentSelectedIndex(props.sequenceID);@@ -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 (@@ -227,7 +226,7 @@ const TraceSubTable = (props: {{[...Array(depth).keys()].map((i) => (<RiCornerDownRightLinekey={i}- className={`${i == depth - 1 ? 'opacity-100' : 'opacity-0'} text-lg`}+ className={`${i === depth - 1 ? 'opacity-100' : 'opacity-0'} text-lg`}></RiCornerDownRightLine>))}{span.begin_entry.span_name}