Skip to content

Commit d4753b0

Browse files
authored
Merge pull request #124 from constructive-io/fix/drop-debug-tab-visible-gutter
fix(ui): a slider gutter you can actually see, and no Debug tab in the show UI
2 parents 1cb594e + 7079a18 commit d4753b0

4 files changed

Lines changed: 35 additions & 360 deletions

File tree

packages/ui/src/app.tsx

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { PatternsTab } from '@/components/patterns-tab';
2121
import { PlaylistTab } from '@/components/playlist-tab';
2222
import { PrideTab } from '@/components/pride-tab';
2323
import { SequencesTab } from '@/components/sequences-tab';
24-
import { SettingsTab } from '@/components/settings-tab';
2524
import { ShiftDial } from '@/components/shift-dial';
2625
import { StatusDot } from '@/components/status-dot';
2726
import { UsaTab } from '@/components/usa-tab';
@@ -59,8 +58,7 @@ const tabs: { key: GridMode; label: string }[] = [
5958
{ key: 'flags', label: 'Flags' },
6059
{ key: 'drops', label: 'Drops' },
6160
{ key: 'audio', label: 'Audio' },
62-
{ key: 'video', label: 'Video' },
63-
{ key: 'debug', label: 'Debug' }
61+
{ key: 'video', label: 'Video' }
6462
];
6563

6664
/* ---------- Tool content (no tabs, just the active tool) ---------- */
@@ -293,13 +291,6 @@ function ToolContent({
293291
<VideoTab send={send} numCannons={numCannons} gridColumns={gridColumns} />
294292
)}
295293

296-
{tab === 'debug' && (
297-
<SettingsTab
298-
numCannons={numCannons}
299-
gridColumns={gridColumns}
300-
send={send}
301-
/>
302-
)}
303294
</>
304295
);
305296
}
@@ -322,7 +313,7 @@ function TabStrip({
322313
<div
323314
className={isRight ? 'flex flex-wrap gap-1 shrink-0' : 'flex gap-1 overflow-x-auto shrink-0'}
324315
style={{
325-
padding: isRight ? '10px 10px 6px' : '8px 12px 6px',
316+
padding: isRight ? '8px 10px 5px' : '6px 12px 5px',
326317
...(isRight ? {} : { WebkitOverflowScrolling: 'touch' as const })
327318
}}
328319
>
@@ -332,8 +323,8 @@ function TabStrip({
332323
onClick={() => setTab(t.key)}
333324
className="whitespace-nowrap transition-all"
334325
style={{
335-
padding: isPhone ? '10px 16px' : isRight ? '8px 12px' : '10px 18px',
336-
borderRadius: 22,
326+
padding: isPhone ? '9px 14px' : isRight ? '7px 11px' : '8px 15px',
327+
borderRadius: 20,
337328
fontSize: isPhone ? 14 : isRight ? 12 : 14,
338329
fontWeight: 600,
339330
letterSpacing: '0.02em',
@@ -593,7 +584,6 @@ export default function Home() {
593584
}, [settings]);
594585

595586
useEffect(() => {
596-
if (tab === 'debug') return;
597587
send({ type: 'physical_preview_clear' });
598588
send({ type: 'calibration_mode', enabled: false });
599589
}, [send, tab]);
@@ -826,10 +816,6 @@ export default function Home() {
826816
);
827817

828818
const handleTabChange = useCallback((t: GridMode) => {
829-
if (t !== 'debug' && tab === 'debug') {
830-
send({ type: 'physical_preview_clear' });
831-
send({ type: 'calibration_mode', enabled: false });
832-
}
833819
setTab(t);
834820
localStorage.setItem('wavegrid-tab', t);
835821
if (isPhone && sheetSnap === 'peek') {

packages/ui/src/components/grid-display.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useCallback, useEffect, useRef } from 'react';
22

33
import type { CannonColor, Orientation } from '@/lib/use-socket';
44

5-
export type GridMode = 'paint' | 'gradient' | 'drops' | 'scenes' | 'animations' | 'audio' | 'video' | 'flags' | 'pride' | 'usa' | 'nova' | 'grace' | 'patterns' | 'playlist' | 'sequences' | 'debug';
5+
export type GridMode = 'paint' | 'gradient' | 'drops' | 'scenes' | 'animations' | 'audio' | 'video' | 'flags' | 'pride' | 'usa' | 'nova' | 'grace' | 'patterns' | 'playlist' | 'sequences';
66

77
export interface FixturePos {
88
u: number;

0 commit comments

Comments
 (0)