-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Description
Add color-coded confidence indicators to investigation output for better visual feedback.
Why
When investigating incidents, confidence levels are shown as numbers (e.g., "0.86"). Adding colors would make it immediately clear whether confidence is high, medium, or low:
- 🟢 Green: High confidence (≥0.8)
- 🟡 Yellow: Medium confidence (0.5-0.8)
- 🔴 Red: Low confidence (<0.5)
What to do
- Look at how the investigation results are rendered in
src/cli.tsx - The project uses Ink for terminal rendering (React-like)
- Add conditional coloring based on confidence thresholds
- Use Ink's
<Text color="green">component
Example
const getConfidenceColor = (confidence: number) => {
if (confidence >= 0.8) return "green";
if (confidence >= 0.5) return "yellow";
return "red";
};
<Text color={getConfidenceColor(hypothesis.confidence)}>
Confidence: {(hypothesis.confidence * 100).toFixed(0)}%
</Text>Getting Started
bun install
bun run dev investigate --help # See the commandGreat for learning Ink/React terminal UI!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers