weather error indicator
All checks were successful
Build and Push Docker Image / build (push) Successful in 17s

This commit is contained in:
jason
2026-03-30 14:44:08 -05:00
parent a0c1ae9703
commit 4dcdaa474a

View File

@@ -177,12 +177,24 @@ export default function Dashboard() {
</div> </div>
)} )}
{/* Weather not configured nudge (subtle) */} {/* Weather not configured nudge */}
{weather && !weather.configured && ( {weather && !weather.configured && (
<p className="text-xs text-muted self-end"> <p className="text-xs text-muted self-end">
<Link to="/settings" className="hover:underline text-accent">Configure weather </Link> <Link to="/settings" className="hover:underline text-accent">Configure weather </Link>
</p> </p>
)} )}
{/* Weather configured but erroring */}
{weather?.configured && weather.error && (
<div className={`${cardCls} flex items-center gap-3 text-sm`}>
<span className="text-2xl"></span>
<div>
<p className="font-medium text-primary">Weather unavailable</p>
<p className="text-xs text-muted mt-0.5">{weather.error}</p>
<Link to="/settings" className="text-xs text-accent hover:underline">Check settings </Link>
</div>
</div>
)}
</motion.div> </motion.div>
{/* ── Main widget grid ───────────────────────────────────────────── */} {/* ── Main widget grid ───────────────────────────────────────────── */}