[object Object]

← back to Wallco Ai

Add keyboard shortcuts to /designs (K/R/P/arrows/1-9/?) + npm pretest auto-resets all 5 data files (was leaking state between runs)

5e655457bdd67d7620df784830edc4f9f06535fe · 2026-05-11 18:57:14 -0700 · Steve Abrams

Files touched

Diff

commit 5e655457bdd67d7620df784830edc4f9f06535fe
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Mon May 11 18:57:14 2026 -0700

    Add keyboard shortcuts to /designs (K/R/P/arrows/1-9/?) + npm pretest auto-resets all 5 data files (was leaking state between runs)
---
 tests/package.json | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/package.json b/tests/package.json
index 2d69136..fc90aba 100644
--- a/tests/package.json
+++ b/tests/package.json
@@ -4,6 +4,8 @@
   "private": true,
   "description": "End-to-end tests for the /designs review flow (sliders, K/R, chips, chat, pair, pin).",
   "scripts": {
+    "reset-state": "node -e \"const fs=require('fs'),p=require('path');for(const f of['reviews','chip-chats','moodboards','pairings','vision-cache'])fs.writeFileSync(p.join('..','data',f+'.json'),'{}');console.log('✓ test data reset')\"",
+    "pretest": "npm run reset-state",
     "test": "playwright test",
     "test:headed": "playwright test --headed",
     "test:browserbase": "BB_MODE=1 playwright test",

← ccd3f38 wallco.ai: 'Pair this with' block on /design/:id — 3 nearest  ·  back to Wallco Ai  ·  generator: one-step batch UI + fix /design/13 (age modal was ae9a436 →