From 391817d2c91e59630eda102c9ef300b5903ab764 Mon Sep 17 00:00:00 2001 From: David Montero Date: Mon, 18 May 2026 19:32:18 +0200 Subject: [PATCH] fix(components-metadata): sync power-supply override + regenerate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two pieces of drift introduced in 305170a (Regulated Power Supply): 1. The committed components-metadata.json carries a custom rich thumbnail SVG (showing 5.00V / 1.00A / PSU labels), but the _customComponents override has no `thumbnail` field — so any regen via `npm run generate:metadata` replaces it with the generic placeholder. CI catches the drift and fails. Fix: lift the rich SVG into the override entry. 2. The committed metadata description is a short one-liner while the override description is the longer explanatory version. The override is the source of truth, so the metadata now matches: longer description wins. Verified locally: regenerator now produces zero diff against the committed metadata. --- frontend/public/components-metadata.json | 2 +- scripts/component-overrides.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/public/components-metadata.json b/frontend/public/components-metadata.json index c69842fc..b58b52d5 100644 --- a/frontend/public/components-metadata.json +++ b/frontend/public/components-metadata.json @@ -575,7 +575,7 @@ "tagName": "wokwi-signal-generator", "name": "Regulated Power Supply", "category": "analog", - "description": "Bench DC/AC power supply with optional current limit. DC mode for fixed rails; AC mode for sine. Verifier enforces the current limit per instance." + "description": "Bench DC/AC power supply with optional current limit. DC mode for fixed rails (5V, 12V, etc.); AC mode for sine sources. Visually shares the signal-generator chassis so no new Web Component is needed. The current limit is enforced by the circuit verifier — if any load pulls more than the configured amperage, Run is blocked with a 'source-overload' warning, mimicking a real bench supply's foldback behavior." }, { "thumbnail": "\n \n \n SIGNAL-GENERATOR\n \n ", diff --git a/scripts/component-overrides.json b/scripts/component-overrides.json index 243b24ae..5dfc5466 100644 --- a/scripts/component-overrides.json +++ b/scripts/component-overrides.json @@ -1049,6 +1049,7 @@ "tagName": "wokwi-signal-generator", "name": "Regulated Power Supply", "category": "analog", + "thumbnail": "\n \n \n 5.00V\n 1.00A\n \n \n PSU\n ", "description": "Bench DC/AC power supply with optional current limit. DC mode for fixed rails (5V, 12V, etc.); AC mode for sine sources. Visually shares the signal-generator chassis so no new Web Component is needed. The current limit is enforced by the circuit verifier — if any load pulls more than the configured amperage, Run is blocked with a 'source-overload' warning, mimicking a real bench supply's foldback behavior.", "properties": [ {