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
@@ -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"