prototype
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePrototype
原型
This skill explores one idea as several working variants. The user compares them in the running app, picks one and the others are deleted.
此 skill 将一个想法探索为多个可运行的变体。用户在运行中的应用里比较这些变体,选定一个后,其余变体会被删除。
Real code, then gone
真实代码,然后移除
Each variant is real code with real data in the real app, not a mockup. Build the number asked for. With no number, build five that differ in approach, not only in colour. The page is temporary and goes once a variant is picked.
Every state of an existing component on one page belongs to . Copying an outside reference belongs to .
labmatch每个变体都是在实际应用中使用真实代码和真实数据实现的,而不是静态模型图。按要求构建相应数量的变体。如果未指定数量,则构建五个在设计方向上各不相同的变体,而不只是颜色不同。该页面是临时的,选定变体后即被移除。
在同一个页面上展示现有组件的每一种状态,属于 。复制外部参考设计属于 。
labmatch1. Restate the idea
1. 重述想法
Write the idea in one line and the axis the variants explore, such as layout, motion or density. Ask one question when the idea has two readings.
用一行写明想法以及变体所探索的维度,例如布局、动效或信息密度。当一个想法存在两种解读时,只问一个问题。
2. Build real variants
2. 构建真实变体
Use the project's components and real or realistic data. A static image or lorem ipsum is or .
prototype-real-codeprototype-real-data使用项目的组件和真实或逼真的数据。使用静态图片或 Lorem ipsum 属于 或 。
prototype-real-codeprototype-real-data3. Put them on one page
3. 将它们放在同一个页面
Show every variant on one route. Separate pages per variant is . Copy switcher.js into the app beside that route and load it once, as its header comment shows. Wrap the variants in , one child each with and an optional .
prototype-one-page<prototype-switcher>data-variantdata-noteThe switcher ships with the skill, so write the variants only. A switcher, tab row or grid written from scratch is .
prototype-shipped-switcherGive each a short label that says how it differs. "Variant 3" is . Use the app's current theme unless the user asked for both. Light and dark side by side by default is .
prototype-label-variantsprototype-one-theme在同一个 route 中展示所有变体。为每个变体分别创建页面属于 。将 switcher.js 复制到应用中该 route 所在位置,并按照其头部注释的说明加载一次。用 包裹这些变体,每个变体对应一个子元素,并带有 及可选的 。
prototype-one-page<prototype-switcher>data-variantdata-note该 switcher 已随 skill 一并提供,因此只需编写各个变体。自行编写 switcher、标签栏或网格属于 。
prototype-shipped-switcher为每个变体设置一个简短标签,说明它与其他变体的差异。“Variant 3”属于 。除非用户明确要求同时展示浅色和深色主题,否则使用应用当前的主题。默认将浅色和深色主题并排展示属于 。
prototype-label-variantsprototype-one-theme4. Open it
4. 打开页面
Start the dev server, open the page and look at every variant once. A path in the reply with nothing opened is .
prototype-open-it启动开发服务器,打开页面,并逐一查看每个变体。在回复中只提供路径而没有实际打开页面,属于 。
prototype-open-it5. Prune after the pick
5. 选定后进行清理
The bar's Pick button copies a line such as "Pick Inline Filters from /prototypes/filters" for the user to paste back. When the user picks, move that variant into the product. Delete the losing variants with the route, and its type declaration. Leftover variants after a pick is .
switcher.jsprototype-prune-after-pick切换栏中的“Pick”按钮会复制一行类似“从 /prototypes/filters 选择 Inline Filters”的内容,供用户粘贴回来。用户选定后,将该变体纳入正式产品。删除未选中的变体,同时移除该 route、 及其类型声明。选定后仍残留未选中的变体,属于 。
switcher.jsprototype-prune-after-pickThe pair
成对检查
Every check is a pair. The broken line sits beside the line that replaces it.
| Rule | Broken | Replacement |
|---|---|---|
| A static mockup image | The variant built from project components |
| Lorem ipsum rows | Real or realistic rows |
| | |
| Five routes, one per variant | One route with a switcher |
| A switcher written from scratch | |
| Light and dark side by side, unasked | The app's current theme |
| "Built at | The page opened, every variant checked |
| Four losing variants left in | The pick shipped, the rest deleted |
每项检查都由一对内容组成:错误示例与替代方案并列展示。
| Rule | Broken | Replacement |
|---|---|---|
| 静态模型图 | 使用项目组件构建的变体 |
| Lorem ipsum 数据行 | 真实或逼真的数据行 |
| “Variant 3” | “Inline Filters” |
| 五个 route,每个对应一个变体 | 一个带 switcher 的 route |
| 自行编写的 switcher | 加载 |
| 未经要求便并排展示浅色和深色主题 | 应用当前的主题 |
| “已构建于 | 已打开页面,并检查了每个变体 |
| | 已交付选中的方案,其余变体均已删除 |
Reporting
报告
Severity. is a variant that does not run, or losing variants left after a pick. is placeholder data, unlabelled variants, variants that differ only in colour or a hand-built switcher. is a page that was not opened for the user.
HIGHMEDIUMLOWFormat. One finding per root cause:
file:line - [rule-id] what is wrongThen a summary. when any remains, otherwise. Mark every variant you could not open as .
Rule | Count | SeverityBlockHIGHApproveNot verified严重程度。 无法运行的变体,或选定方案后仍残留未选中的变体,属于 。占位数据、未标注的变体、仅颜色不同的变体,或手工编写的 switcher,属于 。未为用户打开的页面,属于 。
HIGHMEDIUMLOW格式。 每个根本原因对应一项发现:
file:line - [rule-id] what is wrong随后提供 汇总。只要仍有任何 ,就标记为 ;否则标记为 。将每个无法打开的变体标记为 。
Rule | Count | SeverityHIGHBlockApproveNot verified