Detailed analysis button, loading wheel, birth data change limits
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:
@@ -5,6 +5,7 @@ import { useEffect, useState } from "react";
|
||||
import { api } from "@/lib/api";
|
||||
import type { Analysis } from "@/lib/types";
|
||||
|
||||
import { AnalysisLoading } from "./AnalysisLoading";
|
||||
import { Rich } from "./Rich";
|
||||
|
||||
const POLL_MS = 3000;
|
||||
@@ -62,17 +63,12 @@ export function ChartSummary({ chartId, initial }: { chartId: string; initial: A
|
||||
<h2 id="summary-title" className="sr-only">
|
||||
Rövid összefoglaló
|
||||
</h2>
|
||||
<p className="muted" role="status">
|
||||
{gaveUp || summary?.status === "failed"
|
||||
? "Az összefoglaló most nem készült el. Töltsd újra az oldalt egy kicsit később."
|
||||
: "Az összefoglalód készül, ez néhány másodperc…"}
|
||||
</p>
|
||||
{!gaveUp && summary?.status !== "failed" && (
|
||||
<div className="skeleton" aria-hidden="true">
|
||||
<span />
|
||||
<span />
|
||||
<span />
|
||||
</div>
|
||||
{gaveUp || summary?.status === "failed" ? (
|
||||
<p className="muted" role="status">
|
||||
Az összefoglaló most nem készült el. Töltsd újra az oldalt egy kicsit később.
|
||||
</p>
|
||||
) : (
|
||||
<AnalysisLoading compact text="Az összefoglalód készül, ez néhány másodperc…" />
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user