Prompt(1/3)
Prompt
Review every place in my product that can be empty, and decide for each one what kind of empty it is, how big it should be, and what it should say and show. Then, if I want it, change the ones I approve. This is about judgment first: diagnose and recommend, and change only what I approve.
This is a change to my product, not a demo. Work inside my code, on my stack, with my components, tokens, icons and copy style. Do not add a dependency or a new visual pattern without asking. Every value below is a default to start from.
0. Read the product first
- Find every place that can show nothing: lists and tables, boards and calendars, inboxes and notifications, search and filter results, dashboards and chart cards, folders and uploads, comments and activity, members and invites, trash and archives, menus and pickers with no options, pages that can fail to load, and pages a person may not be allowed to open.
- For each one, note: what normally fills it; why it can be empty (nothing made yet, a search or filter, everything handled, a failed load, no permission, offline); how big the empty area is (a page, a card, one row of a list, a line in a menu); and what it shows today (nothing at all, a bare "No data", a stock illustration or emoji, a spinner that never ends).
- Find the shared pieces: an EmptyState component if there is one, the icon set and whether it has a two-tone or filled style, the button styles, the skeleton and error components, and how light and dark mode are switched.
- Tell me in a few lines what you found before going on.
1. The kinds of empty
a. First use: nothing has been made yet (a new project, a new account, a first folder).
- Show what will be here: a wireframe of this very screen, filled in, in miniature (see 4), or a two-tone icon of what lives here.
- Title: the state in a few words (No tasks yet). Description: how to start, in one sentence.
- Buttons: one main action that makes the first thing (New task), and at most one other way in (Use a template, Import).
- When the first thing is made, it takes the empty state's place at once; nothing else on the page moves.
b. No results: a search or filter found nothing. The product is not empty, so never say it is.
- Keep the search text and every active filter in view, exactly as the person left them.
- The title names what was searched (No tasks match "invoice q3"). The description offers one fix (check the spelling, search every project).
- Buttons: Clear search or Clear filters, as a secondary button; and, when it exists, a wider search as a ghost button.
- The picture is small (80 × 60 at most), or there is none.
- In a search menu or a picker, it is one grey line with no picture (No tasks match "invo"), updated as the person types.
c. All done: everything was handled (an inbox cleared, a queue emptied, no notifications, an empty trash).
- Say so plainly (You're all caught up), and in the description what will show up here next.
- No button, and no accent colour in the picture: there is nothing to do.
d. Failed: the content could not be loaded.
- Show it only where the failure is: the one card, list or panel that did not load, never the whole page when the rest of it loaded.
- While loading, that area shows a skeleton in its own shape (the real rows, the real chart's columns); when the load fails, the skeleton gives way to the empty state in the same place, at the same size.
- The picture is a two-tone alert icon, not a wireframe. Title: what did not load (Couldn't load this chart). Description: what happened and what is safe (The connection dropped. Nothing was lost.).
- Button: Try again, as a secondary button whose own reload icon turns while it retries; on success the content comes in where the empty state was.
- Offline is this kind too: say the work will sync when the connection is back, and offer Try again.
e. No access: the person opened something they may not see.
- The picture: a wireframe of what is behind the door, with a lock, and no accent colour: getting in is the owner's call.
- Title: what they cannot open, by name. Description: who owns it and how to get in.
- Buttons: Request access as the main action, and a ghost button back to where they were.
- After a request, the button turns in place into Request sent, with a check, and the description says what happens next. Nothing else moves.
f. Places that need no empty state: an area that simply closes or hides when empty (a notification tray that closes, a section that is left out). Say which ones these are, and leave them.
✨ 空状态的三种画法——《999 个小技巧,让你 Vibe 的产品更有质感》022
今天分享 3 种空状态的画法:线框版、图标版和迷你版。
附带的 Prompt 可以直接交给你的 Agent:它会先找出产品里需要空状态的位置,再逐个配上合适的尺寸、文案和图示。直接复制即可 ⬇️
一、三种空状态
1. 线框版:
把当前页面简化成缩小的线框,画出内容填满后的样子。用户一眼就能看出这里会放什么、从哪里开始,适合首次使用、收件箱、无权限这类需要交代页面结构的地方。
2. 图标版:
用一个双色图标代表这里的内容,比如文件、评论、成员。它比线框更轻,绘制成本也更低,适合对象明确的场景,以及加载失败、离线这类不需要交代页面结构的情况。
3. 迷你版:
小图标、标题和按钮排成一行,不放说明文字。适合侧边栏、仪表盘卡片这类空间有限的位置。
二、基本结构
一个完整的空状态依次是:图示、标题、说明、按钮。
图示表示这里是什么,标题说明现在的状态,说明补充原因或下一步,按钮给出可以执行的操作。
空间不够时,先省略说明,再缩小图示,标题始终保留。
三、为什么要区分大小
同一种空状态,可能出现在整页、卡片或列表的一行里,可用空间相差很大。如果一律按整页的尺寸来做,卡片会被撑开;一个页面里同时出现几个大号空状态,也分不清主次。
所以按空间选尺寸:整页用完整结构,卡片用迷你版,列表行和菜单只用一行文字。
大尺寸放主要按钮和次要按钮:
整页为空时,空状态就是这一页的全部内容,下一步应当一目了然。用一个主要按钮(Primary)给出最常用的操作,比如“新建任务”;再用一个次要按钮(Secondary)给出另一种开始方式,比如“使用模板”或“导入”。最多两个,多了反而难以选择。
迷你版放链接或 Ghost 按钮:
迷你版通常出现在内容已经很多的页面里,页面本身已经有主要按钮。如果卡片里的空状态也用实心按钮,会和页面的主操作争夺注意力。换成链接或 Ghost 按钮,操作依然可见,视觉权重更低。
四、文字空状态
有些位置只需要一行文字,不放图示,比如表格中的某一组没有数据,或者搜索下拉里没有匹配结果。
表格或列表:在原来的位置显示一行灰字,如“暂无待处理的邀请”,末尾可以跟一个链接。
搜索下拉:显示“没有与‘invoice’匹配的结果”,随输入实时更新。
这类空状态保持原有的行高和位置,布局不会跳动。
五、注意事项
1. 充分翻译后端报错:
不要把接口返回的原始错误直接显示给用户,比如 500 Internal Server Error、timeout。要转成用户能看懂的话,说明哪里出了问题、内容有没有丢失、接下来怎么做,比如“连接中断,内容没有丢失”。产品支持多语言时,这些文案也要一起翻译。
2. 统一语义逻辑:
同一个产品里的标题,要么都讲问题,比如“暂无任务”“没有匹配结果”;要么都讲解决方法,比如“创建第一个任务”“试试其他关键词”。
3. 空间充足时附上说明文字:
可以是对当前情况的解释,可以是对用户情绪的安抚,也可以是最直接的解决方法。解决方法需要几步时,可以直接列出步骤。
001–022 期均收录在主页 Highlights,栏目每日更新,期待你的推荐!🫶 非常感谢