From 7a00546e631bebdfc56ca8cca12443d24c4c8f56 Mon Sep 17 00:00:00 2001 From: "Fabian @ Blax Software" Date: Wed, 21 Oct 2026 14:21:40 +0200 Subject: [PATCH] A parts dropped from the list connect where they land, cable buttons beside a selected part's pins, a reload offer for new releases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Dragging (or placing) a part onto pins: its free pins land on pins they can join, a square away is enough, green rings show where; dropped, it is placed and wired in one step (Alt: just place) - A selected component, panel or hex display shows a cable button beside its outputs and its inputs: one click for a cable onto those pins (or pick S0–S3, all 5, ...) - Cable from outputs (or into inputs) whose pins already have one wire each takes those wires into the cable instead of adding a second path - An open tab notices a new release within a minute and offers a reload (work is saved) Co-Authored-By: Claude Opus 5.5 (1M context) --- app/assets/css/main.css | 50 ++++++++++++++ app/components/editor/App.vue | 12 ++++ app/components/editor/Canvas.vue | 111 +++++++++++++++++++++++++++--- app/components/editor/Help.vue | 3 +- app/components/editor/Palette.vue | 3 + app/composables/useEditor.ts | 27 +++++++- app/plugins/update.client.ts | 9 +++ nuxt.config.ts | 3 + 8 files changed, 204 insertions(+), 14 deletions(-) create mode 100644 app/plugins/update.client.ts diff --git a/app/assets/css/main.css b/app/assets/css/main.css index b8afe5f..7587f8a 100644 --- a/app/assets/css/main.css +++ b/app/assets/css/main.css @@ -960,6 +960,32 @@ kbd { .node .face-text.ink-green { fill: #3ddc84; } .node .face-text.ink-blue { fill: #4dabff; } +/* Cable buttons beside a selected part's pins. */ +.cable-btn { + cursor: pointer; +} + +.cable-btn circle { + fill: var(--panel-2); + stroke: var(--accent); + stroke-width: 1.3; +} + +.cable-btn path { + fill: none; + stroke: var(--text); + stroke-width: 1.5; + stroke-linecap: round; +} + +.cable-btn:hover circle { + fill: var(--accent); +} + +.cable-btn:hover path { + stroke: #0e1116; +} + /* + and − under a selected gate. */ .widen-btn { cursor: pointer; @@ -3173,3 +3199,27 @@ kbd { flex: 1; min-width: 120px; } + +/* A new release is out: offer a reload. */ +.update-bar { + position: fixed; + top: 56px; + left: 50%; + z-index: 65; + display: flex; + align-items: center; + gap: 10px; + padding: 7px 8px 7px 14px; + transform: translateX(-50%); + border: 1px solid rgb(76 194 255 / 0.5); + border-radius: 10px; + background: #142231; + box-shadow: 0 10px 30px rgb(0 0 0 / 0.4); + color: var(--text); + font-size: 13px; +} + +.update-bar .btn-sm { + border-color: var(--accent); + color: var(--accent); +} diff --git a/app/components/editor/App.vue b/app/components/editor/App.vue index 5c06a4c..8fcc9e9 100644 --- a/app/components/editor/App.vue +++ b/app/components/editor/App.vue @@ -1,5 +1,11 @@