fix(frontend): show lockdown message on error path when no stale data

When the backend returns 429+lockdown with no cached stale data to serve,
the error section now shows the human-readable lockdown explanation instead
of the raw "Sentinel marked this request as rejected." string.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Shekhar Vaidya 2026-06-25 12:12:51 +05:30
parent e4e0e52971
commit 40327c33b4

View file

@ -544,7 +544,10 @@ export default function ProductDetailPage() {
>
<div className="flex items-start gap-3 p-4 rounded-xl bg-red-500/8 border border-red-500/15 text-red-400 text-sm">
<AlertTriangle size={15} className="flex-shrink-0 mt-0.5" />
<span>{error}</span>
<span>{isLockdown
? 'Our server has been temporarily blocked by Microsoft and is in a 90-minute cooldown. Use the CLI to get your link instantly — it bypasses our server entirely.'
: error
}</span>
</div>
{selectedSku && (
<CliHandoff