Redesign Phases 3-6: multi-event model, APPE Admin, Convivo App behaviors, APPE branding
- Phase 3: new migration 20260824000000_redesign.sql (contacts/events/registrations/sponsors, slot types, session speakers + feedback/material), seed rewrite - Phase 4: APPE Admin rebrand + Contacts/Registrations/Sponsors/Schedule/Activity/Events views - Phase 5: Convivo App (24h login, 5s polling, QR type badge, red dot, speaker material) - Phase 6: APPE favicon + PWA icons for both apps - Docs: schema/rpcs/rls/seed/screens/api-client/admin-app/architecture/next-steps/README/roadmap updated 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:
1 parent
2f53d47578
commit
7605c9bbf4
64 files changed
+4593
-1371
No files matched your search
+21
-12
@@ -3,22 +3,28 @@ import { AuthProvider, useAuth } from './context/AuthContext';
|
||||
import { ToastProvider } from './context/ToastContext';
|
||||
import { Login } from './screens/Login';
|
||||
import { Dashboard } from './views/Dashboard';
|
||||
import { Attendees } from './views/Attendees';
|
||||
import { Contacts } from './views/Contacts';
|
||||
import { Registrations } from './views/Registrations';
|
||||
import { Sponsors } from './views/Sponsors';
|
||||
import { Schedule } from './views/Schedule';
|
||||
import { Activity } from './views/Activity';
|
||||
import { Events } from './views/Events';
|
||||
import { Spinner } from './components/ui';
|
||||
|
||||
type View = 'dashboard' | 'attendees' | 'schedule' | 'activity';
|
||||
export type View = 'dashboard' | 'contacts' | 'registrations' | 'sponsors' | 'schedule' | 'activity' | 'events';
|
||||
|
||||
const NAV: { id: View; label: string; ico: string }[] = [
|
||||
{ id: 'dashboard', label: 'Dashboard', ico: '📊' },
|
||||
{ id: 'attendees', label: 'Attendees', ico: '👥' },
|
||||
{ id: 'contacts', label: 'Contacts', ico: '👥' },
|
||||
{ id: 'registrations', label: 'Registrations', ico: '🎟️' },
|
||||
{ id: 'sponsors', label: 'Sponsors', ico: '🤝' },
|
||||
{ id: 'schedule', label: 'Schedule', ico: '🗓️' },
|
||||
{ id: 'activity', label: 'Activity', ico: '⚡' },
|
||||
{ id: 'events', label: 'Events', ico: '📅' },
|
||||
];
|
||||
|
||||
function Shell() {
|
||||
const { profile, loading, signOut } = useAuth();
|
||||
const { contact, loading, signOut } = useAuth();
|
||||
const [view, setView] = useState<View>('dashboard');
|
||||
|
||||
if (loading) {
|
||||
@@ -29,16 +35,16 @@ function Shell() {
|
||||
);
|
||||
}
|
||||
|
||||
if (!profile) return <Login />;
|
||||
if (!contact) return <Login />;
|
||||
|
||||
return (
|
||||
<div className="app">
|
||||
<aside className="sidebar">
|
||||
<div className="brand">
|
||||
<div className="logo">C</div>
|
||||
<div className="logo">A</div>
|
||||
<div>
|
||||
<div className="name">Convivo</div>
|
||||
<div className="sub">Admin Console</div>
|
||||
<div className="name">APPE</div>
|
||||
<div className="sub">Admin</div>
|
||||
</div>
|
||||
</div>
|
||||
<nav className="nav">
|
||||
@@ -56,7 +62,7 @@ function Shell() {
|
||||
<div className="sidebar-foot">
|
||||
<div className="admin-card">
|
||||
<span className="avatar" style={{ width: 36, height: 36, fontSize: 13, background: '#d50000' }}>
|
||||
{profile.full_name
|
||||
{contact.full_name
|
||||
.split(' ')
|
||||
.map((w) => w[0])
|
||||
.slice(0, 2)
|
||||
@@ -64,8 +70,8 @@ function Shell() {
|
||||
.toUpperCase()}
|
||||
</span>
|
||||
<div className="who">
|
||||
<div className="n">{profile.full_name}</div>
|
||||
<div className="e">{profile.email}</div>
|
||||
<div className="n">{contact.full_name}</div>
|
||||
<div className="e">{contact.email}</div>
|
||||
</div>
|
||||
</div>
|
||||
<button className="signout" onClick={signOut}>
|
||||
@@ -76,9 +82,12 @@ function Shell() {
|
||||
|
||||
<main className="content">
|
||||
{view === 'dashboard' && <Dashboard onNavigate={setView} />}
|
||||
{view === 'attendees' && <Attendees />}
|
||||
{view === 'contacts' && <Contacts />}
|
||||
{view === 'registrations' && <Registrations />}
|
||||
{view === 'sponsors' && <Sponsors />}
|
||||
{view === 'schedule' && <Schedule />}
|
||||
{view === 'activity' && <Activity />}
|
||||
{view === 'events' && <Events />}
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user