ux-rules
设计不会等待慢任务、不把失败当作空结果的屏幕:先使用一个加载指示器,再使用骨架屏,并在 URL 中保留记录标识。适用于任何屏幕或列表。
译文已校对查看英文原文
Screens that never wait on slow jobs, never call a failure empty, use one loader then skeletons, keep the record in the URL. Use for any screen or list.
适用对象:对象待分类。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- Screens that respect people
- Never wait on a slow job
- One loader per navigation, skeletons after it
- Empty, failed and loading are three different states
- Lists load as you scroll
- The chosen resource lives in the URL
- Forms
- Do not cut to fix
Each rule below exists because a real screen broke it and a person noticed. No click waits on AI, an import, an export or anything slow. Create the record first, do the work in the background, and take the person straight to the screen of the thing being made: its skeleton, a visible "working" state, each part appearing as soon as it is ready. A spinner inside a modal that waits for a model call reads as broken. The session check may show one loading indicator. After that, every wait is a skeleton: the shape of what is coming, where it will appear. Two loaders in a row read as two loads, and changing the second one's size or color does not fix the sequence. The "loading" flag starts as true and turns off on both success and failure; starting it as false creates a frame where the list is empty and nobody has read it. "No items yet" while loading is false. "No items yet" after a failed request is also false. Every list distinguishes: loading: skeleton; failed: what went wrong in plain words, and "Try again"; truly empty: what to create first. If old data is already on screen when a refresh fails, keep showing it and report the failure beside it; do not replace what the person is read
这里只展示节选,请以完整原文和当前要求为准。
- 来源仓库
- ciro-maciel/ccm-stack
- 源文件
- skills/ux-rules/SKILL.md
- 固定版本
- 6a6896522126857f460a3e3747bc0ec5607a8fea
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:ciro-maciel/ccm-stack · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T22:01:44.619Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
MIT。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。