AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
aarushikansal/flow stats scroll legend (#7370)
Aarushia408da831784
diff --git a/rnd/autogpt_builder/src/app/monitor/page.tsx b/rnd/autogpt_builder/src/app/monitor/page.tsxindex 4dd3af06ee..6368ebf833 100644--- a/rnd/autogpt_builder/src/app/monitor/page.tsx+++ b/rnd/autogpt_builder/src/app/monitor/page.tsx@@ -268,6 +268,33 @@ const FlowRunStatusBadge = ({ status }: { status: FlowRun['status'] }) => (</Badge>);+const ScrollableLegend = ({ payload }) => {+ return (+ <div style={{+ overflowX: 'auto',+ overflowY: 'hidden',+ whiteSpace: 'nowrap',+ padding: '10px 0',+ fontSize: '0.75em'+ }}>+ {payload.map((entry, index) => (+ <span key={`item-${index}`} style={{ display: 'inline-block', marginRight: '10px' }}>+ <span+ style={{+ display: 'inline-block',+ marginRight: '5px',+ width: '8px',+ height: '8px',+ backgroundColor: entry.color,+ }}+ />+ <span>{entry.value}</span>+ </span>+ ))}+ </div>+ );+};+const FlowRunsStats = ({ flows, flowRuns }: {@@ -414,7 +441,10 @@ const FlowRunsTimeline = (legendType="none"/>))}- <Legend wrapperStyle={{ fontSize: '0.75em' }} iconSize={8} />+ <Legend+ content={<ScrollableLegend />}+ wrapperStyle={{ bottom: 0, left: 0, right: 0 }}+ /></ComposedChart></ResponsiveContainer>);