f34016a4a5
build / build (push) Successful in 58s
Testy / Testy warstwy logicznej (silnik) (push) Successful in 11m4s
Testy / Testy warstwy prezentacji (dostęp do baz) (push) Successful in 9m53s
Testy / Build obrazu silnika B (swisseph) (push) Successful in 38s
Testy / Kontrola składni wszystkich warstw (push) Successful in 25s
Trzecia wskazowka partnerow. Kazda zakladke (Horoskop / Interpretacje / Kalendarz) wypelnialo sie od nowa — te same imie, data, godzina, strefa i miejsce. Teraz raz wpisane dane wedruja za uzytkownikiem, a zmiana w jednej zakladce przenosi sie na pozostale. Nowy formsync.js trzyma stan w localStorage. Dlaczego nie sesja na serwerze: serwer zostaje BEZSTANOWY — zadnego magazynu sesji, zadnych danych urodzeniowych trzymanych po stronie uslugi (spojne z postawa z LOG-32/PRE-16). Przy okazji dane synchronizuja sie tez miedzy osobnymi kartami przegladarki, bo zdarzenie `storage` daje to za darmo. Dolozone pole „imie i nazwisko" (wszystkie trzy zakladki) — potrzebne do naglowka raportu PDF (PRE-24). Handlery przyjmuja je i oddaja, wiec nie znika po przeliczeniu. Dwie rzeczy, ktore trzeba bylo domknac, zeby to dzialalo naprawde: 1. KOLEJNOSC SKRYPTOW. formsync.js ladowany w <head> z `defer` — skrypty defer wykonuja sie w kolejnosci dokumentu, wiec ten zdazy odtworzyc wspolrzedne, ZANIM geo.js zbuduje mape. Mapa startuje od razu we wlasciwym miejscu, zamiast przeskakiwac po chwili. 2. geo.js ustawia pola z KODU (`.value = ...`), co samo z siebie NIE wywoluje zdarzen — bez tego synchronizacja przegapilaby kazdy wybor z mapy, z wyszukiwarki i z „Tu i teraz". Dolozony setVal(), ktory jawnie zglasza `change`. Zakladka bez danego pola (np. Sygnifikatory) nie kasuje wartosci zapamietanej gdzie indziej; uszkodzony wpis w localStorage nie blokuje formularza. Q-14 rozstrzygniete: lancuch LaTeX->PDF stanie jako OSOBNA USLUGA render — spojne z izolacja swisseph (LOG-27), obraz produktu zostaje maly. Weryfikacja na zywym stacku (data+logika+prezentacja) w przegladarce: dane wpisane w Horoskopie pojawily sie w Interpretacjach; zmiana godziny w Interpretacjach dotarla do Kalendarza; pola nieobecne na zakladce (zodiak, system domow) przetrwaly; po POST imie zostalo, a horoskop policzyl sie normalnie. Testy: 22 nowe strukturalne. Calosc: prezentacja 67 passed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
93 lines
4.0 KiB
HTML
93 lines
4.0 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Kalendarz{% endblock %}
|
|
{% block nav_timeline %}active{% endblock %}
|
|
|
|
{% block content %}
|
|
<p class="sub">Zbiorcza oś czasu technik predykcyjnych (profekcje, solariusze, dyrekcje solar-arc) z interpretacjami z bazy dla dat.</p>
|
|
|
|
<form method="post" action="/timeline">
|
|
<div class="grid">
|
|
<label title="Trafia do nagłówka raportu PDF (PRE-24). Nie jest nigdzie wysyłane poza aplikację ani zapisywane na serwerze.">Imię i nazwisko
|
|
<input type="text" name="person" autocomplete="name" placeholder="np. Jan Kowalski"
|
|
value="{{ form.person or '' }}">
|
|
</label>
|
|
</div>
|
|
<div class="grid">
|
|
<label>Data urodzenia
|
|
<input type="date" name="date" value="{{ form.date or '' }}" required>
|
|
</label>
|
|
<label>Godzina (lokalna)
|
|
<input type="time" name="time" value="{{ form.time or '' }}" required>
|
|
</label>
|
|
<label title="Przesunięcie czasu lokalnego względem GMT/UTC. Krok 15 minut (0,25 h) — bo część stref ma przesunięcie o pół lub ćwierć godziny, np. Indie +5:30, Nepal +5:45.">Offset względem GMT (h)
|
|
<input type="number" name="tz_offset" step="0.25" min="-12" max="14"
|
|
value="{{ form.tz_offset if form.tz_offset is not none else 0 }}">
|
|
</label>
|
|
<label>Szerokość (lat)
|
|
<input type="number" name="lat" step="0.0001" value="{{ form.lat if form.lat is not none else 0 }}">
|
|
</label>
|
|
<label>Długość (lon)
|
|
<input type="number" name="lon" step="0.0001" value="{{ form.lon if form.lon is not none else 0 }}">
|
|
</label>
|
|
</div>
|
|
{% if location_label %}<p class="muted small">Wstępnie wpisano lokalizację: <strong>{{ location_label }}</strong> ({{ form.lat }}, {{ form.lon }}). Zmień pola lub kliknij „Tu i teraz".</p>{% endif %}
|
|
{% include "_location_picker.html" %}
|
|
<div class="grid">
|
|
<label>Zakres od
|
|
<input type="date" name="from_date" value="{{ form.from_date or '' }}" required>
|
|
</label>
|
|
<label>Zakres do
|
|
<input type="date" name="to_date" value="{{ form.to_date or '' }}" required>
|
|
</label>
|
|
</div>
|
|
{% include "_prompt_block.html" %}
|
|
<div class="actions">
|
|
<button type="button" id="nowBtn" class="ghost">Tu i teraz</button>
|
|
<button type="submit" name="action" value="timeline">Pokaż kalendarz</button>
|
|
<button type="submit" name="action" value="prompt" class="ghost">Generuj prompt (AI)</button>
|
|
<button type="submit" name="action" value="horoscope">Napisz horoskop (AI)</button>
|
|
<span id="geoNote" class="muted small"></span>
|
|
</div>
|
|
</form>
|
|
|
|
{% if error %}<div class="error">{{ error }}</div>{% endif %}
|
|
|
|
{% if result %}
|
|
{% if result.data_error %}<div class="error">{{ result.data_error }}</div>{% endif %}
|
|
<div class="meta">
|
|
Silnik: <strong>{{ result.engine }}</strong> ·
|
|
zdarzeń: {{ result.count }} · zakres {{ result.from }} → {{ result.to }}
|
|
</div>
|
|
|
|
{% for e in result.events %}
|
|
<div class="sig-item">
|
|
<div class="sig-head">
|
|
<span class="badge">{{ e.exact }}</span>
|
|
<span class="badge">{{ e.technique }}</span>
|
|
<strong>{{ e.significator }}</strong>
|
|
<span class="muted small">(okno {{ e.start }} → {{ e.end }})</span>
|
|
</div>
|
|
{% if e.interpretations %}
|
|
<table class="samples">
|
|
<tbody>
|
|
{% for s in e.interpretations %}
|
|
<tr><td class="sig nowrap" title="{{ s.significator }}">{{ s.expanded }}</td><td>{{ s.effect }}</td></tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% if e.interpretations_count > e.interpretations | length %}
|
|
<div class="muted small">…i {{ e.interpretations_count - (e.interpretations | length) }} więcej</div>
|
|
{% endif %}
|
|
{% elif e.technique != 'solar_return' %}
|
|
<div class="muted small">brak dopasowań w bazie</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
<script src="/static/now.js"></script>
|
|
<script src="/static/copy.js"></script>
|
|
<script src="/static/models.js"></script>
|
|
<script src="/static/progress.js"></script>
|
|
{% endblock %}
|