Drop the unlimited package, new prices, AI quality note
CI / test (push) Successful in 53s
CI / build (push) Successful in 6m41s
CI / deploy (push) Skipped

- The unlimited package is gone (easy to resell, e.g. by an astrologer):
  catalog, fair-use cap, UNLIMITED_DAILY_LIMIT, /v1/me unlimited_until,
  admin badge. Migration 0014 removes the 'unlimited' entitlements; old
  orders of it are skipped in the header.
- New prices: single 2 000 Ft, couple 4 500, family 8 000, +1 synastry
  2 500, +5 persons 1 500 (list prices 2 000 / 2 500 / 300).
- Login page, packages page and the analysis offer say the analyses are
  written by top AI models, close to a professional astrologer's written
  reading, for a fraction of the price (the packages page names the model).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-18 06:20:31 +00:00
co-authored by Claude Opus 5.5
parent 742b88183b
commit 6d2ad4aa0c
27 changed files with 147 additions and 280 deletions
@@ -245,11 +245,11 @@ function PackageGrant({
setBusy(true);
setStatus(null);
try {
const res = await api<{ analyses_left: AdminUser["analyses_left"]; unlimited_until: string | null }>(
const res = await api<{ analyses_left: AdminUser["analyses_left"] }>(
`/admin/users/${user.id}/packages`,
{ body: { package: pkg.id, note: "admin ajándék" } },
);
onChange({ ...user, analyses_left: res.analyses_left, unlimited_until: res.unlimited_until });
onChange({ ...user, analyses_left: res.analyses_left });
setStatus({ ok: true, text: `${pkg.name} kiosztva` });
setId("");
} catch (err) {
@@ -261,9 +261,6 @@ function PackageGrant({
return (
<form onSubmit={give} className="field" style={{ gap: 6 }}>
{user.unlimited_until && (
<span className="badge badge-gold">Korlátlan {formatDate(user.unlimited_until).replace(/\.$/, "")}-ig</span>
)}
<div className="row" style={{ gap: 6, flexWrap: "nowrap" }}>
<label className="sr-only" htmlFor={`pkg-${user.id}`}>
Kiosztandó csomag
@@ -95,6 +95,10 @@ export default async function LoginPage({ searchParams }: { searchParams: Promis
<p className="muted" style={{ fontSize: 16 }}>
Születési képlet, szinasztria és közösség – egy helyen.
</p>
<p className="ai-line" style={{ fontSize: 15 }}>
Részletes elemzések a legfejlettebb AI-modellekkel: egy tapasztalt asztrológushoz közelítő mélység, töredék
áron.
</p>
</div>
</aside>
<main className="auth-main">
+16 -24
View File
@@ -1,16 +1,16 @@
import type { Metadata } from "next";
import { AiNote } from "@/components/AiNote";
import { PackageCards } from "@/components/PackageCards";
import { formatDate } from "@/lib/astro";
import { backendGet, requireMe } from "@/lib/server";
import type { Package, PublicConfig } from "@/lib/types";
export const metadata: Metadata = { title: "Csomagok" };
const faq = (dailyLimit: number): [string, string][] => [
const FAQ: [string, string][] = [
[
"Lejárnak a megvett elemzések?",
"Nem. A csomagokban kapott elemzések és személyhelyek addig megmaradnak, amíg fel nem használod őket. Csak a Korlátlan csomag szól egy évre.",
"Nem. A csomagokban kapott elemzések és személyhelyek addig megmaradnak, amíg fel nem használod őket.",
],
[
"Mi a különbség a képletelemzés és a kapcsolati elemzés között?",
@@ -20,10 +20,6 @@ const faq = (dailyLimit: number): [string, string][] => [
"Mire kell a személyhely?",
"A saját képleted mellé felvett emberekhez (társ, gyerek, barát). Egy személy felvétele egy helyet használ; a képlete és a rövid összefoglalója ingyenes, a részletes elemzés külön jár.",
],
[
"Van korlát a Korlátlan csomagban?",
`Méltányos használat: naponta legfeljebb ${dailyLimit} új részletes elemzés kérhető. Ha még tart, egy újabb Korlátlan csomag a lejárathoz ad hozzá egy évet.`,
],
];
/** The packages: the main ladder, top-ups, and what the user has now. */
@@ -47,24 +43,20 @@ export default async function PackagesPage() {
</p>
</div>
<AiNote model={config?.analysis_model} />
<section className="card holdings" aria-label="Amid most van">
<span className="eyebrow">Most</span>
{me.unlimited_until ? (
<p>
<strong>Korlátlan csomag</strong> {formatDate(me.unlimited_until).replace(/\.$/, "")}-ig.
</p>
) : (
<p>
<strong>{left.natal}</strong> képletelemzés · <strong>{left.synastry}</strong> kapcsolati elemzés ·{" "}
{slots.unlimited ? (
"korlátlan személy"
) : (
<>
<strong>{slots.left}</strong> szabad személyhely
</>
)}
</p>
)}
<p>
<strong>{left.natal}</strong> képletelemzés · <strong>{left.synastry}</strong> kapcsolati elemzés ·{" "}
{slots.unlimited ? (
"korlátlan személy"
) : (
<>
<strong>{slots.left}</strong> szabad személyhely
</>
)}
</p>
</section>
<PackageCards packages={packages} canPay={canPay} />
@@ -83,7 +75,7 @@ export default async function PackagesPage() {
<section className="card" aria-labelledby="faq-title">
<h2 id="faq-title">Gyakori kérdések</h2>
<dl className="faq">
{faq(config?.unlimited_daily_limit ?? 5).map(([q, a]) => (
{FAQ.map(([q, a]) => (
<div key={q}>
<dt>{q}</dt>
<dd className="muted">{a}</dd>
+6
View File
@@ -577,3 +577,9 @@ a.pair-row:hover strong { color: var(--gold); }
margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; max-height: 640px; overflow: auto;
white-space: pre-wrap; font-size: 13px; line-height: 1.5;
}
/* The note on the AI analyses (packages page, analysis offer, login) */
.ai-note { gap: 6px; padding: 16px 20px; border-left: 3px solid var(--gold); }
.ai-note h2 { font-size: 24px; }
.ai-note p { margin: 0; max-width: 72ch; line-height: 1.65; }
.ai-line { margin: 0; color: var(--ink-2); line-height: 1.6; padding-left: 12px; border-left: 2px solid var(--gold); max-width: 64ch; }
@@ -160,7 +160,6 @@ export default async function ChartPage({ params }: { params: Promise<{ id: stri
initial={detailed}
left={me.analyses_left.natal}
isAdmin={me.user.roles.includes("admin")}
unlimited={me.unlimited_until !== null}
canPay={config?.mock_payments ?? false}
/>
),
@@ -127,7 +127,6 @@ export default async function ComparisonPage({ params }: { params: Promise<{ id:
initial={detailed}
left={me.analyses_left.synastry}
isAdmin={me.user.roles.includes("admin")}
unlimited={me.unlimited_until !== null}
canPay={config?.mock_payments ?? false}
note={`Az elemzésben az első fél: ${name1}, a második fél: ${name2}.`}
/>
+1 -3
View File
@@ -46,9 +46,7 @@ export default async function ProfilePage() {
<dd>{me.providers.map((p) => PROVIDERS[p] ?? p).join(", ") || "–"}</dd>
<dt>Részletes elemzések</dt>
<dd>
{me.unlimited_until
? `Korlátlan, ${formatDate(me.unlimited_until).replace(/\.$/, "")}-ig`
: `${me.analyses_left.natal} képlet, ${me.analyses_left.synastry} kapcsolati`}{" "}
{`${me.analyses_left.natal} képlet, ${me.analyses_left.synastry} kapcsolati`}{" "}
· <Link href="/csomagok">Csomagok</Link>
</dd>
<dt>Személyek</dt>
@@ -0,0 +1,29 @@
/** Shown where people decide: the analyses are written by top AI models. */
export const AI_SHORT =
"A legfejlettebb AI-modellek írják: egy tapasztalt asztrológus írásos elemzéséhez közelítő mélység, töredék áron.";
/** `anthropic/claude-opus-5.5` → `Claude Opus 5.5`. */
export function modelName(id: string | null | undefined): string | null {
const name = id?.split("/").pop()?.trim();
if (!name) return null;
return name
.split("-")
.map((w) => w.charAt(0).toUpperCase() + w.slice(1))
.join(" ");
}
/** A highlighted note on the analysis quality, optionally naming the model in use. */
export function AiNote({ model }: { model?: string | null }) {
const name = modelName(model);
return (
<section className="card ai-note" aria-labelledby="ai-note-title">
<span className="eyebrow">Az elemzésekről</span>
<h2 id="ai-note-title">Profi mélység, töredék áron</h2>
<p className="muted">
Az elemzéseket a legfejlettebb AI-modellek írják{name ? ` (jelenleg: ${name})` : ""}, a képleted pontos
pozícióiból. Részletességben és árnyaltságban megközelítik egy tapasztalt asztrológus írásos elemzését, annak
az árnak a töredékéért.
</p>
</section>
);
}
@@ -6,6 +6,7 @@ import { useEffect, useState } from "react";
import { api, errorText } from "@/lib/api";
import type { Analysis } from "@/lib/types";
import { AI_SHORT } from "./AiNote";
import { AnalysisLoading } from "./AnalysisLoading";
import { PackageChooser } from "./PackageCards";
import { AnalysisView } from "./AnalysisView";
@@ -57,7 +58,6 @@ export function DetailedAnalysis({
initial,
left,
isAdmin,
unlimited = false,
canPay,
note,
}: {
@@ -65,8 +65,6 @@ export function DetailedAnalysis({
initial: Analysis | null;
left: number;
isAdmin: boolean;
/** A running unlimited package: no unit is needed. */
unlimited?: boolean;
/** The stand-in payment is on (MOCK_PAYMENTS). */
canPay: boolean;
/** Shown above a finished analysis (e.g. who is the first and the second person). */
@@ -142,6 +140,7 @@ export function DetailedAnalysis({
<h2 id="detailed-title">{t.title}</h2>
</div>
<p className="muted">{t.about}</p>
<p className="ai-line">{AI_SHORT}</p>
{analysis?.status === "failed" && (
<p className="msg msg-error" role="alert">
Az előző kérés nem sikerült{isAdmin ? "" : ", az elemzést visszaadtuk a keretedbe"}. Próbáld újra.
@@ -153,12 +152,12 @@ export function DetailedAnalysis({
</p>
)}
{isAdmin || unlimited ? (
{isAdmin ? (
<div className="form-actions">
<button type="button" className="btn btn-primary" onClick={start} disabled={busy}>
{busy ? "Indítás…" : `${t.item} készítése`}
</button>
<span className="hint">{isAdmin ? "Adminként ingyenes." : "A korlátlan csomagod része."}</span>
<span className="hint">Adminként ingyenes.</span>
</div>
) : left > 0 ? (
step === "confirm" ? (
@@ -11,14 +11,6 @@ export const huf = (n: number) => `${n.toLocaleString("hu-HU")} Ft`;
/** What a package contains, as short lines. */
export function contents(p: Package): string[] {
if (p.unlimited_months) {
return [
"Korlátlan képletelemzés",
"Korlátlan kapcsolati elemzés",
"Korlátlan számú személy",
`${p.unlimited_months} hónapig`,
];
}
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`);
@@ -90,7 +82,7 @@ export function PackageCards({
{!compact && <p className="muted pkg-tagline">{p.tagline}</p>}
<div className="pkg-price">
<strong>{huf(p.price_huf)}</strong>
{p.list_price_huf && p.list_price_huf > p.price_huf && (
{p.list_price_huf > p.price_huf && (
<s className="hint" aria-label={`Külön megvéve ${huf(p.list_price_huf)}`}>
{huf(p.list_price_huf)}
</s>
@@ -102,11 +94,7 @@ export function PackageCards({
))}
</ul>
<p className="hint pkg-per">
{p.unlimited_months
? "Aki sokakat vesz fel: családot, barátokat."
: p.per_analysis_huf
? `Elemzésenként ${huf(p.per_analysis_huf)}`
: " "}
{p.per_analysis_huf ? `Elemzésenként ${huf(p.per_analysis_huf)}` : " "}
</p>
{step !== null && step > 0 && prev && (
<p className="pkg-step">
@@ -2,7 +2,7 @@
import { PackageChooser } from "./PackageCards";
/** Packages that give more persons: a few more, the family package, or unlimited. */
/** Packages that give more persons: a few more, or the family package. */
export function PersonPacks({ canPay }: { canPay: boolean }) {
return <PackageChooser ids={["addon_persons", "family", "unlimited"]} canPay={canPay} />;
return <PackageChooser ids={["addon_persons", "family"]} canPay={canPay} />;
}
@@ -1,6 +1,5 @@
import Link from "next/link";
import { formatDate } from "@/lib/astro";
import type { Me } from "@/lib/types";
import { LogoutButton } from "./LogoutButton";
@@ -20,10 +19,7 @@ function PackageBadge({ me }: { me: Me }) {
const left = natal + synastry;
let name: string;
let detail: string | null;
if (me.unlimited_until) {
name = "Korlátlan";
detail = `${formatDate(me.unlimited_until).replace(/\.$/, "")}-ig`;
} else if (me.package) {
if (me.package) {
name = me.package.name;
detail = left > 0 ? `${left} elemzés` : "elfogyott";
} else if (left > 0) {
@@ -32,10 +28,8 @@ function PackageBadge({ me }: { me: Me }) {
} else {
return null;
}
const units = me.unlimited_until
? "Korlátlan elemzés és összevetés"
: `Képletelemzés: ${natal}, kapcsolati elemzés: ${synastry}`;
const empty = !me.unlimited_until && left === 0;
const units = `Képletelemzés: ${natal}, kapcsolati elemzés: ${synastry}`;
const empty = left === 0;
return (
<Link
href="/csomagok"
+2 -8
View File
@@ -19,9 +19,7 @@ export interface Me {
analyses_left: UnitBalance;
birth_change: BirthChange;
persons: PersonSlots;
/** The unlimited package runs until then (null: none). */
unlimited_until: string | null;
/** The running unlimited package, or the latest main package bought or given (null: none). */
/** The latest main package bought or given (null: none). */
package: { id: string; name: string; since: string } | null;
}
@@ -35,9 +33,8 @@ export interface Package {
natal: number;
synastry: number;
persons: number;
unlimited_months: number | null;
badge: string | null;
list_price_huf: number | null;
list_price_huf: number;
savings_percent: number | null;
per_analysis_huf: number | null;
}
@@ -71,8 +68,6 @@ export interface PublicConfig {
password_login: boolean;
password_min_length: number;
mock_payments: boolean;
/** New detailed analyses a day with the unlimited package. */
unlimited_daily_limit: number;
/** "invite": new accounts need an invitation. */
signup_mode: "invite" | "open";
}
@@ -232,7 +227,6 @@ export interface AdminUser {
last_login_at: string | null;
charts: number;
analyses_left: UnitBalance;
unlimited_until: string | null;
}
export type PromptKind = "summary" | "natal" | "synastry";