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:
2026-10-27 13:38:52 +02:00
co-authored by Claude Opus 5.5
parent dcaa0b1dcf
commit a1e3f9214b
20 changed files with 76 additions and 36 deletions
@@ -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 -3
View File
@@ -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>
))}
+1 -1
View File
@@ -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&apos;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&apos;s Cross Events setup.
</div>
) : (
<div className="card overflow-x-auto p-0">
+2 -2
View File
@@ -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>
Binary file not shown.

After

Width:  |  Height:  |  Size: 678 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 707 B

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
<rect width="64" height="64" rx="14" fill="#4f46e5"/>
<path d="M28 12h8v10h10v8H36v22h-8V30H18v-8h10z" fill="#fff"/>
</svg>

After

Width:  |  Height:  |  Size: 189 B

+2 -2
View File
@@ -2,8 +2,8 @@ import type { Metadata } from "next";
import "./globals.css";
export const metadata: Metadata = {
title: "Hope Events Hub",
description: "Installs, licences and health for Hope Events",
title: "Cross Events Hub",
description: "Installs, licences and health for Cross Events",
robots: { index: false, follow: false },
};
+3 -1
View File
@@ -3,6 +3,7 @@
import React, { useState } from "react";
import { useRouter } from "next/navigation";
import { api, errorText, setToken } from "@/lib/api";
import { Logo } from "@/components/ui";
type LoginResponse = { token?: string; twoFactorRequired?: boolean; challengeToken?: string; setupRequired?: boolean; setupToken?: string };
type SetupResponse = { secret: string; otpauthUrl: string; qrDataUrl: string };
@@ -55,7 +56,8 @@ export default function LoginPage() {
return (
<div className="flex min-h-screen items-center justify-center p-4">
<div className="card w-full max-w-sm">
<h1 className="text-xl font-semibold">Hope Events Hub</h1>
<Logo markOnly className="mb-3 h-10 w-10" />
<h1 className="text-xl font-semibold">Cross Events Hub</h1>
{step === "password" && (
<form onSubmit={submitPassword} className="mt-5 space-y-4">
<div>
+17
View File
@@ -12,6 +12,23 @@ const STATUS_TONE: Record<string, string> = {
};
const STATUS_LABEL: Record<string, string> = { ok: "Healthy", warning: "Warning", critical: "Critical", info: "Info" };
/** The Cross Events Hub mark (same artwork as app/icon.svg), with the name beside it unless markOnly. */
export function Logo({ className = "h-8 w-8", markOnly }: { className?: string; markOnly?: boolean }) {
const mark = (
<svg viewBox="0 0 64 64" className={`${className} shrink-0`} aria-hidden="true">
<rect width="64" height="64" rx="14" fill="#4f46e5" />
<path d="M28 12h8v10h10v8H36v22h-8V30H18v-8h10z" fill="#fff" />
</svg>
);
if (markOnly) return mark;
return (
<span className="flex items-center gap-2.5">
{mark}
<span className="font-semibold leading-tight">Cross Events Hub</span>
</span>
);
}
export function Badge({ value, label }: { value: Problem["level"] | "ok" | LicenceStatus; label?: string }) {
return (
<span className={`inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium ring-1 ring-inset ${STATUS_TONE[value] || STATUS_TONE.info}`}>