Invitation page shows its gift package; person invites: e-mail and link only
- The admin invitation's page lists the package that comes with it (the public invitation view returns it; the promo code stays in the e-mail). - Inviting a person: no Facebook, WhatsApp or share-sheet buttons, only the e-mail and copying the link. - contents() moved to lib/packageContents so server pages can use it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import type { Package } from "./types";
|
||||
|
||||
/** What a package contains, as short lines. */
|
||||
export function contents(p: Package): string[] {
|
||||
const lines: string[] = [];
|
||||
if (p.natal) lines.push(`${p.natal} részletes képletelemzés`);
|
||||
if (p.synastry) lines.push(`${p.synastry} kapcsolati elemzés`);
|
||||
if (p.forecast) lines.push(`${p.forecast} éves előrejelzés`);
|
||||
if (p.persons) lines.push(`${p.persons} személy felvétele`);
|
||||
if (p.questions) lines.push(`${p.questions} kérdés az elemzéseidről`);
|
||||
if (p.tarot) lines.push(`${p.tarot} kártyajóslás`);
|
||||
return lines;
|
||||
}
|
||||
@@ -484,6 +484,8 @@ export type InvitationStatus = "pending" | "accepted" | "expired" | "revoked";
|
||||
|
||||
/** What an invitation link shows before login. */
|
||||
export interface InvitationLanding {
|
||||
/** The package that comes with it (only admins attach one). */
|
||||
gift: Package | null;
|
||||
inviter_name: string | null;
|
||||
message: string | null;
|
||||
status: InvitationStatus;
|
||||
|
||||
Reference in New Issue
Block a user