Skip to content

SpectraBox v1.2.0 - Major UI Refactoring

Latest

Choose a tag to compare

@mattstegner mattstegner released this 23 Nov 22:26
· 12 commits to main since this release

🎨 Major UI Refactoring

This release focuses on improving code organization, maintainability, and developer experience through a comprehensive UI refactoring while maintaining 100% backward compatibility and zero performance impact.

✨ New Features

Component Architecture

  • 6 New JavaScript Components for better code encapsulation:
    • LegendComponent - Manages channel legend display and mode switching
    • AudioDeviceComponent - Handles audio device selection UI
    • NetworkInfoComponent - Displays network status and configuration
    • SettingsPanelComponent - Manages settings panel tabs and visibility
    • UpdateNotificationComponent - Handles update notification overlay

Template System

  • New Templates utility module with reusable template functions
  • Methods: slider(), select(), toggle(), button(), statusCard(), configItem()
  • Modernized HTML generation using template literals

CSS Organization

  • Extracted inline styles to 5 separate, organized CSS files:
    • main.css - Base styles, body, canvas, legend
    • components.css - Buttons, settings panel, tabs, form controls
    • meters.css - Update status, progress bars, network/config displays
    • animations.css - Keyframes and animation definitions
    • responsive.css - Media queries for different screen sizes

🔧 Improvements

  • Reduced index.html from 1,573 to 553 lines (~65% reduction)
  • Better separation of concerns: CSS, HTML, and JavaScript
  • Zero performance degradation - maintains 30 FPS on Raspberry Pi
  • 100% backward compatibility maintained

📦 Installation

New Installations

curl -fsSL https://raw.githubusercontent.com/mattstegner/SpectraBox/main/scripts/spectrabox-kiosk-install.sh | sudo bash

Existing Installations

Updates available through the web interface:

  1. Navigate to Settings → Server
  2. Click "Check for Updates"
  3. Click "Update Now"

🔗 Full Changelog

See the full changelog for all changes.