archflow-mcp / implementation_plan.md
Ryan Cashman
Simplify to pure HTML - remove rich dep
a089044

A newer version of the Gradio SDK is available: 6.6.0

Upgrade

Implementation Plan - ArchFlow MCP Hacker Terminal

This plan outlines the steps to build and refine the Hacker Terminal UI for ArchFlow MCP.

User Review Required

  • Copy Functionality: I am adding a custom JavaScript-based copy button to handle the HTML output.
  • Theme: The current theme is "Matrix Green". Let me know if you want "Amber" or "Cyberpunk Purple".

Proposed Changes

UI Enhancements

  • Basic Layout: Split screen with Input and Output.
  • Terminal Theme: Black background, green text, glowing borders.
  • ANSI Formatting: Using rich to generate HTML with terminal colors.
  • Copy Button: Add a button to copy the terminal output to clipboard.
  • Mobile Responsiveness: Ensure it looks good on smaller screens (Gradio handles most of this, but we can tweak CSS).

Backend Logic (Simulation)

  • Mock Analysis: Simulate "thinking" time and generate fake results.
  • Siren Detection: Show "Microservices" warning as requested.
  • Roadmap Generation: Show a simple phased roadmap.

Verification Plan

Automated Tests

  • Browser Subagent: Verify the UI loads and interactive elements work.
  • Copy Test: Verify the copy button actually puts text in the clipboard (verified via JS injection).

Manual Verification

  • Visual Check: Ensure the "glow" effects look "sick".
  • Workflow: Input -> Analyze -> Output -> Copy.