Comparisons (synastry) of the own chart and persons
/osszevetesek compares any two of the user's charts (own and persons); the person card and the person's chart page have "Összevetés velem". The comparison page shows a double wheel (first person inside with houses, second outside, aspects between them), the aspects by character, and tabs: paid relationship analysis (synastry unit), the cross aspect grid, house overlays, composite and the full aspect list. Correcting a person within the hour now deletes the user's own comparisons with them instead of being refused; still refused after a paid analysis or when someone else's comparison uses the chart. The relationship analysis prompt is editable on /admin/promptok too, and can be tried on one of the admin's comparisons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import type { ChartListItem, Synastry, SynastrySide } from "./types";
|
||||
|
||||
/** Short name of one side of a comparison: "Én" for the own chart. */
|
||||
export function sideName(side: { label: string; is_primary?: boolean }): string {
|
||||
return side.is_primary ? "Én" : side.label;
|
||||
}
|
||||
|
||||
/** Whether a side's birth time is known (another user's chart has fewer fields). */
|
||||
export function sideTimeKnown(side: SynastrySide): boolean {
|
||||
const chart = side.chart as SynastrySide["chart"] & { time_known?: boolean };
|
||||
return side.highlights?.time_known ?? chart.time?.time_known ?? chart.time_known ?? false;
|
||||
}
|
||||
|
||||
/** Name of a chart in the comparison list, from the user's chart list. */
|
||||
export function listName(ref: { id: string; label: string }, charts: ChartListItem[]): string {
|
||||
const chart = charts.find((c) => c.id === ref.id);
|
||||
return chart ? sideName(chart) : ref.label;
|
||||
}
|
||||
|
||||
export type { Synastry };
|
||||
Reference in New Issue
Block a user