Skip to content

The design language that makes your AI harness better at design.

JavaScript

fix(live): Escape in PICKING also resets the global bar's Pick button

Paul Bakaus37c1a364a433
diff --git a/.agents/skills/impeccable/scripts/live-browser.js b/.agents/skills/impeccable/scripts/live-browser.js
index 109d0d58e..c943ede91 100644
--- a/.agents/skills/impeccable/scripts/live-browser.js
+++ b/.agents/skills/impeccable/scripts/live-browser.js
@@ -1747,7 +1747,13 @@
if (state === 'CONFIGURING') { hideBar(); stopScrollTracking(); hideAnnotOverlay(); clearAnnotations(); state = 'PICKING'; return; }
if (state === 'CYCLING') { handleDiscard(); return; }
if (state === 'SAVING' || state === 'CONFIRMED') return; // don't interrupt
- if (state === 'PICKING') { hideHighlight(); state = 'IDLE'; return; }
+ if (state === 'PICKING') {
+ // Use togglePick so the "Pick" button in the global bar also flips
+ // off, otherwise the bar stays lit while nothing else is active.
+ if (pickActive) togglePick();
+ else { hideHighlight(); state = 'IDLE'; }
+ return;
+ }
}
// Arrow/Enter nav works in PICKING (hover) and CONFIGURING (selected, input empty)
diff --git a/.claude/skills/impeccable/scripts/live-browser.js b/.claude/skills/impeccable/scripts/live-browser.js
index 109d0d58e..c943ede91 100644
--- a/.claude/skills/impeccable/scripts/live-browser.js
+++ b/.claude/skills/impeccable/scripts/live-browser.js
@@ -1747,7 +1747,13 @@
if (state === 'CONFIGURING') { hideBar(); stopScrollTracking(); hideAnnotOverlay(); clearAnnotations(); state = 'PICKING'; return; }
if (state === 'CYCLING') { handleDiscard(); return; }
if (state === 'SAVING' || state === 'CONFIRMED') return; // don't interrupt
- if (state === 'PICKING') { hideHighlight(); state = 'IDLE'; return; }
+ if (state === 'PICKING') {
+ // Use togglePick so the "Pick" button in the global bar also flips
+ // off, otherwise the bar stays lit while nothing else is active.
+ if (pickActive) togglePick();
+ else { hideHighlight(); state = 'IDLE'; }
+ return;
+ }
}
// Arrow/Enter nav works in PICKING (hover) and CONFIGURING (selected, input empty)
diff --git a/.cursor/skills/impeccable/scripts/live-browser.js b/.cursor/skills/impeccable/scripts/live-browser.js
index 109d0d58e..c943ede91 100644
--- a/.cursor/skills/impeccable/scripts/live-browser.js
+++ b/.cursor/skills/impeccable/scripts/live-browser.js
@@ -1747,7 +1747,13 @@
if (state === 'CONFIGURING') { hideBar(); stopScrollTracking(); hideAnnotOverlay(); clearAnnotations(); state = 'PICKING'; return; }
if (state === 'CYCLING') { handleDiscard(); return; }
if (state === 'SAVING' || state === 'CONFIRMED') return; // don't interrupt
- if (state === 'PICKING') { hideHighlight(); state = 'IDLE'; return; }
+ if (state === 'PICKING') {
+ // Use togglePick so the "Pick" button in the global bar also flips
+ // off, otherwise the bar stays lit while nothing else is active.
+ if (pickActive) togglePick();
+ else { hideHighlight(); state = 'IDLE'; }
+ return;
+ }
}
// Arrow/Enter nav works in PICKING (hover) and CONFIGURING (selected, input empty)
diff --git a/.gemini/skills/impeccable/scripts/live-browser.js b/.gemini/skills/impeccable/scripts/live-browser.js
index 109d0d58e..c943ede91 100644
--- a/.gemini/skills/impeccable/scripts/live-browser.js
+++ b/.gemini/skills/impeccable/scripts/live-browser.js
@@ -1747,7 +1747,13 @@
if (state === 'CONFIGURING') { hideBar(); stopScrollTracking(); hideAnnotOverlay(); clearAnnotations(); state = 'PICKING'; return; }
if (state === 'CYCLING') { handleDiscard(); return; }
if (state === 'SAVING' || state === 'CONFIRMED') return; // don't interrupt
- if (state === 'PICKING') { hideHighlight(); state = 'IDLE'; return; }
+ if (state === 'PICKING') {
+ // Use togglePick so the "Pick" button in the global bar also flips
+ // off, otherwise the bar stays lit while nothing else is active.
+ if (pickActive) togglePick();
+ else { hideHighlight(); state = 'IDLE'; }
+ return;
+ }
}
// Arrow/Enter nav works in PICKING (hover) and CONFIGURING (selected, input empty)
diff --git a/.github/skills/impeccable/scripts/live-browser.js b/.github/skills/impeccable/scripts/live-browser.js
index 109d0d58e..c943ede91 100644
--- a/.github/skills/impeccable/scripts/live-browser.js
+++ b/.github/skills/impeccable/scripts/live-browser.js
@@ -1747,7 +1747,13 @@
if (state === 'CONFIGURING') { hideBar(); stopScrollTracking(); hideAnnotOverlay(); clearAnnotations(); state = 'PICKING'; return; }
if (state === 'CYCLING') { handleDiscard(); return; }
if (state === 'SAVING' || state === 'CONFIRMED') return; // don't interrupt
- if (state === 'PICKING') { hideHighlight(); state = 'IDLE'; return; }
+ if (state === 'PICKING') {
+ // Use togglePick so the "Pick" button in the global bar also flips
+ // off, otherwise the bar stays lit while nothing else is active.
+ if (pickActive) togglePick();
+ else { hideHighlight(); state = 'IDLE'; }
+ return;
+ }
}
// Arrow/Enter nav works in PICKING (hover) and CONFIGURING (selected, input empty)
diff --git a/.kiro/skills/impeccable/scripts/live-browser.js b/.kiro/skills/impeccable/scripts/live-browser.js
index 109d0d58e..c943ede91 100644
--- a/.kiro/skills/impeccable/scripts/live-browser.js
+++ b/.kiro/skills/impeccable/scripts/live-browser.js
@@ -1747,7 +1747,13 @@
if (state === 'CONFIGURING') { hideBar(); stopScrollTracking(); hideAnnotOverlay(); clearAnnotations(); state = 'PICKING'; return; }
if (state === 'CYCLING') { handleDiscard(); return; }
if (state === 'SAVING' || state === 'CONFIRMED') return; // don't interrupt
- if (state === 'PICKING') { hideHighlight(); state = 'IDLE'; return; }
+ if (state === 'PICKING') {
+ // Use togglePick so the "Pick" button in the global bar also flips
+ // off, otherwise the bar stays lit while nothing else is active.
+ if (pickActive) togglePick();
+ else { hideHighlight(); state = 'IDLE'; }
+ return;
+ }
}
// Arrow/Enter nav works in PICKING (hover) and CONFIGURING (selected, input empty)
diff --git a/.opencode/skills/impeccable/scripts/live-browser.js b/.opencode/skills/impeccable/scripts/live-browser.js
index 109d0d58e..c943ede91 100644
--- a/.opencode/skills/impeccable/scripts/live-browser.js
+++ b/.opencode/skills/impeccable/scripts/live-browser.js
@@ -1747,7 +1747,13 @@
if (state === 'CONFIGURING') { hideBar(); stopScrollTracking(); hideAnnotOverlay(); clearAnnotations(); state = 'PICKING'; return; }
if (state === 'CYCLING') { handleDiscard(); return; }
if (state === 'SAVING' || state === 'CONFIRMED') return; // don't interrupt
- if (state === 'PICKING') { hideHighlight(); state = 'IDLE'; return; }
+ if (state === 'PICKING') {
+ // Use togglePick so the "Pick" button in the global bar also flips
+ // off, otherwise the bar stays lit while nothing else is active.
+ if (pickActive) togglePick();
+ else { hideHighlight(); state = 'IDLE'; }
+ return;
+ }
}
// Arrow/Enter nav works in PICKING (hover) and CONFIGURING (selected, input empty)
diff --git a/.pi/skills/impeccable/scripts/live-browser.js b/.pi/skills/impeccable/scripts/live-browser.js
index 109d0d58e..c943ede91 100644
--- a/.pi/skills/impeccable/scripts/live-browser.js
+++ b/.pi/skills/impeccable/scripts/live-browser.js
@@ -1747,7 +1747,13 @@
if (state === 'CONFIGURING') { hideBar(); stopScrollTracking(); hideAnnotOverlay(); clearAnnotations(); state = 'PICKING'; return; }
if (state === 'CYCLING') { handleDiscard(); return; }
if (state === 'SAVING' || state === 'CONFIRMED') return; // don't interrupt
- if (state === 'PICKING') { hideHighlight(); state = 'IDLE'; return; }
+ if (state === 'PICKING') {
+ // Use togglePick so the "Pick" button in the global bar also flips
+ // off, otherwise the bar stays lit while nothing else is active.
+ if (pickActive) togglePick();
+ else { hideHighlight(); state = 'IDLE'; }
+ return;
+ }
}
// Arrow/Enter nav works in PICKING (hover) and CONFIGURING (selected, input empty)
diff --git a/.rovodev/skills/impeccable/scripts/live-browser.js b/.rovodev/skills/impeccable/scripts/live-browser.js
index 109d0d58e..c943ede91 100644
--- a/.rovodev/skills/impeccable/scripts/live-browser.js
+++ b/.rovodev/skills/impeccable/scripts/live-browser.js
@@ -1747,7 +1747,13 @@
if (state === 'CONFIGURING') { hideBar(); stopScrollTracking(); hideAnnotOverlay(); clearAnnotations(); state = 'PICKING'; return; }
if (state === 'CYCLING') { handleDiscard(); return; }
if (state === 'SAVING' || state === 'CONFIRMED') return; // don't interrupt
- if (state === 'PICKING') { hideHighlight(); state = 'IDLE'; return; }
+ if (state === 'PICKING') {
+ // Use togglePick so the "Pick" button in the global bar also flips
+ // off, otherwise the bar stays lit while nothing else is active.
+ if (pickActive) togglePick();
+ else { hideHighlight(); state = 'IDLE'; }
+ return;
+ }
}
// Arrow/Enter nav works in PICKING (hover) and CONFIGURING (selected, input empty)
diff --git a/.trae-cn/skills/impeccable/scripts/live-browser.js b/.trae-cn/skills/impeccable/scripts/live-browser.js
index 109d0d58e..c943ede91 100644
--- a/.trae-cn/skills/impeccable/scripts/live-browser.js
+++ b/.trae-cn/skills/impeccable/scripts/live-browser.js
@@ -1747,7 +1747,13 @@
if (state === 'CONFIGURING') { hideBar(); stopScrollTracking(); hideAnnotOverlay(); clearAnnotations(); state = 'PICKING'; return; }
if (state === 'CYCLING') { handleDiscard(); return; }
if (state === 'SAVING' || state === 'CONFIRMED') return; // don't interrupt
- if (state === 'PICKING') { hideHighlight(); state = 'IDLE'; return; }
+ if (state === 'PICKING') {
+ // Use togglePick so the "Pick" button in the global bar also flips
+ // off, otherwise the bar stays lit while nothing else is active.
+ if (pickActive) togglePick();
+ else { hideHighlight(); state = 'IDLE'; }
+ return;
+ }
}
// Arrow/Enter nav works in PICKING (hover) and CONFIGURING (selected, input empty)
diff --git a/.trae/skills/impeccable/scripts/live-browser.js b/.trae/skills/impeccable/scripts/live-browser.js
index 109d0d58e..c943ede91 100644
--- a/.trae/skills/impeccable/scripts/live-browser.js
+++ b/.trae/skills/impeccable/scripts/live-browser.js
@@ -1747,7 +1747,13 @@
if (state === 'CONFIGURING') { hideBar(); stopScrollTracking(); hideAnnotOverlay(); clearAnnotations(); state = 'PICKING'; return; }
if (state === 'CYCLING') { handleDiscard(); return; }
if (state === 'SAVING' || state === 'CONFIRMED') return; // don't interrupt
- if (state === 'PICKING') { hideHighlight(); state = 'IDLE'; return; }
+ if (state === 'PICKING') {
+ // Use togglePick so the "Pick" button in the global bar also flips
+ // off, otherwise the bar stays lit while nothing else is active.
+ if (pickActive) togglePick();
+ else { hideHighlight(); state = 'IDLE'; }
+ return;
+ }
}
// Arrow/Enter nav works in PICKING (hover) and CONFIGURING (selected, input empty)
diff --git a/public/index.html b/public/index.html
index 4e3fa63f7..2e1714ea8 100644
--- a/public/index.html
+++ b/public/index.html
@@ -404,7 +404,7 @@
<div class="v2-canvas-art">
<span class="v2-canvas-file">Checkout v7 (final) final FINAL.fig</span>
<div class="v2-canvas-mock"></div>
- <span class="v2-canvas-stamp">shipped Q3 2024</span>
+ <span class="v2-canvas-stamp">last touched Q3 2025</span>
</div>
</div>
<div class="v2-side v2-side--new">
diff --git a/source/skills/impeccable/scripts/live-browser.js b/source/skills/impeccable/scripts/live-browser.js
index 109d0d58e..c943ede91 100644
--- a/source/skills/impeccable/scripts/live-browser.js
+++ b/source/skills/impeccable/scripts/live-browser.js
@@ -1747,7 +1747,13 @@
if (state === 'CONFIGURING') { hideBar(); stopScrollTracking(); hideAnnotOverlay(); clearAnnotations(); state = 'PICKING'; return; }
if (state === 'CYCLING') { handleDiscard(); return; }
if (state === 'SAVING' || state === 'CONFIRMED') return; // don't interrupt
- if (state === 'PICKING') { hideHighlight(); state = 'IDLE'; return; }
+ if (state === 'PICKING') {
+ // Use togglePick so the "Pick" button in the global bar also flips
+ // off, otherwise the bar stays lit while nothing else is active.
+ if (pickActive) togglePick();
+ else { hideHighlight(); state = 'IDLE'; }
+ return;
+ }
}
// Arrow/Enter nav works in PICKING (hover) and CONFIGURING (selected, input empty)