weather error indicator
All checks were successful
Build and Push Docker Image / build (push) Successful in 17s
All checks were successful
Build and Push Docker Image / build (push) Successful in 17s
This commit is contained in:
@@ -177,12 +177,24 @@ export default function Dashboard() {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Weather not configured nudge (subtle) */}
|
||||
{/* Weather not configured nudge */}
|
||||
{weather && !weather.configured && (
|
||||
<p className="text-xs text-muted self-end">
|
||||
<Link to="/settings" className="hover:underline text-accent">Configure weather →</Link>
|
||||
</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>
|
||||
|
||||
{/* ── Main widget grid ───────────────────────────────────────────── */}
|
||||
|
||||
Reference in New Issue
Block a user