fix: long-press select deselection bug, swap sun emoji for dice, bump version to 0.6.2
Made-with: Cursor
This commit is contained in:
@@ -2,7 +2,7 @@ export const branding = {
|
|||||||
app: {
|
app: {
|
||||||
name: 'HSO Jackbox Game Picker',
|
name: 'HSO Jackbox Game Picker',
|
||||||
shortName: '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!',
|
description: 'Spicing up Hyper Spaceout game nights!',
|
||||||
},
|
},
|
||||||
meta: {
|
meta: {
|
||||||
@@ -11,7 +11,7 @@ export const branding = {
|
|||||||
themeColor: '#4F46E5', // Indigo-600
|
themeColor: '#4F46E5', // Indigo-600
|
||||||
},
|
},
|
||||||
links: {
|
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
|
support: 'cottongin@cottongin.xyz', // Optional: Add support/contact URL
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ function History() {
|
|||||||
const [showBulkDeleteConfirm, setShowBulkDeleteConfirm] = useState(false);
|
const [showBulkDeleteConfirm, setShowBulkDeleteConfirm] = useState(false);
|
||||||
|
|
||||||
const longPressTimer = useRef(null);
|
const longPressTimer = useRef(null);
|
||||||
|
const longPressFired = useRef(false);
|
||||||
|
|
||||||
const loadSessions = useCallback(async () => {
|
const loadSessions = useCallback(async () => {
|
||||||
try {
|
try {
|
||||||
@@ -93,7 +94,9 @@ function History() {
|
|||||||
|
|
||||||
const handlePointerDown = (sessionId) => {
|
const handlePointerDown = (sessionId) => {
|
||||||
if (!isAuthenticated || selectMode) return;
|
if (!isAuthenticated || selectMode) return;
|
||||||
|
longPressFired.current = false;
|
||||||
longPressTimer.current = setTimeout(() => {
|
longPressTimer.current = setTimeout(() => {
|
||||||
|
longPressFired.current = true;
|
||||||
setSelectMode(true);
|
setSelectMode(true);
|
||||||
setSelectedIds(new Set([sessionId]));
|
setSelectedIds(new Set([sessionId]));
|
||||||
}, 500);
|
}, 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'
|
: 'border-gray-300 dark:border-gray-600 hover:border-indigo-400 dark:hover:border-indigo-500 cursor-pointer'
|
||||||
}`}
|
}`}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
if (longPressFired.current) {
|
||||||
|
longPressFired.current = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (selectMode) {
|
if (selectMode) {
|
||||||
if (!isActive) toggleSelection(session.id);
|
if (!isActive) toggleSelection(session.id);
|
||||||
} else {
|
} else {
|
||||||
@@ -246,7 +253,7 @@ function History() {
|
|||||||
)}
|
)}
|
||||||
{isSundaySession && (
|
{isSundaySession && (
|
||||||
<span className="bg-amber-100 dark:bg-amber-900 text-amber-800 dark:text-amber-200 text-xs px-2 py-0.5 rounded font-semibold">
|
<span className="bg-amber-100 dark:bg-amber-900 text-amber-800 dark:text-amber-200 text-xs px-2 py-0.5 rounded font-semibold">
|
||||||
☀ Game Night
|
🎲 Game Night
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
{isArchived && (filter === 'all' || filter === 'archived') && (
|
{isArchived && (filter === 'all' || filter === 'archived') && (
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ function SessionDetail() {
|
|||||||
)}
|
)}
|
||||||
{isSunday(session.created_at) && (
|
{isSunday(session.created_at) && (
|
||||||
<span className="bg-amber-100 dark:bg-amber-900 text-amber-800 dark:text-amber-200 text-xs px-2 py-0.5 rounded font-semibold">
|
<span className="bg-amber-100 dark:bg-amber-900 text-amber-800 dark:text-amber-200 text-xs px-2 py-0.5 rounded font-semibold">
|
||||||
☀ Game Night
|
🎲 Game Night
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user