算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
wayfinding-search-and-recovery【设计与创意】Use this skill when designing search as the universal wayfinding recovery, or when designing for users who got lost — 404 pages, "results not found," "you've reached an unexpected page," empty states that should orient, and any moment where the user's mental map has failed and the system must repair it. Trigger when designing global search, command p…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
wayfinding; read that first.'Wayfinding fails. Users mistype URLs, follow stale links, click on a section that doesn't have what they thought it would, get teleported by a notification into a context they don't recognize. When wayfinding fails, the system has two jobs: (1) help the user find what they were after, (2) rebuild their orientation so they can navigate again on their own.
For complex apps, search is the most reliable wayfinding repair tool the user has. When the cognitive map breaks, the user types what they want and the system locates it. This works because:
A robust search experience for wayfinding recovery has these properties:
Global search must be one keystroke or one click away from anywhere in the app. Common patterns:
/ to focus search. A long-standing convention from GitHub, Twitter, Slack.⌘K / Ctrl+K to open command palette. Newer; faster for power users; widespread in modern dev tools.<header class="app-header">
<input type="search"
placeholder="Search anything (or press /)"
id="global-search"
aria-label="Search" />
</header>
A search that only finds documents (and not also settings, people, projects) is incomplete recovery. The user often doesn't know the category of what they want; they just know the name.
Results
Documents
"Q4 plan"
"Q4 review notes"
Settings
"Quarterly notification frequency"
People
"Quentin Ramirez"
Categorical grouping in results restores the user's cognitive map even as it answers their query.
Each result should display where it lives in the IA — its breadcrumb. This serves two purposes:
<ul class="search-results">
<li>
<a href="/projects/acme/notes/q4-plan">
<h3>Q4 plan</h3>
<p class="path">Projects › Acme › Notes</p>
<p class="snippet">Our Q4 plan focuses on three priorities...</p>
</a>
</li>
</ul>
Empty search inputs should show recents (the user's frequent destinations) and suggestions (likely searches based on context). This makes search useful even before the user has typed anything.
A "No results for 'qrt plnan'" page is the most common search-recovery moment. Patterns:
Never just say "no results" with no path forward.
A 404 (Not Found) page is the most common explicit wayfinding failure. The user followed a link or typed a URL and arrived nowhere.
A wayfinding-aware 404 does five things:
<main class="error-page">
<h1>This page doesn't exist</h1>
<p>
The link you followed may be broken, the URL may be mistyped,
or the page may have been moved. Try searching for what you need:
</p>
<form action="/search">
<input type="search" name="q" placeholder="Search..." autofocus />
<button>Search</button>
</form>
<p>
Or go to <a href="/">your dashboard</a>.
</p>
</main>
For internal errors (500, service unavailable, timeout), the same wayfinding-recovery principles apply, but the apology and reassurance content shift slightly: it's the system's fault, not the user's URL. Still: state plainly, offer recovery, provide escape.
Sometimes the user isn't lost in URL space — they're lost in mental-model space. They opened a settings panel and don't recognize where they are; they navigated into a deep flow and forgot where it started.
Patterns that help:
The user clicked a link they didn't mean to and arrived somewhere unintended. They need:
If you've ever shipped an SPA where the back button leads to a confused state, you've created a wayfinding trap.
Empty states are wayfinding moments: the user arrived at a page expecting content, found none, and now needs orientation about what to do.
A wayfinding-aware empty state:
/nope-this-doesnt-exist). What does the page do? Does it help you, or just say no?wayfinding (parent).wayfinding-physical-spatial-metaphors — when spatial metaphors fail, search compensates.wayfinding-breadcrumbs-and-context — the orientation chrome that prevents recovery from being needed.recognition-over-recall — search results work because recognizing the right one is easy; recalling its path was hard.forgiveness (interaction) — recovery from wayfinding errors is part of forgiveness.