Gutenberg-mobile: Add API Endpoint containing the current with starter page layouts

Created on 22 Jun 2020  Â·  4Comments  Â·  Source: wordpress-mobile/gutenberg-mobile

Currently we ship Gutenberg Mobile with a set of Starter Page Layouts.

Found in https://github.com/WordPress/gutenberg/tree/8fc02a040d4f453e5a57d1e359cf84d1c319bfa6/packages/block-editor/src/components/page-template-picker/templates

We want to introduce many more layouts and want the that list to grow.

Lets create a new api endpoint that contains the current layouts that we have.

The layouts that we should offer are
About, Contact, Portfolio, Service, Team

Most helpful comment

I am marking this as done.

Since I deployed D45124-code

The request/response model was approved by @chipsnyder.
We will make any changes as required in future PRs.

And the endpoint is now available in production.
See:
Screen Shot 2020-06-24 at 4 42 42 PM

All 4 comments

@enejb Can you clarify below items to finalize the 'definition of done' for this task:

  • Are we copying all the existing mobile layouts to backend in this task?
  • What's the process of copying? Manual or automated?
  • What should the backend copy look like?
  • What's the plan for translating the strings for this particular task?
  • Can we expect that the request/response of the endpoint will be detected inside this task?

Thanks!

Another thing we should make sure is using the most up to date versions of the templates, currently they are in the repo: https://github.com/WordPress/gutenberg/tree/master/packages/block-editor/src/components/page-template-picker/templates

Done when

  1. All existing layouts are copied to back-end.
  2. Translation of layouts
  3. Partial translations (part by part) (every sentence will be translated se).
  4. Request/Response model will be approved by @chipsnyder.
  5. Thumbnails should be in the correct size according to the device's scale.
  6. In production.

I am marking this as done.

Since I deployed D45124-code

The request/response model was approved by @chipsnyder.
We will make any changes as required in future PRs.

And the endpoint is now available in production.
See:
Screen Shot 2020-06-24 at 4 42 42 PM

Was this page helpful?
0 / 5 - 0 ratings