From 15392174aa16f2f9c5c365f4710825d84d0f9600 Mon Sep 17 00:00:00 2001
From: Me Here
Date: Thu, 4 Jun 2026 12:23:15 -0500
Subject: [PATCH] web: hide PM_E-1 from landing (focus PM_E-2); clarify pm_e-2
device controls
Landing (index.html):
- Remove the PM_E-1 (editor.html) viewport; default the live viewport to PM_E-2.
- Repoint the vp-bar + the "design in the editor" link to pm_e-2.html. editor.html
still exists, just not featured on the landing.
PM_E-2 editor (pm_e-2.html) - the device-connection badge + Device-audio toggle:
- Group both in the header as matching .devctrl pills, side by side.
- Clear tooltips spelling out exactly what each does: the badge only REPORTS the
USB-MIDI link (green + name when a PM device is plugged in); Device audio is an
on/off switch that routes a connected device through the computer speakers and
does not require a device to toggle.
- Device-audio button now shows on/off state via colour (green when on), matching
the badge, instead of the .primary class (which clashed with the pill style).
- Fix _isDevicePort: it only matched pico/circuitpython/pimoroni/varasys, so the
native Rust devices ("PM_G-1 Grid" etc.) were never recognized -> the badge
stayed "no device" even when connected. Now matches pm_g/pm_k/pm_x/grid/polymeter.
Co-Authored-By: Claude Opus 4.8 (1M context)
---
index.html | 12 ++++++------
pm_e-2.html | 34 +++++++++++++++++++++++++---------
2 files changed, 31 insertions(+), 15 deletions(-)
diff --git a/index.html b/index.html
index cd58954..02bf149 100644
--- a/index.html
+++ b/index.html
@@ -95,7 +95,7 @@
🛠️ Program on the web, play on any device
-
The website is the workbench: design in the editor, and the same
+
The website is the workbench: design in the editor, and the same
program string loads into whichever form factor fits the moment. One engine, one language.