Skip to content
Shell
13.3 KB
Raw Blame

Pipeline CLI - Visual Dashboard Tool

Project: Visual CLI dashboard for ID8Labs Pipeline Tech Stack: Python + Rich library Install: Global pip package (pip install id8-cli) Command: id8 from anywhere


Overview

Build a stunning terminal dashboard that reads the .id8labs/ markdown files and displays:

  • Multi-panel dashboard layout (control room aesthetic)
  • Live updating display (refreshes like htop)
  • Color-coded tables with health indicators
  • ASCII progress bars for decay
  • Sparklines for activity trends

Directory Structure

/Users/eddiebelaval/Development/id8/id8-cli/
├── pyproject.toml           # Package config
├── README.md
├── id8_cli/
│   ├── __init__.py
│   ├── __main__.py          # Entry point
│   ├── cli.py               # Click commands
│   ├── dashboard.py         # Main dashboard UI
│   ├── panels/
│   │   ├── __init__.py
│   │   ├── health_overview.py
│   │   ├── project_table.py
│   │   ├── activity_feed.py
│   │   ├── stage_chart.py
│   │   └── alerts.py
│   ├── data/
│   │   ├── __init__.py
│   │   ├── loader.py        # Parse markdown + YAML
│   │   ├── models.py        # Pydantic models
│   │   └── calculator.py    # Decay, health, priority
│   ├── components/
│   │   ├── __init__.py
│   │   ├── decay_bar.py     # ASCII progress bar
│   │   ├── sparkline.py     # Activity sparklines
│   │   ├── state_badge.py   # Colored state labels
│   │   └── health_icon.py   # Emoji/colored indicators
│   └── config.py            # Paths, settings
└── tests/
    └── ...

Visual Design

Main Dashboard (id8 status or just id8)

╭─────────────────────────────── ID8 PIPELINE ───────────────────────────────╮
│                                                                             │
│  ╭──── Health ────╮  ╭──────────────── Alerts ──────────────────╮          │
│  │ 🟢 3 Healthy   │  │ 🔴 deepstack: 85% decay, 4 days to freeze│          │
│  │ 🟡 1 Warning   │  │ 🟡 composer: blocked on API key          │          │
│  │ 🔴 1 Critical  │  │                                          │          │
│  │ ❄️ 2 Ice       │  ╰──────────────────────────────────────────╯          │
│  ╰────────────────╯                                                         │
│                                                                             │
│  ╭──────────────────────── Active Projects ─────────────────────────╮      │
│  │ PROJECT      │ STATE      │ DECAY      │ HEALTH │ DAYS │ ACTION  │      │
│  ├──────────────┼────────────┼────────────┼────────┼──────┼─────────│      │
│  │ Composer     │ BUILDING   │ ████░░░░ 45% │ 🟢    │  23  │ Ship V1 │      │
│  │ DeepStack    │ GROWING    │ ███████░ 85% │ 🔴    │  12  │ Fix bug │      │
│  │ Pipeline     │ OPERATING  │ ─────────    │ 🟢    │  45  │ Maintain│      │
│  │ Lexicon      │ VALIDATING │ ██░░░░░░ 25% │ 🟢    │   8  │ Scout   │      │
│  ╰──────────────────────────────────────────────────────────────────╯      │
│                                                                             │
│  ╭─── Stage Distribution ───╮  ╭──────── Activity (7d) ────────╮          │
│  │ CAPTURED     ░░░░░░░░ 0  │  │ ▁▂▄▆█▇▅▃▂▁▂▄▆ 23 actions     │          │
│  │ VALIDATING   ██░░░░░░ 1  │  │                               │          │
│  │ BUILDING     ████░░░░ 2  │  │ Most active: Composer (12)    │          │
│  │ GROWING      ██░░░░░░ 1  │  │ Stalled: Lexicon (0 in 5d)    │          │
│  │ OPERATING    ██░░░░░░ 1  │  ╰───────────────────────────────╯          │
│  ╰──────────────────────────╯                                              │
│                                                                             │
│  ╭────────────────────────── Ice Box ❄️ ──────────────────────────╮        │
│  │ Factory      │ was BUILDING  │ 45 days frozen │ Thaw or kill? │        │
│  │ Clearance    │ was VALIDATING│ 12 days frozen │               │        │
│  ╰────────────────────────────────────────────────────────────────╯        │
│                                                                             │
╰─────────────────────────────────────────────────────────────────────────────╯
  ↻ Refreshing every 5s │ Press 'q' to quit │ 'p' for pulse │ 'n' for new

Project Detail (id8 show <slug>)

