Profile memory
Comment cleanup
This commit is contained in:
fraxle
2026-05-18 23:02:41 +01:00
parent dded468bec
commit 85c415d1f5
16 changed files with 504 additions and 581 deletions
+6 -6
View File
@@ -1,13 +1,13 @@
// ════════════════════════════════════════════════════════════════════════
// dynamic-message.js Rewrites a cosmic event's message based on where
// ------------------------------------------------------------------------
// dynamic-message.js - Rewrites a cosmic event's message based on where
// today sits vs. the peak.
//
// Before peak : "is active and building peak on <date>. <detail>"
// On peak ±1d : "peaks tonight <detail>"
// After peak : "is past its peak (<date>) but still possibly visible <detail>"
// Before peak : "is active and building - peak on <date>. <detail>"
// On peak -1d : "peaks tonight - <detail>"
// After peak : "is past its peak (<date>) but still possibly visible - <detail>"
//
// Single-day events (start === end) keep their static message unchanged.
// ════════════════════════════════════════════════════════════════════════
// ------------------------------------------------------------------------
export function dynamicCosmicMessage(ev, dateStr) {
if (!ev.peak || ev.start === ev.end) return ev.message;