Public birth chart: keep it across pages for the tab, login for the summary
The typed birth data and the calculated chart stay in sessionStorage (no cookie, gone with the tab), so they are back after visiting another page; 'Adatok törlése' forgets them. User-input storage for the session needs no consent; the privacy pages say so. Signing up in the same tab fills the profile with them. The offer next to the chart now says the short summary needs a login. Logged-in users get 'Csillagjegyek' in the menu. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -38,7 +38,7 @@ export function composeTime(hour: string, minute: string): string | null {
|
||||
return h <= 23 && m <= 59 ? `${pad(h)}:${pad(m)}` : null;
|
||||
}
|
||||
|
||||
/** Birth data typed into the public chart page, offered on the profile after sign-up. */
|
||||
/** Birth data typed into the public chart page (sessionStorage), offered on the profile after sign-up in the same tab. */
|
||||
export const BIRTH_DRAFT_KEY = "sf_birth_draft";
|
||||
|
||||
export interface BirthDraft {
|
||||
|
||||
Reference in New Issue
Block a user