Major architectural upgrade preparing Echo OCR for self-hosted SaaS deployment: - Auth: Built-in Auth.js v5 with credentials + Authentik OIDC SSO, JWT sessions, middleware route protection, login/signup/setup pages, registration API - UI: Dashboard layout with collapsible sidebar nav, AppShell wrapper, route groups for (dashboard) and (auth), new pages for events/people/reports - Schema: Auth.js tables (Account, Session, VerificationToken), Organization, OrgMember, Location, CollectionDay, Invitation, SystemConfig, ApiKey models; proper User relations to ResponseCard/ActivityLog/Notification - Permissions: Role hierarchy (owner/admin/editor/reviewer/viewer) with action-based permission map and requirePermission/requireAuth helpers - Onboarding: Multi-step setup wizard for first-user bootstrap (account, org, location) with SystemConfig tracking - Events: CollectionDay model with rrule support for recurring church services - Auto-assign: Event-aware card assignment engine replacing getPreviousSunday() - Migration: seed-migration.ts script for upgrading existing deployments Made-with: Cursor
22 lines
834 B
TypeScript
22 lines
834 B
TypeScript
import { CalendarDays } from "lucide-react";
|
|
import { Header } from "@/components/layout/header";
|
|
|
|
export default function EventsPage() {
|
|
return (
|
|
<div className="space-y-6">
|
|
<Header
|
|
title="Collection Days"
|
|
description="Manage recurring events and service times"
|
|
icon={CalendarDays}
|
|
/>
|
|
<div className="glass-card flex flex-col items-center justify-center rounded-2xl p-12 text-center">
|
|
<CalendarDays className="mb-4 size-12 text-muted-foreground/40" />
|
|
<h2 className="text-lg font-semibold">No collection days yet</h2>
|
|
<p className="mt-1 max-w-sm text-sm text-muted-foreground">
|
|
Collection days will be available once organizations and locations are
|
|
configured. Check back after setup is complete.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|