From a70fc248bf6d5bec63867b2f12bee8423efa2a40 Mon Sep 17 00:00:00 2001 From: Pouzor Date: Sat, 8 Aug 2026 01:07:08 +0200 Subject: [PATCH] feat(walkthrough): introduce the rack canvas, and keep Next inside the card MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Getting Started tour stopped at the logical canvas, so the third design type was invisible to anyone who had not gone looking for New Canvas → Kind. A step between grouping and styling now points at the canvas switcher and says what a rack canvas is for. It is `mode: 'all'` — a rack needs no backend, it persists to localStorage in standalone like any other canvas — and it anchors on the switcher rather than a rack control, since the tour runs on a network canvas where none of the rack sidebar items exist. That twelfth step also broke the card footer. The progress strip grows with the step count and neither footer child could shrink (`min-width: auto`), so at twelve dots the strip pushed the counter and both buttons past the right edge of the 320px card — Next ended up outside it. The strip is now the part that gives: it shrinks and clips, the controls hold their size, and Next stays anchored whatever the step count. ha-relevant: maybe The overlay fix applies to any build of the frontend; the rack step itself is pointless until the rack canvas is ported. --- frontend/src/components/panels/Sidebar.tsx | 1 + .../panels/__tests__/Sidebar.test.tsx | 32 +++++++++++++++++++ .../src/walkthrough/WalkthroughOverlay.tsx | 10 +++--- .../__tests__/WalkthroughOverlay.test.tsx | 14 ++++++++ .../src/walkthrough/__tests__/steps.test.ts | 15 ++++++++- frontend/src/walkthrough/steps.ts | 8 +++++ 6 files changed, 75 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/panels/Sidebar.tsx b/frontend/src/components/panels/Sidebar.tsx index 049d9e0..d4cc60e 100644 --- a/frontend/src/components/panels/Sidebar.tsx +++ b/frontend/src/components/panels/Sidebar.tsx @@ -172,6 +172,7 @@ export function Sidebar({ onAddNode, onAddGroupRect, onAddText, onScan, onZigbee