Loading...
Loading...
Compare original and translation side by side
gpui.rscargo checkgpui.rscargo check| Task | Read first | Also read when relevant |
|---|---|---|
| Set up or harden a production-ready starter app | production-starter.md | project-versioning.md, testing-qa.md |
| Orient a GPUI checkout or choose dependency features | project-versioning.md | testing-qa.md |
| Design state, events, actions, or component boundaries | architecture-state.md | async-performance.md |
| Build views, controls, layout, themes, overlays, or lists | components-layout.md | worked-patterns.md |
| Add Apple-like glass, translucency, depth, or macOS material | apple-glass.md | accessibility-platform.md |
| Add animation, drag, momentum, springs, or gesture behavior | motion-input.md | accessibility-platform.md |
| Add focus, keyboard, screen-reader, typography, or platform behavior | accessibility-platform.md | components-layout.md |
| Add editable text, IME, clipboard, drag/drop, menus, multi-window behavior, or restoration | input-windows.md | accessibility-platform.md, testing-qa.md |
| Add async loading, background work, virtualization, or performance fixes | async-performance.md | architecture-state.md |
| Add or review tests, launch checks, screenshots, or release gates | testing-qa.md | visual-validation.md |
| Translate a Paper.design selection into GPUI | paper-to-gpui.md | paper-mcp.md, visual-validation.md |
| Need complete, copyable patterns | worked-patterns.md | The domain reference for the pattern |
| Verify why a rule exists or refresh time-sensitive claims | sources.md | Current target source and official docs |
| 任务 | 优先阅读 | 相关场景下补充阅读 |
|---|---|---|
| 搭建或加固可投入生产的初始应用 | production-starter.md | project-versioning.md, testing-qa.md |
| 熟悉GPUI代码库或选择依赖特性 | project-versioning.md | testing-qa.md |
| 设计状态、事件、动作或组件边界 | architecture-state.md | async-performance.md |
| 构建视图、控件、布局、主题、浮层或列表 | components-layout.md | worked-patterns.md |
| 添加类Apple玻璃效果、半透明、层次感或macOS材质 | apple-glass.md | accessibility-platform.md |
| 添加动画、拖拽、动量、弹簧效果或手势行为 | motion-input.md | accessibility-platform.md |
| 添加焦点、键盘、屏幕阅读器、排版或平台行为 | accessibility-platform.md | components-layout.md |
| 添加可编辑文本、IME、剪贴板、拖拽、菜单、多窗口行为及恢复功能 | input-windows.md | accessibility-platform.md, testing-qa.md |
| 添加异步加载、后台任务、虚拟化或性能优化 | async-performance.md | architecture-state.md |
| 添加或评审测试、启动检查、截图或发布校验规则 | testing-qa.md | visual-validation.md |
| 将Paper.design设计转换为GPUI代码 | paper-to-gpui.md | paper-mcp.md, visual-validation.md |
| 需要完整可复用的代码模式 | worked-patterns.md | 对应模式的领域参考文档 |
| 验证规则存在的原因或更新时效性声明 | sources.md | 当前目标源码及官方文档 |
scripts/inspect_gpui_project.sh /path/to/projectscripts/inspect_gpui_project.sh /path/to/projectRenderOnceEntity<T>RendercanvasElementRenderOnceRenderEntity<T>canvasElementcx.notify()cx.notify()NSGlassEffectViewNSVisualEffectViewNSGlassEffectViewNSVisualEffectViewAnimationExt::with_animationAnimationExt::with_animationTaskSubscriptionWeakEntitybackground_spawncx.spawncx.spawn_inlistuniform_listrenderTaskSubscriptionWeakEntitybackground_spawncx.spawncx.spawn_inlistuniform_listrendercargo fmt --check
cargo check -p <owning-crate>
cargo test -p <owning-crate>
cargo clippy -p <owning-crate> --all-targets -- -D warnings#[gpui::test]assets/reference-appscripts/validate_reference_app.shcargo fmt --check
cargo check -p <owning-crate>
cargo test -p <owning-crate>
cargo clippy -p <owning-crate> --all-targets -- -D warnings#[gpui::test]assets/reference-appscripts/validate_reference_app.shdesktopuiCargo.lockcargo checkdesktopuiCargo.lockcargo checkget_basic_infoget_selectionget_basic_infoget_selectioncx.notify()cx.notify()