feat: initial commit — local services (backend + manager dashboard + waiter PWA)

Includes all work to date:
- local_backend: FastAPI backend with products, orders, tables, shifts, cloud sync
- manager_dashboard: React manager UI with product/category management, reports, settings
- waiter_pwa: React PWA for waiter devices
- Category reparent endpoint and UI
- Waiter domain: local_ip sent on heartbeat, waiter_domain persisted from cloud response
- QR code modal in AppInfoTab for waiter domain
- Product form: number input spinners removed, category pre-selected on new product
- Category row: count badge moved to far right

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-20 14:04:38 +03:00
co-authored by Claude Sonnet 4.6
commit 8ba8c95ecd
209 changed files with 48017 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
import client from '../api/client'
import { useState } from 'react'
export default function OfflinePage() {
const [checking, setChecking] = useState(false)
async function retry() {
setChecking(true)
try {
await client.get('/api/system/health')
window.location.href = '/'
} catch {
setChecking(false)
}
}
return (
<div className="page page--centered">
<div style={{ textAlign: 'center', maxWidth: 300 }}>
<p style={{ fontSize: 48, marginBottom: 16 }}>📡</p>
<h2 style={{ color: '#e2e8f0', marginBottom: 8 }}>Δεν υπάρχει σύνδεση</h2>
<p style={{ color: '#64748b', marginBottom: 32 }}>
Δεν είναι δυνατή η επικοινωνία με το σύστημα. Ελέγξτε τη σύνδεση WiFi.
</p>
<button className="btn btn--primary btn--lg" onClick={retry} disabled={checking}>
{checking ? 'Έλεγχος…' : 'Επανάληψη'}
</button>
</div>
</div>
)
}