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
+2 -11
View File
@@ -28,7 +28,6 @@ use crate::AppState;
use crate::auth::AuthUser;
use crate::credits::{self, Unit};
use crate::error::{ApiError, ApiResult};
use crate::packages;
use crate::views::{rfc3339, rfc3339_opt, sha256_hex};
use db::Role;
@@ -119,18 +118,10 @@ async fn request(
req: AnalysisRequest,
) -> ApiResult<(StatusCode, Json<Value>)> {
let language = validate_locale(state, Some(req.language.as_deref().unwrap_or(&auth.user.locale)))?;
// Admins and a running unlimited package (within its daily cap) use no unit.
// Admins use no unit.
let admin = auth.user.has_role(Role::Admin);
let unlimited = !admin && {
let mut conn = state.db.acquire().await?;
let until = packages::unlimited_until(&mut conn, auth.id()).await?;
if until.is_some() {
packages::check_fair_use(&mut conn, auth.id(), state.config.unlimited_daily_limit).await?;
}
until.is_some()
};
let unit = match target {
_ if admin || unlimited => None,
_ if admin => None,
Target::Synastry { .. } => Some(Unit::Synastry),
_ => Some(Unit::Natal),
};