04b26afa6d
Pierwszy krok ustalonej kolejnosci: prompt z podgladem, uzyteczny od razu BEZ integracji API (ta przyjdzie w LOG-31). LOG-29 — app/prompt.py: - profil natal (ekran Interpretacje) i period (ekran Kalendarz), - prompt po polsku: zadanie -> dane horoskopu (pozycje, osie, Lots, aspekty, sekta, zodiak) -> wskazania z baz wg wagi -> instrukcje -> zastrzezenie, - twarde reguly: kazda teza musi cytowac konkretny sygnifikator, zakaz wychodzenia poza dostarczone dane, jawne wskazanie sprzecznosci, - deterministyczny: ten sam horoskop + budzet = ten sam prompt. LOG-30 — redukcja do budzetu (concise/medium/extensive): dedup -> grupowanie z licznikiem -> sortowanie wg punktacji sily (LOG-21) -> obciecie ogona (jednostka = CALE wskazanie) -> skracanie dlugich opisow. Statystyki zwracaja ile weszlo/pominieto i jaki byl prog — takze w tresci promptu, zeby model wiedzial, ze widzi wybor. POST /chart/prompt — zwraca sam prompt + statystyki, bez wolania modelu. Prezentacja: przycisk „Generuj prompt (AI)" na obu ekranach, wybor budzetu, pole z promptem + kopiowanie (z fallbackiem dla http bez secure context). WAZNE (znalezione przy tescie e2e): padnieta warstwa danych zabiera tylko wskazania — horoskop i OS CZASU zostaja, bo sa czysto obliczeniowe. Wczesniej blad bazy gubil cala osie czasu, czyniac prognoze okresowa bezuzyteczna. Zabezpieczone testem. Testy: 19 nowych, calosc 118 passed / 1 skipped. Zweryfikowane e2e w przegladarce: profil natal (3340 znakow) i period (15 zdarzen, 4728 znakow). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
83 lines
3.3 KiB
HTML
83 lines
3.3 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>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>Strefa (offset h)
|
|
<input type="number" name="tz_offset" step="0.25" 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>
|
|
<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>
|
|
{% endblock %}
|