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: {
|
||||
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
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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 && (
|
||||
<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>
|
||||
)}
|
||||
{isArchived && (filter === 'all' || filter === 'archived') && (
|
||||
|
||||
@@ -196,7 +196,7 @@ function SessionDetail() {
|
||||
)}
|
||||
{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">
|
||||
☀ Game Night
|
||||
🎲 Game Night
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user