Hub 2.0 step 1: products foundation

- Product enum (events, accounts, website, app) on Licence and Install,
  Install.publicKey; existing rows are events
- One open licence per product per customer: partial unique index, with a
  migration guard that names customers with duplicates (npm run check:hub2
  lists them beforehand)
- Licence keys per product (CEH-, CCA-, CCW-, CCP-); free Accounts licence
  created with the first other product licence
- Protocol v1 registers Events licences only (409 WRONG_PRODUCT); only Events
  licences can be invoiced until billing per customer
- Cross Code Hub in the UI, emails and PDFs
- @crosscode/contracts 1.0.0 vendored (backend/vendor)
- Steps merge into release/2.0, not main (plan updated)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-04 15:28:06 +02:00
co-authored by Claude Opus 5.5
parent fe0f2638c6
commit ad602b2846
30 changed files with 544 additions and 49 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ 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. */
/** The Cross Code 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">
@@ -25,7 +25,7 @@ export function Logo({ className = "h-8 w-8", markOnly }: { className?: string;
return (
<span className="flex items-center gap-2.5">
{mark}
<span className="font-semibold leading-tight">Cross Events Hub</span>
<span className="font-semibold leading-tight">Cross Code Hub</span>
</span>
);
}