refactor: remove KI-Orakel from history page and backend

Drop oracle UI, API endpoint, scheduled generation, and related docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Frank Schwenk
2026-06-17 08:32:28 +02:00
parent 648e62d2b4
commit c59c3069c4
10 changed files with 12 additions and 155 deletions
-2
View File
@@ -129,8 +129,6 @@ async function loadHistory() {
const data = await api.history(90);
renderHeatmap(data.days);
updateStats(data.stats);
const oracle = await api.oracle().catch(() => ({ text: "Das Orakel schweigt. Wahrscheinlich enttäuscht." }));
document.getElementById("oracleText").textContent = oracle.text;
}
async function handleDeepLink() {
-4
View File
@@ -67,10 +67,6 @@
<div class="statLabel">Genommen</div>
</div>
</div>
<div class="oracleCard" id="oracleCard">
<div class="oracleLabel">🔮 KI-Orakel</div>
<p id="oracleText">Lade Orakel…</p>
</div>
<h2 class="sectionTitle">90-Tage Heatmap</h2>
<div id="heatmap" class="heatmap"></div>
</div>
-1
View File
@@ -26,7 +26,6 @@ export const api = {
history: (days = 90) => request(`/api/history?days=${days}`),
stats: () => request("/api/stats"),
roast: () => request("/api/roast"),
oracle: () => request("/api/oracle"),
snooze: (slot_id, minutes) => request("/api/snooze", { method: "POST", body: JSON.stringify({ slot_id, minutes }) }),
vapidKey: () => request("/api/vapid-public-key"),
pushSubscribe: (subscription) =>
+3 -3
View File
@@ -97,18 +97,18 @@ body {
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Cards */
.roastCard, .oracleCard, .motivationCard {
.roastCard, .motivationCard {
background: linear-gradient(135deg, var(--bg-card) 0%, #3a1855 100%);
border: 2px solid var(--accent-purple);
border-radius: var(--radius); padding: 1rem 1.25rem;
margin-bottom: 1.25rem; box-shadow: 0 4px 20px rgba(124,77,255,.2);
}
.roastLabel, .oracleLabel, .motivationLabel {
.roastLabel, .motivationLabel {
font-size: .65rem; text-transform: uppercase; letter-spacing: .06em;
line-height: 1.35;
color: var(--accent-purple); margin-bottom: .5rem; font-weight: 600;
}
.roastCard p, .oracleCard p, .motivationCard p { line-height: 1.5; font-size: .95rem; }
.roastCard p, .motivationCard p { line-height: 1.5; font-size: .95rem; }
.slotCards { display: flex; flex-direction: column; gap: 1rem; }