Session 17: Audit response — checkout 401 fix, hero prop 404 fix, Slate parsing fix, ALL tab cascade isolation, cookie/nav/footer/autocomplete polish (1438 tests)
This commit is contained in:
@@ -340,6 +340,22 @@ export default function ScanPage() {
|
||||
}}
|
||||
autoComplete="off"
|
||||
/>
|
||||
{/* Session 17 — show "no results" when the search ran but
|
||||
returned nothing. Audit reported a silent dropdown failure;
|
||||
this gives the user feedback when the upstream player
|
||||
service is offline or the spelling didn't match. */}
|
||||
{playerQuery.trim().length >= 2 && playerSuggestions.length === 0 && playerQuery !== selectedPlayer && (
|
||||
<div
|
||||
className="surface-elevated"
|
||||
style={{
|
||||
position: 'absolute', top: '100%', left: 0, right: 0,
|
||||
marginTop: 4, zIndex: 20, padding: 12,
|
||||
fontSize: 12, color: 'var(--text-tertiary)',
|
||||
}}
|
||||
>
|
||||
No {sport} players matched “{playerQuery}”. Check spelling or try a partial name.
|
||||
</div>
|
||||
)}
|
||||
{playerSuggestions.length > 0 && playerQuery !== selectedPlayer && (
|
||||
<div
|
||||
className="surface-elevated"
|
||||
|
||||
Reference in New Issue
Block a user