1 Star 0 Fork 0

云起云变 / wp-calypso

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
merge-checklist.md 2.39 KB
一键复制 编辑 原始数据 按行查看 历史

Merge Checklist

This document aims to provide a list of things to check and test whenever you are working on a pull request — or when you are reviewing one — for Calypso.

  • Run npm test from the calypso root to make sure all tests pass.
  • Test with multiple individual sites, and All My Sites. Does everything work as expected? Use the site switcher and directly via URL.
  • Test scenarios where your feature intentionally doesn't work (e.g. not supported on Jetpack)
  • Explicitly test with a Jetpack-powered site. Calypso features should all work with Jetpack sites unless they are strictly WordPress.com-only.
  • Test different user privileges (admin, editor, author). How does your code behave?
  • Your code should work well with an empty initial state. It's easy to overlook that data cached via state persistence may not be present when a user logs in for the first time, clears their browser history, or visits with a different browser. Errors can occur if you've introduced code which operates on this data without checking for its existence.
    • Start a new session in private browsing mode, or run localStorage.clear(); indexedDB.deleteDatabase( 'calypso' ); in your browser's developer tools console, then refresh the page
    • To disable state persistence, start Calypso with DISABLE_FEATURES=persist-redux npm start
  • How are you communicating 'loading' and 'empty' states? See how we approach reactivity.

It's also important to keep the general WP.com commit checklist at hand (modified for Calypso):

  1. It must be responsive on phone, tablet, and desktop; interactions must be fluid on a touch device. Responsive goes both ways, be sure to test with the is-fluid-width feature flag enabled. An easy way to do that is to add is-fluid-width as a CSS class to the html tag using the web-inspector.
  2. Test in IE11+, Chrome, Firefox, Mac/Win on the desktop.
  3. Collect relevant and useful stats/events. What questions do they answer? How do you expect them to change over time?
  4. All strings must be fully translatable (without concatenation, handling plurals), and you should be aware of how long strings affect layout.
  5. Any visual assets involved must be HiDPI optimized and/or scalable.
  6. Everything should be visually consistent both "internally", and across platforms.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/neequ_admin/wp-calypso.git
git@gitee.com:neequ_admin/wp-calypso.git
neequ_admin
wp-calypso
wp-calypso
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891