-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checklist: Unify WordPress.com checklist and banner (#26764)
This PR continues separation of state and declarative structure work outlined in #26216. Inspired by suggestions from ockham, the Checklist is declared once in idiomatic React JSX, and can be rendered as a checklist of tasks or a banner (see `viewMode` prop). * `ChecklistShow`, responsible only for rendering the WordPress.com checklist, has been removed. * The array of task props in `onboardingChecklist` has been removed, and is now JSX in `WpcomChecklist`. * `ChecklistBanner` has been removed and replaced by `<WpcomChecklist viewMode="banner" />`. * `ChecklistMain` renders the `WpcomChecklist` and some surrounding UI. Clean up its usage of task status for calculating completion. * Remove the `mergeObjectIntoArrayById` util which is no longer needed and related tests
- Loading branch information
Showing
13 changed files
with
581 additions
and
688 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.