╭────────────────────────── Composer ──────────────────────────╮
│                                                               │
│  State: BUILDING          Health: 🟢 Healthy                 │
│  Decay: ████░░░░ 45%      Days in stage: 23                  │
│                                                               │
│  ─────────────────────────────────────────────────────────── │
│                                                               │
│  ONE-LINER                                                    │
│  AI-assisted writing with selective knowledge base            │
│  management for TV production.                                │
│                                                               │
│  ─────────────────────────────────────────────────────────── │
│                                                               │
│  GATE PROGRESS: BUILDING → LAUNCHING                          │
│  ✓ MVP deployed                                               │
│  ✓ Core features complete                                     │
│  ○ Beta users onboarded                                       │
│  ○ Launch page ready                                          │
│                                                               │
│  ─────────────────────────────────────────────────────────── │
│                                                               │
│  ACTIVITY (last 7 days)                                       │
│  ▁▂▄▆█▇▅ 12 actions                                          │
│                                                               │
│  • Dec 21: Added export feature                               │
│  • Dec 20: Fixed auth bug                                     │
│  • Dec 19: Updated UI components                              │
│                                                               │
│  ─────────────────────────────────────────────────────────── │
│                                                               │
│  BLOCKERS: None                                               │
│                                                               │
╰───────────────────────────────────────────────────────────────╯

Commands

Command Description
id8 or id8 status Live dashboard (default)
id8 show <slug> Project detail view
id8 new <slug> <name> Create new project
id8 log <slug> <activity> Log activity
id8 update <slug> <state> Transition state
id8 ice <slug> Freeze project
id8 thaw <slug> Unfreeze project
id8 kill <slug> Kill project
id8 pulse Quick 2-min check (non-live)
id8 list Simple table list
id8 config Show/edit config

Key Dependencies

[tool.poetry.dependencies]
python = "^3.10"
rich = "^13.7"           # Terminal UI
click = "^8.1"           # CLI framework
pyyaml = "^6.0"          # YAML parsing
python-frontmatter = "^1.0"  # Markdown frontmatter
pydantic = "^2.5"        # Data models
watchdog = "^3.0"        # File watching for live updates

Data Flow

.id8labs/projects/*.md
         │
         ▼
┌─────────────────┐
│  loader.py      │  Parse YAML frontmatter + markdown
└────────┬────────┘
         │
         ▼
┌─────────────────┐
│  models.py      │  Pydantic models (Project, Portfolio)
└────────┬────────┘
         │
         ▼
┌─────────────────┐
│  calculator.py  │  Decay %, health, priority scores
└────────┬────────┘
         │
         ▼
┌─────────────────┐
│  panels/*.py    │  Rich Panel components
└────────┬────────┘
         │
         ▼
┌─────────────────┐
│  dashboard.py   │  Layout + Live display
└─────────────────┘

Implementation Chunks

Chunk 1: Project Setup + Data Layer

  • Create project structure with pyproject.toml
  • Implement loader.py (parse markdown + YAML)
  • Define Pydantic models
  • Implement calculator.py (decay, health)
  • Unit tests for data parsing

Chunk 2: Core Components

  • decay_bar.py - ASCII progress bar with colors
  • sparkline.py - Activity trend visualization
  • state_badge.py - Colored state labels
  • health_icon.py - Emoji/color health indicators

Chunk 3: Dashboard Panels

  • health_overview.py - Health counts panel
  • project_table.py - Main project table
  • alerts.py - Critical/warning alerts
  • stage_chart.py - Stage distribution
  • activity_feed.py - Recent activity + sparklines

Chunk 4: Main Dashboard

  • dashboard.py - Layout composition
  • Live updating with Rich Live
  • Keyboard controls (q to quit, etc.)
  • File watching for auto-refresh

Chunk 5: CLI Commands

  • cli.py with Click
  • Commands: status, show, new, log, update, ice, thaw, kill, pulse, list
  • Entry point in main.py

Chunk 6: Polish + Install

  • README.md
  • pyproject.toml entry points
  • Test pip install -e . locally
  • Publish to PyPI (optional)

Key Files to Create

  1. /Users/eddiebelaval/Development/id8/id8-cli/pyproject.toml
  2. /Users/eddiebelaval/Development/id8/id8-cli/id8_cli/__init__.py
  3. /Users/eddiebelaval/Development/id8/id8-cli/id8_cli/__main__.py
  4. /Users/eddiebelaval/Development/id8/id8-cli/id8_cli/cli.py
  5. /Users/eddiebelaval/Development/id8/id8-cli/id8_cli/config.py
  6. /Users/eddiebelaval/Development/id8/id8-cli/id8_cli/data/loader.py
  7. /Users/eddiebelaval/Development/id8/id8-cli/id8_cli/data/models.py
  8. /Users/eddiebelaval/Development/id8/id8-cli/id8_cli/data/calculator.py
  9. /Users/eddiebelaval/Development/id8/id8-cli/id8_cli/components/*.py
  10. /Users/eddiebelaval/Development/id8/id8-cli/id8_cli/panels/*.py
  11. /Users/eddiebelaval/Development/id8/id8-cli/id8_cli/dashboard.py

Success Criteria

  1. pip install -e . works
  2. id8 shows live dashboard with panels
  3. Dashboard auto-refreshes on file changes
  4. All CRUD commands work (new, log, update, ice, thaw, kill)
  5. Decay bars, sparklines, health icons render correctly
  6. Keyboard controls work (q to quit)
  7. Works on macOS terminal

Plan created: 2025-12-21 Ready for implementation