Paid detailed analyses with per-kind units; example analysis page
- Credits become analysis units (migration 0006): a natal analysis uses one 'natal' unit, a synastry analysis one 'synastry' unit. No monthly free credits, no model tiers: ANALYSIS_MODEL (default Opus 5.5) writes every paid analysis. Admins grant units per kind; the worker refunds the right unit on failure. - Chart page: the detailed analysis card (offer with units left and a confirmation, progress while writing, the finished six sections). - Public /pelda page: a full Opus analysis of a made-up chart, with the free summary and a login call to action. - The worker sends the JSON schema with properties in 'required' order. serde_json sorted them, so the title came after ~9000 tokens of text and Opus sometimes left it empty (3 failed attempts in a live test); with the order fixed the same analysis succeeded at the first try. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -147,6 +147,21 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||
.tagline { font-family: var(--font-display); font-size: 36px; font-weight: 600; line-height: 1.1; }
|
||||
.gsi-slot { min-height: 44px; display: flex; justify-content: center; }
|
||||
|
||||
/* Detailed analysis */
|
||||
.analysis-card { gap: 14px; }
|
||||
.analysis { display: flex; flex-direction: column; gap: 28px; max-width: 72ch; }
|
||||
.analysis-head { display: flex; flex-direction: column; gap: 12px; }
|
||||
.analysis-head h2 { font-size: 34px; }
|
||||
.analysis-lead { font-size: 17px; line-height: 1.7; color: var(--ink-2); font-style: italic; }
|
||||
.analysis-section { display: flex; flex-direction: column; gap: 12px; }
|
||||
.analysis-section h3 { font-size: 24px; color: var(--gold); }
|
||||
.analysis-section p, .analysis-lists li { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
|
||||
.analysis strong { color: var(--ink); font-weight: 600; }
|
||||
.analysis-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
|
||||
.analysis-lists h3 { font-size: 22px; margin-bottom: 8px; }
|
||||
.analysis-lists ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
|
||||
.analysis-advice { border-top: 1px solid var(--line); padding-top: 24px; }
|
||||
|
||||
/* Chart page */
|
||||
.summary-card { gap: 10px; border-color: rgba(217, 180, 106, 0.35); }
|
||||
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); }
|
||||
|
||||
Reference in New Issue
Block a user