Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template 04 Controls ESNext #10

Closed
wants to merge 89 commits into from
Closed

Conversation

intelijens
Copy link

Added new template for Gutenberg Example - 04 - Controls ESNext to match https://github.com/WordPress/gutenberg-examples/tree/master/04-controls-esnext example

Description

How has this been tested?

Screenshots

Types of changes

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.
  • I've updated all React Native files affected by any refactorings/renamings in this PR.

jessynd and others added 30 commits May 2, 2020 18:33
`npm run build` will generate an `index.js` file at `builds/index.js`, and not a blocks.js.
* Scripts: Add support for postcss.config.js

* Support all postcss config formats

* Rename hasPostCssConfig() to hasPostCSSConfig()
The following PRs were fine in isolation, but when merged resulted in
the introduction of an undefined `Source` type in the `env` package:

WordPress#22256
WordPress#20522

Rename `Source` introduced in WordPress#22256 to `WPSource` according to changes
in WordPress#20522.
* Remove Keyboard.dismiss() when deleting block

* Move selection to end of link after insertion. (WordPress#22652)

Make sure the selection is refreshed after changed.

* Only show pullquote block on iOS.

* Allow pullquote block to show on Android Dev builds

* Change indentifier type in Button, correct concatenation in merge function (WordPress#22708)

* [RNMobile] Fix footer appender in buttons block (WordPress#22711)

* add renderFooterAppender to the extraData to re-render list

* small refactor

* Add onDeleteBlock to the extra data to re-render when it has changes (WordPress#22716)

* add renderFooterAppender to the extraData to re-render list

* small refactor

* Add onDeleteBlock to the extra data to re-render when it has changes

* add renderFooterAppender to the extraData to re-render list

* small refactor

* Add onDeleteBlock to the extra data to re-render when it has changes

* [RNMobile] Correct color selection in color settings (WordPress#22736)

* [RNMobile] Fix: Add default value to format when start and end are undefined (WordPress#22741)

* add default vale to format when start and end are undefined

* revert lint changes

* Fix lint issue

Co-authored-by: lukewalczak <[email protected]>
Co-authored-by: Sérgio Estêvão <[email protected]>
Co-authored-by: Drapich Piotr <[email protected]>
As written this is a syntax error; the PR fixes it.
…ordPress#22695)

* REST API: Update default value for parent in the block type schema

* Align changes with the WordPress core patch

* Fix missed spelling change for textdomain

* Fix copy&paste in block types REST API endpoint

* Update lib/class-wp-rest-block-types-controller.php

Co-authored-by: Jonny Harris <[email protected]>

* Fix issues raised by PHP linter

Co-authored-by: Jonny Harris <[email protected]>
* Type package

* Add node eslint config

* Add changelog

* Update util path in build scripts
* Squash

* Use isResolving selector to determine whether or not the blocks should be recomputed

* Pass the previous menuItemsRef.current to menuItemsToLinkBlocks
* Blocks: Update default block categories

* Block API: Add wp.blocks.getCategory singular function

* Blocks: Normalize block category during registration

* Block Library: Reorganize blocks to new categories

* E2E Tests: Update block directory test to use updated category

* Compat: Reconcile against core-updated categories

Anticipate that core will update to use new categories. Avoid duplicate categories, since legacy categories will not exist to be replaced.

* Compat: Add Trac ticket for block category updates
…splay author (WordPress#16169)

* Added ability to filter latest posts by author

* Updates to catch up to changes in Gutenberg

* Fixes error of: Notice: Undefined index: items in /wp-includes/rest-api.php on line "1245"

* Removed unused variables and fixed linting issues

* Removed Whitespace from index.php

* adding new line to index.php

* applied changes suggested by @draganescu to LatestPosts block

* linting edit

* Updated from users to author on LatestPosts block

* Added display author option

* Updated edit.js on LatestPosts to match front end on author label

* Attempt to fix tests on LatestPosts

* Update e2e tests for LatestPostsa

* Fix for PHP Unit tests

* Updated rendering of author name on editor view

* Changed 'posted by' to 'by' on the byline

* Fixed linting issue in index.php for LatestPost

* Fixed formatting issues in index.php for LatestPosts

* fix to undefined author_info

Co-authored-by: Paul Stonier <[email protected]>
* First stab at encapsulation of useNavigationBlocks

* Flicker issue solved again

* Encapsulated parts of the logic from useNavigationBlocks

* Formatting

* Decouple fetching the data, transforming, saving, and creating draft posts

* Move blocks argument to useSaveNavigationBlocks hook

* Separate fetching menu items from creating navigation blocks

* Move PromiseQueue to use-create-missing-menu-items as it is only used there

* construct query inline instead of having useMenuItemsQuery

* Simplify the refactor (thank you Andrei!)

* Extract PromiseQueue into a separate file

* Move eventuallySaveItems to useMenuItems

* Update packages/edit-navigation/src/components/menu-editor/use-create-missing-menu-items.js

Co-authored-by: andrei draganescu <[email protected]>

* Update packages/edit-navigation/src/components/menu-editor/use-create-missing-menu-items.js

Co-authored-by: andrei draganescu <[email protected]>

* Show the notice after receiveEntityRecords

* Fix spacing issue

* Remove rogue async

* rename linkBlocks to blocks

Co-authored-by: andrei draganescu <[email protected]>
…creen (WordPress#22792)

* Disable the navigator toolbar button on the experimental navigation screen

* Use __experimentalNavigationScreen
…2828)

* Use Panel for navigation structure on small screens only

* Adjust CSS
aduth and others added 16 commits June 5, 2020 13:00
…#22905)

* Block Editor: Remove ifBlockEditSelected internal higher-order component

* Block Editor: Pass children to inspector fills
* Use React hooks for TabPanel component

* Use hook for instanceId

* Fix instanceId and use template literals

Co-authored-by: Patrick Villanueva <[email protected]>
…dPress#22876)

* Template Part: Don't set post ID until the first edit.

* Entities Saved States: Call the save callback before actually saving.

* Edit Site: Set new templates' status and title right before saving instead of on load.

* Template Part: Don't set status on mount.

* Template Part: Update tests.
* Add alignment control to the site title block edit function.

* Add support for setting site title tag, and applying text alignment in the editor and front end.

* Fix up classname output, and add a default site title classname.

* Fix PHP linting issues.
…t more useful (WordPress#22577)

* Try: removing the multi-block type check to make __experimentalConvert more useful

* Remove unneeded isBlockSelectionOfSameType tests

* Add additional test cases for __experimentalConvert to catch * and block matches

* fix whitespace for linter
* Adding actions to unsupported block sheet

* Send unsupported fallback message to native

* Adding bridge listener to replace a single block with the given blocks in html

* Change unsupported blocks copy and button color

* Sending block title on unsupported block fallback message

* Fix dark-mode color of action button

* Add style to Dismiss button on Unsupported block bottom sheet

* Revert "Mobile Bundle"

* Put unsupported block editor on dev builds

Co-authored-by: Marko Savic <[email protected]>
Co-authored-by: Paul Von Schrottky <[email protected]>
* Update triage to include release instructions

After chatting with @aduth about  release specific triage processes, I wanted to pull together insights he shared around how to approach adding milestones, flagging bugs for the team, etc. Adding this in as an update to these instructions.

* Update docs/contributors/triage.md

Co-authored-by: Andrew Duthie <[email protected]>

Co-authored-by: Marcus Kazmierczak <[email protected]>
Co-authored-by: Andrew Duthie <[email protected]>
…and (WordPress#22661)

* Use shorter friendlier version of command

* Update packages/e2e-tests/fixtures/blocks/README.md

Co-authored-by: Greg Ziółkowski <[email protected]>

Co-authored-by: Marcus Kazmierczak <[email protected]>
Co-authored-by: Greg Ziółkowski <[email protected]>
…current esnext template, rename template controls-esnext accordingly;
@intelijens intelijens self-assigned this Jun 6, 2020
@intelijens intelijens linked an issue Jun 6, 2020 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Jun 6, 2020

Size Change: +16.4 kB (1%)

Total Size: 1.12 MB

Filename Size Change
build/a11y/index.js 1.14 kB +1 B
build/annotations/index.js 3.62 kB +1 B
build/api-fetch/index.js 3.4 kB +2 B (0%)
build/block-directory/index.js 6.75 kB +270 B (4%)
build/block-directory/style-rtl.css 892 B +105 B (11%) ⚠️
build/block-directory/style.css 892 B +105 B (11%) ⚠️
build/block-editor/index.js 106 kB +730 B (0%)
build/block-editor/style-rtl.css 11.4 kB +63 B (0%)
build/block-editor/style.css 11.4 kB +61 B (0%)
build/block-library/editor-rtl.css 7.87 kB +260 B (3%)
build/block-library/editor.css 7.87 kB +262 B (3%)
build/block-library/index.js 127 kB +8.04 kB (6%) 🔍
build/block-library/style-rtl.css 7.72 kB +40 B (0%)
build/block-library/style.css 7.72 kB +36 B (0%)
build/block-serialization-default-parser/index.js 1.88 kB +1 B
build/block-serialization-spec-parser/index.js 3.1 kB -1 B
build/blocks/index.js 48.1 kB +8 B (0%)
build/components/index.js 193 kB +3.54 kB (1%)
build/components/style-rtl.css 19.5 kB +9 B (0%)
build/components/style.css 19.5 kB +9 B (0%)
build/compose/index.js 9.31 kB -3 B (0%)
build/core-data/index.js 11.4 kB +9 B (0%)
build/data/index.js 8.45 kB +28 B (0%)
build/date/index.js 5.47 kB +4 B (0%)
build/dom/index.js 3.17 kB +55 B (1%)
build/edit-navigation/index.js 8.25 kB +366 B (4%)
build/edit-navigation/style-rtl.css 918 B +61 B (6%) 🔍
build/edit-navigation/style.css 919 B +63 B (6%) 🔍
build/edit-post/index.js 303 kB +242 B (0%)
build/edit-site/index.js 15.5 kB +1.4 kB (9%) 🔍
build/edit-widgets/index.js 9.33 kB +503 B (5%) 🔍
build/editor/index.js 44.7 kB +75 B (0%)
build/format-library/index.js 7.72 kB +9 B (0%)
build/html-entities/index.js 621 B -1 B
build/keyboard-shortcuts/index.js 2.52 kB +4 B (0%)
build/keycodes/index.js 1.94 kB +1 B
build/list-reusable-blocks/index.js 3.12 kB -2 B (0%)
build/media-utils/index.js 5.3 kB +8 B (0%)
build/notices/index.js 1.79 kB +1 B
build/nux/index.js 3.41 kB +2 B (0%)
build/plugins/index.js 2.56 kB -4 B (0%)
build/primitives/index.js 1.5 kB +1 B
build/redux-routine/index.js 2.85 kB -2 B (0%)
build/rich-text/index.js 14.8 kB +11 B (0%)
build/server-side-render/index.js 2.68 kB +3 B (0%)
build/url/index.js 4.06 kB +39 B (0%)
build/viewport/index.js 1.85 kB +10 B (0%)
build/wordcount/index.js 1.17 kB +1 B
ℹ️ View Unchanged
Filename Size Change
build/autop/index.js 2.83 kB 0 B
build/blob/index.js 620 B 0 B
build/block-library/theme-rtl.css 684 B 0 B
build/block-library/theme.css 686 B 0 B
build/data-controls/index.js 1.29 kB 0 B
build/deprecated/index.js 771 B 0 B
build/dom-ready/index.js 568 B 0 B
build/edit-post/style-rtl.css 5.43 kB 0 B
build/edit-post/style.css 5.43 kB 0 B
build/edit-site/style-rtl.css 2.96 kB 0 B
build/edit-site/style.css 2.96 kB 0 B
build/edit-widgets/style-rtl.css 2.4 kB 0 B
build/edit-widgets/style.css 2.4 kB 0 B
build/editor/editor-styles-rtl.css 425 B 0 B
build/editor/editor-styles.css 428 B 0 B
build/editor/style-rtl.css 4.26 kB 0 B
build/editor/style.css 4.27 kB 0 B
build/element/index.js 4.64 kB 0 B
build/escape-html/index.js 733 B 0 B
build/format-library/style-rtl.css 502 B 0 B
build/format-library/style.css 502 B 0 B
build/hooks/index.js 2.13 kB 0 B
build/i18n/index.js 3.56 kB 0 B
build/is-shallow-equal/index.js 711 B 0 B
build/list-reusable-blocks/style-rtl.css 226 B 0 B
build/list-reusable-blocks/style.css 226 B 0 B
build/nux/style-rtl.css 616 B 0 B
build/nux/style.css 613 B 0 B
build/priority-queue/index.js 789 B 0 B
build/shortcode/index.js 1.7 kB 0 B
build/token-list/index.js 1.28 kB 0 B
build/warning/index.js 1.14 kB 0 B

compressed-size-action

@intelijens
Copy link
Author

recreated new branch with appropriately titled branch name, following other examples from JSA Team Leads. Cleaner approach and commits, also pulled directly from JSA/gutenberg vs having multiple origins, causing WP/gutenberg master to inappropriately pulled and merged without TL consent. New branch: https://github.com/js-advancers/gutenberg/commits/add/controls-template-esnext and PR: #12

cc: @rbest @brezocordero @fabiankaegy

@intelijens
Copy link
Author

declined PR

@intelijens intelijens closed this Jun 13, 2020
@brezocordero brezocordero deleted the Template-04-controls-esnext branch June 26, 2020 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transform 04-controls-esnext example to Template