Rename to Cross Events Hub; add logo and favicon
Hope Events is now Cross Events. Protocol identifiers (hel1. tokens, CEH- keys) are unchanged so existing installs keep working. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -63,7 +63,7 @@ function LicenceCard({ licence, onSaved, setMsg }: { licence: Licence; onSaved:
|
||||
<div className="text-sm text-slate-600">
|
||||
{licence.install
|
||||
? <>Used by <Link href={`/installs/${licence.install.id}`} className="text-indigo-600 hover:underline">{licence.install.url}</Link> · last heartbeat {ago(licence.install.lastHeartbeatAt)}</>
|
||||
: "Not used yet — enter this key in the church's Hope Events setup (or Site settings → Licence)."}
|
||||
: "Not used yet — enter this key in the church's Cross Events setup (or Site settings → Licence)."}
|
||||
</div>
|
||||
<div className="grid gap-3 sm:grid-cols-4">
|
||||
<div>
|
||||
|
||||
@@ -5,6 +5,7 @@ import Link from "next/link";
|
||||
import { usePathname, useRouter } from "next/navigation";
|
||||
import { LayoutDashboard, Building2, BellRing, Settings, LogOut } from "lucide-react";
|
||||
import { api, getToken, setToken } from "@/lib/api";
|
||||
import { Logo } from "@/components/ui";
|
||||
|
||||
type Me = { id: string; name: string; email: string };
|
||||
|
||||
@@ -34,8 +35,8 @@ export default function HubLayout({ children }: { children: React.ReactNode }) {
|
||||
<div className="flex min-h-screen">
|
||||
<aside className="hidden w-56 shrink-0 border-r border-slate-200 bg-white p-4 md:flex md:flex-col">
|
||||
<div className="mb-6 px-2">
|
||||
<div className="text-base font-semibold">Hope Events Hub</div>
|
||||
<div className="text-xs text-slate-500">{me.name}</div>
|
||||
<Logo />
|
||||
<div className="mt-1 pl-[2.625rem] text-xs text-slate-500">{me.name}</div>
|
||||
</div>
|
||||
<nav className="space-y-1">
|
||||
{NAV.map(n => {
|
||||
@@ -52,7 +53,8 @@ export default function HubLayout({ children }: { children: React.ReactNode }) {
|
||||
</button>
|
||||
</aside>
|
||||
<div className="flex-1 min-w-0">
|
||||
<nav className="flex gap-1 overflow-x-auto border-b border-slate-200 bg-white px-3 py-2 md:hidden">
|
||||
<nav className="flex items-center gap-1 overflow-x-auto border-b border-slate-200 bg-white px-3 py-2 md:hidden">
|
||||
<Logo markOnly className="mr-1 h-7 w-7" />
|
||||
{NAV.map(n => (
|
||||
<Link key={n.href} href={n.href} className={`whitespace-nowrap rounded-lg px-3 py-1.5 text-sm ${active(n.href) ? "bg-indigo-50 font-medium text-indigo-700" : "text-slate-600"}`}>{n.label}</Link>
|
||||
))}
|
||||
|
||||
@@ -42,7 +42,7 @@ export default function OverviewPage() {
|
||||
|
||||
{data.installs.length === 0 ? (
|
||||
<div className="card text-sm text-slate-600">
|
||||
No installs yet. Add a <Link href="/customers" className="text-indigo-600 hover:underline">customer</Link>, generate a licence, and enter its key in the church's Hope Events setup.
|
||||
No installs yet. Add a <Link href="/customers" className="text-indigo-600 hover:underline">customer</Link>, generate a licence, and enter its key in the church's Cross Events setup.
|
||||
</div>
|
||||
) : (
|
||||
<div className="card overflow-x-auto p-0">
|
||||
|
||||
@@ -10,7 +10,7 @@ type AuditRow = { id: string; action: string; target: string | null; metadata: u
|
||||
type Msg = { type: "ok" | "err"; text: string } | null;
|
||||
|
||||
const FIELDS: { key: string; label: string; hint: string; type?: string }[] = [
|
||||
{ key: "latest_version", label: "Latest Hope Events release", hint: "e.g. 1.41.0 — installs on an older version show as behind, and see \"Update available\"." },
|
||||
{ key: "latest_version", label: "Latest Cross Events release", hint: "e.g. 1.41.0 — installs on an older version show as behind, and see \"Update available\"." },
|
||||
{ key: "alert_email", label: "Alert email", hint: "Where new alerts are sent.", type: "email" },
|
||||
{ key: "offline_minutes", label: "Offline after (minutes without a heartbeat)", hint: "Default 60.", type: "number" },
|
||||
{ key: "backup_max_age_hours", label: "Backup too old after (hours)", hint: "Default 48.", type: "number" },
|
||||
@@ -81,7 +81,7 @@ export default function SettingsPage() {
|
||||
<div className="space-y-6">
|
||||
<div className="card space-y-2">
|
||||
<h2 className="font-semibold">Licence signing key</h2>
|
||||
<p className="text-sm text-slate-600">Installs check licences with this public key (built into Hope Events: <code>backend/src/hub/publicKey.js</code>). The private key stays on this server only — keep a backup.</p>
|
||||
<p className="text-sm text-slate-600">Installs check licences with this public key (built into Cross Events: <code>backend/src/hub/publicKey.js</code>). The private key stays on this server only — keep a backup.</p>
|
||||
<pre className="overflow-x-auto rounded-lg bg-slate-50 p-3 text-xs">{publicKey}</pre>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user