feat(printer): badge print queue, Pi worker, captive-portal setup, admin printing view

- migration 20261018170000: pgmq badge_print/badge_print_dlq, print_stations,
  token-gated printer RPCs (claim/complete/fail/heartbeat), admin RPCs,
  welcome_checkin enqueue; badge_print_tests.sql (101 assertions)
- apps/printer: Python worker (Playwright render -> brother_ql via pyusb),
  comitup captive-portal (Wi-Fi + HTTPS endpoint + anon key + token),
  arm64 image build + idempotent Pi setup/install scripts, 77 pytest
- apps/admin: Printing view, station management/DLQ, global printer status
  pill, Print button on Registrations, standalone print renderer entry
  (print.html -> dist-print) with bundled fonts
- docs: printing.md + architecture/schema/rpcs/tests/admin-app updates,
  apps/printer/AGENT.md operating manual
- e2e: printing.spec.ts

Co-authored-by: Stephan Charles <[email protected]>
Co-authored-by: Amelia Hernandez <[email protected]>
Co-authored-by: Markus Franz <[email protected]>
Co-authored-by: Sabrina Hota <[email protected]>
Co-authored-by: Nilüfer Doğan <[email protected]>
This commit is contained in:
committed 2026-10-18 22:25:38 +02:00
1 parent 0f3720d48a
commit 00c89c1b48
55 files changed
+7406 -29

No files matched your search

+10
View File
@@ -10,12 +10,15 @@ import { Schedule } from './views/Schedule';
import { Activity } from './views/Activity';
import { Raffle } from './views/Raffle';
import { BadgeEditor } from './views/BadgeEditor';
import { Printing } from './views/Printing';
import { Events } from './views/Events';
import { Interfaces } from './views/Interfaces';
import { Reports } from './views/Reports';
import { Settings } from './views/Settings';
import { Settings as SettingsIcon } from 'lucide-react';
import { Spinner } from './components/ui';
import { PrinterStatusPill } from './components/PrinterStatusPill';
import { PrintStatusProvider } from './lib/printStatus';
export type View =
| 'dashboard'
@@ -26,6 +29,7 @@ export type View =
| 'activity'
| 'raffle'
| 'badges'
| 'printing'
| 'events'
| 'interfaces'
| 'reports'
@@ -40,6 +44,7 @@ const NAV: { id: View; label: string; ico: string }[] = [
{ id: 'activity', label: 'Activity', ico: '⚡' },
{ id: 'raffle', label: 'Raffle', ico: '🎯' },
{ id: 'badges', label: 'Badges', ico: '🎫' },
{ id: 'printing', label: 'Printing', ico: '🖨️' },
{ id: 'events', label: 'Events', ico: '📅' },
{ id: 'interfaces', label: 'Interfaces', ico: '🔌' },
{ id: 'reports', label: 'Reports', ico: '📤' },
@@ -61,6 +66,7 @@ function Shell() {
if (!contact) return <Login />;
return (
<PrintStatusProvider>
<div className="app">
<aside className="sidebar">
<div className="brand">
@@ -82,6 +88,8 @@ function Shell() {
</button>
))}
</nav>
{/* Outside .sidebar-foot so it also shows on mobile (the Pi has no screen). */}
<PrinterStatusPill onNavigate={setView} />
<div className="sidebar-foot">
<div className="admin-card">
<span className="avatar" style={{ width: 36, height: 36, fontSize: 13, background: '#d50000' }}>
@@ -112,12 +120,14 @@ function Shell() {
{view === 'activity' && <Activity />}
{view === 'raffle' && <Raffle />}
{view === 'badges' && <BadgeEditor />}
{view === 'printing' && <Printing />}
{view === 'events' && <Events />}
{view === 'interfaces' && <Interfaces />}
{view === 'reports' && <Reports />}
{view === 'settings' && <Settings />}
</main>
</div>
</PrintStatusProvider>
);
}