feat(editor): bridge the advanced photo editor into the event workflow
CI / build (push) Has been cancelled
CI / build (push) Has been cancelled
Event photos can now be opened in Lumenroom, a WebGL2 develop module, from the photo editor's Advanced button. The dashboard signs a short-lived token scoped to one user and event; Lumenroom exchanges it, imports the event's photo list and proxies bytes on demand, so nothing is copied and the temporary catalog expires with the bridge session. Saving in Lumenroom renders the photo and writes it back as the event's edited JPEG, with the advanced recipe kept in event_photos.advanced_edit_json. Lumenroom is vendored under lumenroom/ and built as a second compose service, so one clone and `docker compose up -d --build` deploys both apps. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
import type { ViewMode } from '../types';
|
||||
|
||||
interface Props {
|
||||
view: ViewMode;
|
||||
eventName: string;
|
||||
photoCount: number;
|
||||
selectedCount: number;
|
||||
cloudLabel: string;
|
||||
cloudOn: boolean;
|
||||
onViewChange: (view: ViewMode) => void;
|
||||
onImport: () => void;
|
||||
onExport: () => void;
|
||||
onCloud: () => void;
|
||||
onHelp: () => void;
|
||||
}
|
||||
|
||||
export default function TopBar({
|
||||
view,
|
||||
eventName,
|
||||
photoCount,
|
||||
selectedCount,
|
||||
cloudLabel,
|
||||
cloudOn,
|
||||
onViewChange,
|
||||
onImport,
|
||||
onExport,
|
||||
onCloud,
|
||||
onHelp,
|
||||
}: Props) {
|
||||
return (
|
||||
<header className="topbar">
|
||||
<div className="brand">
|
||||
<span className="dot" />
|
||||
Lumenroom
|
||||
</div>
|
||||
|
||||
<div className="topbar-title">
|
||||
{eventName}
|
||||
<span className="muted">
|
||||
{' '}
|
||||
· {photoCount} photo{photoCount === 1 ? '' : 's'}
|
||||
{selectedCount > 1 ? ` · ${selectedCount} selected` : ''}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<nav className="module-bar">
|
||||
<button className={view === 'grid' ? 'active' : ''} onClick={() => onViewChange('grid')}>
|
||||
Library
|
||||
</button>
|
||||
<button className={view === 'develop' ? 'active' : ''} onClick={() => onViewChange('develop')}>
|
||||
Develop
|
||||
</button>
|
||||
</nav>
|
||||
|
||||
<div className="topbar-actions">
|
||||
<button className={`cloud-pill ${cloudOn ? 'on' : ''}`} onClick={onCloud} title="Team server">
|
||||
<span className="cloud-dot" />
|
||||
{cloudLabel}
|
||||
</button>
|
||||
<button className="btn ghost" onClick={onExport}>
|
||||
Export
|
||||
</button>
|
||||
<button className="icon-btn help-btn" onClick={onHelp} title="Keyboard shortcuts (?)">
|
||||
?
|
||||
</button>
|
||||
<a
|
||||
className="guide-btn"
|
||||
href="/lumenroom-user-guide.pdf"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
title="User guide (PDF)"
|
||||
>
|
||||
Guide
|
||||
</a>
|
||||
<button className="btn primary" onClick={onImport}>
|
||||
Import photos
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user