# PIPS Frontend Modularization This directory contains the refactored, modular version of the PIPS (Per-Instance Program Synthesis) frontend application. ## ๐Ÿ“ Structure Overview ``` pips/static/ โ”œโ”€โ”€ css/ โ”‚ โ”œโ”€โ”€ main.css # Main CSS entry point (imports all modules) โ”‚ โ”œโ”€โ”€ tokens.css # Design tokens (colors, spacing, etc.) โ”‚ โ”œโ”€โ”€ base.css # Global resets and typography โ”‚ โ””โ”€โ”€ components/ โ”‚ โ”œโ”€โ”€ panels.css # Left/right panel layouts โ”‚ โ”œโ”€โ”€ forms.css # Form elements and inputs โ”‚ โ”œโ”€โ”€ buttons.css # Button components โ”‚ โ”œโ”€โ”€ chat.css # Chat area and message styles โ”‚ โ”œโ”€โ”€ sessions.css # Session management UI โ”‚ โ”œโ”€โ”€ modal.css # Modal dialogs โ”‚ โ”œโ”€โ”€ utilities.css # Utility classes and animations โ”‚ โ””โ”€โ”€ responsive.css # Media queries for mobile โ”œโ”€โ”€ js/ โ”‚ โ”œโ”€โ”€ main.js # Application bootstrap โ”‚ โ”œโ”€โ”€ core/ โ”‚ โ”‚ โ”œโ”€โ”€ logger.js # Debug logging utility โ”‚ โ”‚ โ”œโ”€โ”€ state.js # Application state management โ”‚ โ”‚ โ””โ”€โ”€ storage.js # localStorage utilities โ”‚ โ””โ”€โ”€ network/ โ”‚ โ””โ”€โ”€ socket.js # Socket.IO connection management โ””โ”€โ”€ README.md # This file ``` ## ๐Ÿ”„ Migration from Monolithic ### Before (index.html) - **~4000 lines** in single file - Inline `