Chart page with a drawn wheel; reuse saved charts for identical birth data

- New /kepletek/[id] page: chart wheel (SVG), big three, elements,
  modalities, moon phase, positions and an aspects table. /keplet opens
  the user's own chart; the home page goes there after login.
- The profile only shows the birth data, with a link to the chart.
- Saving the same birth data again returns the stored chart (200)
  instead of calculating a new one.
- Charts without a birth time (angles null) render without houses.

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-16 06:37:59 +00:00
co-authored by Claude Opus 5.5
parent 1f177f859e
commit e789e5a981
15 changed files with 675 additions and 93 deletions
+3 -5
View File
@@ -1,6 +1,5 @@
import type { Metadata } from "next";
import { ChartTables } from "@/components/ChartTables";
import { ROLE_LABELS, formatDate } from "@/lib/astro";
import { backendGet, requireMe } from "@/lib/server";
import type { Chart } from "@/lib/types";
@@ -21,7 +20,7 @@ export default async function ProfilePage() {
<main className="page">
<div className="page-head">
<h1>Profil</h1>
<p className="muted">A fiókod adatai és a saját születési képleted.</p>
<p className="muted">A fiókod és a születési adataid.</p>
</div>
<section className="card" aria-labelledby="account">
@@ -71,9 +70,8 @@ export default async function ProfilePage() {
}
: null
}
>
{chart && <ChartTables chart={chart} />}
</BirthEditor>
chartId={chart?.id ?? null}
/>
</section>
</main>
);