Detailed analysis button, loading wheel, birth data change limits
CI / test (push) Successful in 41s
CI / build (push) Successful in 4m11s
CI / deploy (push) Skipped

Backend:
- own birth data: three corrections within an hour of the first save,
  then one change per 24 hours (birth_data_changes); 429
  birth_data_change_limit with the user-facing message; /v1/me
  birth_change shows the notice; admins are not limited
- admins get detailed analyses free (no unit spent)
- POST /v1/payments/mock (MOCK_PAYMENTS): stand-in payment that adds a
  unit, until Stripe is connected; on in the compose files for now

Frontend:
- detailed analysis offer: admin starts it free, users with units
  confirm, others go through the (stand-in) payment step
- turning wheel with elapsed time while the summary or the analysis is
  being written
- no "adatok javítása" on the chart page (only in the profile), limit
  notice there; wheel hover highlighting removed

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-17 06:45:33 +00:00
co-authored by Claude Opus 5.5
parent 85337f2c79
commit e5cfbd6cdd
23 changed files with 544 additions and 110 deletions
@@ -116,13 +116,6 @@ export function ChartWheel({ chart, timeKnown }: { chart: ChartResult; timeKnown
.filter((a) => WHEEL_ASPECTS.includes(a.aspect) && ends.has(a.point1) && ends.has(a.point2))
.map((a) => ({ ...a, strength: a.max_orb > 0 ? 1 - Math.min(a.orb / a.max_orb, 1) : 0.5 }))
.sort((x, y) => x.strength - y.strength);
// Hovering or focusing a point shows only its aspects.
const highlight = [...ends.keys()]
.map((id) => {
const on = `.chart-wheel:has(.p-${id}:hover, .p-${id}:focus-visible)`;
return `${on} .w-aspect:not(.a-${id}){stroke-opacity:0.06}${on} .w-aspect.a-${id}{stroke-opacity:1}`;
})
.join("\n");
const description = points
.map((p) => `${pointName(p.id)} ${signName(p.sign)} ${dms(p.degree_in_sign_dms)}`)
@@ -192,7 +185,7 @@ export function ChartWheel({ chart, timeKnown }: { chart: ChartResult; timeKnown
key={key}
x={f(x)}
y={f(y)}
className={`w-axis-label p-${key}`}
className="w-axis-label"
dominantBaseline="central"
textAnchor="middle"
>
@@ -207,7 +200,6 @@ export function ChartWheel({ chart, timeKnown }: { chart: ChartResult; timeKnown
)}
{/* Aspects */}
<style>{highlight}</style>
<circle cx={C} cy={C} r={R_INNER} className="w-ring w-inner" />
{aspects.map((a) => {
const [x1, y1] = xy(ends.get(a.point1)!, R_INNER, start);
@@ -220,7 +212,7 @@ export function ChartWheel({ chart, timeKnown }: { chart: ChartResult; timeKnown
y1={f(y1)}
x2={f(x2)}
y2={f(y2)}
className={`w-aspect w-asp-${a.aspect} a-${a.point1} a-${a.point2}`}
className={`w-aspect w-asp-${a.aspect}`}
strokeOpacity={(0.2 + 0.8 * s * s).toFixed(2)}
strokeWidth={(0.6 + 1.9 * s).toFixed(2)}
>
@@ -242,7 +234,7 @@ export function ChartWheel({ chart, timeKnown }: { chart: ChartResult; timeKnown
const [ex, ey] = xy(placed[i], R_INNER, start);
const deg = Number.parseInt(p.degree_in_sign_dms, 10);
return (
<g key={p.id} className={`w-point p-${p.id}`} tabIndex={0}>
<g key={p.id} className="w-point">
<title>
{pointName(p.id)}: {dms(p.degree_in_sign_dms)} {signName(p.sign)}
{p.retrograde ? ", retrográd" : ""}
@@ -282,7 +274,7 @@ export function WheelLegend() {
</span>
))}
</p>
<p>Vastagabb vonal: szorosabb fényszög. Egy bolygóra mutatva csak az ő fényszögei látszanak.</p>
<p>Vastagabb vonal: szorosabb fényszög.</p>
<p>A körön a bolygók, az ASC és az MC főfényszögei vannak; az összes fényszög a táblázatban.</p>
</div>
);