From 512b36da512c303ccac35cc2408097b821c00ace Mon Sep 17 00:00:00 2001 From: cottongin Date: Mon, 23 Mar 2026 02:48:56 -0400 Subject: [PATCH] fix: long-press select deselection bug, swap sun emoji for dice, bump version to 0.6.2 Made-with: Cursor --- frontend/src/config/branding.js | 4 ++-- frontend/src/pages/History.jsx | 9 ++++++++- frontend/src/pages/SessionDetail.jsx | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/frontend/src/config/branding.js b/frontend/src/config/branding.js index ce41257..ad3ca04 100644 --- a/frontend/src/config/branding.js +++ b/frontend/src/config/branding.js @@ -2,7 +2,7 @@ export const branding = { app: { name: 'HSO Jackbox Game Picker', shortName: 'Jackbox Game Picker', - version: '0.6.0 - Fish Tank Edition', + version: '0.6.2 - Fish Tank Edition', description: 'Spicing up Hyper Spaceout game nights!', }, meta: { @@ -11,7 +11,7 @@ export const branding = { themeColor: '#4F46E5', // Indigo-600 }, links: { - github: '', // Optional: Add your repo URL + github: 'https://code.cottongin.xyz/HyperSpaceOut/jackboxpartypack-gamepicker', // Optional: Add your repo URL support: 'cottongin@cottongin.xyz', // Optional: Add support/contact URL } }; diff --git a/frontend/src/pages/History.jsx b/frontend/src/pages/History.jsx index cefa349..cc5d501 100644 --- a/frontend/src/pages/History.jsx +++ b/frontend/src/pages/History.jsx @@ -23,6 +23,7 @@ function History() { const [showBulkDeleteConfirm, setShowBulkDeleteConfirm] = useState(false); const longPressTimer = useRef(null); + const longPressFired = useRef(false); const loadSessions = useCallback(async () => { try { @@ -93,7 +94,9 @@ function History() { const handlePointerDown = (sessionId) => { if (!isAuthenticated || selectMode) return; + longPressFired.current = false; longPressTimer.current = setTimeout(() => { + longPressFired.current = true; setSelectMode(true); setSelectedIds(new Set([sessionId])); }, 500); @@ -206,6 +209,10 @@ function History() { : 'border-gray-300 dark:border-gray-600 hover:border-indigo-400 dark:hover:border-indigo-500 cursor-pointer' }`} onClick={() => { + if (longPressFired.current) { + longPressFired.current = false; + return; + } if (selectMode) { if (!isActive) toggleSelection(session.id); } else { @@ -246,7 +253,7 @@ function History() { )} {isSundaySession && ( - ☀ Game Night + 🎲 Game Night )} {isArchived && (filter === 'all' || filter === 'archived') && ( diff --git a/frontend/src/pages/SessionDetail.jsx b/frontend/src/pages/SessionDetail.jsx index 0a41907..4f9c4ec 100644 --- a/frontend/src/pages/SessionDetail.jsx +++ b/frontend/src/pages/SessionDetail.jsx @@ -196,7 +196,7 @@ function SessionDetail() { )} {isSunday(session.created_at) && ( - ☀ Game Night + 🎲 Game Night )}