Add an About panel with the guide version and date

Clicking the brand opens it, so the guide version and publication date
are visible in the app rather than only on the PDF cover.
This commit is contained in:
2026-11-28 20:32:37 +00:00
parent d0e0e8926c
commit 8aafdcfb16
5 changed files with 109 additions and 3 deletions
+6 -1
View File
@@ -1,4 +1,5 @@
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import AboutModal from './components/AboutModal';
import AdminPanel from './components/AdminPanel';
import CloudPanel from './components/CloudPanel';
import CommandPalette from './components/CommandPalette';
@@ -138,6 +139,7 @@ export default function App() {
const [undoAction, setUndoAction] = useState<{ message: string; run: () => void } | null>(null);
const [menu, setMenu] = useState<{ x: number; y: number; ids: string[] } | null>(null);
const [helpOpen, setHelpOpen] = useState(false);
const [aboutOpen, setAboutOpen] = useState(false);
const [searchOpen, setSearchOpen] = useState(false);
const [shareEventId, setShareEventId] = useState<string | null>(null);
/** Client proofing picks, keyed to the photos they chose. */
@@ -1898,6 +1900,7 @@ export default function App() {
mod &&
k === 'k' &&
!helpOpen &&
!aboutOpen &&
!importOpen &&
!exportOpen &&
!cloudOpen &&
@@ -1916,7 +1919,7 @@ export default function App() {
setHelpOpen((v) => !v);
return;
}
if (helpOpen || importOpen || exportOpen || cloudOpen || adminOpen || compareOpen) return;
if (helpOpen || aboutOpen || importOpen || exportOpen || cloudOpen || adminOpen || compareOpen) return;
if (mod && k === 'i') {
e.preventDefault();
@@ -2254,6 +2257,7 @@ export default function App() {
setCloudOpen(true);
}}
onHelp={() => setHelpOpen(true)}
onAbout={() => setAboutOpen(true)}
onSearch={() => setSearchOpen(true)}
onCatalog={() => {
setView('grid');
@@ -2611,6 +2615,7 @@ export default function App() {
)}
{helpOpen && <Shortcuts onClose={() => setHelpOpen(false)} />}
{aboutOpen && <AboutModal onClose={() => setAboutOpen(false)} />}
{searchOpen && (
<CommandPalette