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

Gutenboarding: add new template designs #42354

Merged
merged 11 commits into from
Jun 18, 2020

Conversation

ramonjd
Copy link
Member

@ramonjd ramonjd commented May 18, 2020

Changes proposed in this Pull Request

⚠️ #42353 must be merged first merged

Questions

  1. What is the relationship between theme and design/template? For example, how do we distinguish between Bowen and Coutoire?
  2. I've been determining the fonts by looking at the heading and base fonts for the demo sites, e.g., https://coutoiredemo.wordpress.com/ Is this correct?

TODO

Testing instructions

Head over to /new
Make sure the following designs feature in /new/design: [TO COME]
Ensure that the font selector and preview works for each design
Create a site using each design, checking that the resulting homepage matches the theme/design

Fixes #42208

@matticbot
Copy link
Contributor

@ramonjd ramonjd self-assigned this May 18, 2020
@ramonjd ramonjd added [Goal] New Onboarding previously called Gutenboarding [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. Design labels May 18, 2020
@ramonjd ramonjd requested review from johnHackworth, simison and a team and removed request for johnHackworth May 18, 2020 23:56
slug: 'barnsbury',
template: 'barnsbury',
theme: 'barnsbury',
src: 'https://public-api.wordpress.com/rest/v1/template/demo/barnsbury/barnsbury/',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the relationship between design and theme?

I can't find a corresponding "design" for barnsbury.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@simison I can't remember how you generated the static images, e.g., #40868

I just took a screenshot from the demo file in #42353

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update: just saw that you replied in slack 🙇

Thanks!!!

Instructions on top of https://github.com/Automattic/wp-calypso/blob/master/bin/generate-gutenboarding-design-thumbnails.js

client/landing/gutenboarding/available-designs.ts Outdated Show resolved Hide resolved
},
{
"title": "barnsbury",
"demo": "https://barnsburydemo.wordpress.com/"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What the point of this array? Does the public-api.wordpress.com/rest/v1/template/demo API need it to generate the demo?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the 28-days-late answer to this question, but that API endpoint doesn't use this file. I don't think the file is currently used anywhere at all, actually! I wonder if this file was a precursor to what we now have in available-designs-config.json? For consistency though, I don't see an issue with adding them here, and eventually we'll want to have an endpoint that can list info similar to this, I suppose...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the file is currently used anywhere at all, actually!

Thanks! That's what I was thinking! I just wanted to make sure I wasn't missing something again. 🥴

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it is used anywhere neither.

@johnHackworth remember details?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just came across it yesterday. It's used by the verticals MC tool only. :)

There might be scope to simplify/merge these config files. We're moving them over to the server for now, mainly to reduce the number of remote gets we're doing in our APIs, but also since devs are the only ones updating them anyway.

Copy link
Member

@simison simison Jun 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There might be scope to simplify/merge these config files.

Yep, see also #40587

@matticbot
Copy link
Contributor

matticbot commented May 19, 2020

Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:

App Entrypoints (~464 bytes added 📈 [gzipped])

name                 parsed_size           gzip_size
entry-gutenboarding      +3346 B  (+0.2%)     +464 B  (+0.1%)

Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used.

Legend

What is parsed and gzip size?

Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory.
Gzip Size: Compressed size of the JS and CSS files. This much data needs to be downloaded over network.

Generated by performance advisor bot at iscalypsofastyet.com.

@ianstewart
Copy link
Contributor

I've been determining the fonts by looking at the heading and base fonts for the demo sites, e.g., https://coutoiredemo.wordpress.com/ Is this correct?

@alaczek has prepared a set of source sites that use fonts available in the Gutenboarding flow for these "starter designs".

@alaczek can you work with Ramon's team to ensure these display as intended?

@ramonjd ramonjd force-pushed the add/gutenboarding-new-template-designs branch from 7adbea7 to 4296d74 Compare June 9, 2020 02:02
@ramonjd
Copy link
Member Author

ramonjd commented Jun 9, 2020

@alaczek has prepared a set of source sites that use fonts available in the Gutenboarding flow for these "starter designs".

There were a couple of source sites in @ianstewart's spreadsheet I wasn't sure about. Here's what I could glean from them.

Coutoir
https://gutenboardinghp20.wordpress.com/

headings: 'EB Garamond',
base: 'Work Sans',

Leven
https://gutenboardinghp21.wordpress.com/
headings: -apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;

base: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;

They're using fonts we're not loading in Gutenboarding at the moment. Would you know which we should use (if any)?

Thanks

@ramonjd ramonjd removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Jun 10, 2020
@alaczek
Copy link
Contributor

alaczek commented Jun 11, 2020

There were two sets mentioned in #42120. I only did the first set .

Twenty Twenty, Coutoire, and Leven are not updated, so they should not be included in this PR. But I'll add this to my to-do list and try to tackle tomorrow or on Monday. So you could either:

  • wait for me to update the second set, then update this PR and deploy
  • remove them from this PR, deploy, and start a new PR when the second set is ready.

@ramonjd
Copy link
Member Author

ramonjd commented Jun 11, 2020

Twenty Twenty, Coutoire, and Leven are not updated, so they should not be included in this PR. But I'll add this to my to-do list and try to tackle tomorrow or on Monday.

This PR has been slow moving, so I dare say we'll give you plenty of time to work your magic on the other designs, unless you feel strongly either way.

Also happy to get the other designs out there for testing. They're behind a feature flag and won't go to production anyway.

Thank you @alaczek !!!

@alaczek
Copy link
Contributor

alaczek commented Jun 12, 2020

I did the second set, awaiting feedback from @ianstewart, and then we can move forward.

@alaczek
Copy link
Contributor

alaczek commented Jun 14, 2020

Alrighty, I updated Coutoire and Leven.

Coutoire: Playfair display + Fira Sans

Leven: Chivo + Open Sans, plus I removed a bunch of content from the homepage.

They are ready to go so you can update this PR and get it moving again. We're dropping Twenty Twenty from the lineup though. Let me know if you need me to test/review anything.

@ramonjd ramonjd force-pushed the add/gutenboarding-new-template-designs branch from 5c9aee8 to 735ebe5 Compare June 15, 2020 06:16
ramonjd and others added 9 commits June 18, 2020 10:50
…e new, probably not-yet-working templates.

Turned on for dev, stage, wpcalypso and horizon environments. That is, NOT PROD :)

Removing explicit reference to `featured` property in designs object usage. We might one day want to use various collection in that object, but I did it mainly to satisfy the requirements of the feature flag :)

regenerating the design screenshots

Regenerating at 900w at 72% quality

Removed twenty twenty
@ramonjd ramonjd force-pushed the add/gutenboarding-new-template-designs branch from 1abf3d8 to 113835c Compare June 18, 2020 00:52
@noahtallen
Copy link
Contributor

it'd be super nice to at least get the is_edge option merged! (that's the only part I'm blocked on at the moment.) Is there anything I can do to test or unblock that?

Thinking about the name, it could be confused with "gutenberg edge". just throwing some alternative ideas out:

  • is_alpha
  • is_beta
  • is_dev
  • is_staging
  • restrict_to_staging (or replace staging with alpha/beta/dev)

@ramonjd ramonjd added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Jun 18, 2020
@ramonjd
Copy link
Member Author

ramonjd commented Jun 18, 2020

@alaczek I'm seeing something odd with Rivington.

The mid section text is no longer dark. I can't remember when it was, but I've never noticed the light text on white before in my testing.

Screen Shot 2020-06-18 at 11 19 53 am

It's the same on the demo site: https://rivingtondemo.wordpress.com/

@ramonjd
Copy link
Member Author

ramonjd commented Jun 18, 2020

it'd be super nice to at least get the is_edge option merged! (that's the only part I'm blocked on at the moment.) Is there anything I can do to test or unblock that?

I like is_alpha

I'll change it to that and then I can probably merge this PR.

It won't affect stage or production and so we can deal with design issues in another PR.

…nd to make sure we don't confuse labels with Gutenberg edge
@noahtallen
Copy link
Contributor

so we can deal with design issues in another PR

Nice! I guess that's the point of having alpha designs anyways.

@ramonjd ramonjd added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Jun 18, 2020
@ramonjd ramonjd mentioned this pull request Jun 18, 2020
4 tasks
@ramonjd ramonjd merged commit c3ec8e2 into master Jun 18, 2020
@ramonjd ramonjd deleted the add/gutenboarding-new-template-designs branch June 18, 2020 03:59
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Jun 18, 2020
@ramonjd
Copy link
Member Author

ramonjd commented Jun 18, 2020

Following up this PR's open questions/tasks in another PR: #43420

@ianstewart
Copy link
Contributor

@allancole this looks like it's from the Rivington colour scheme that just shipped, I think.

@kjellr
Copy link
Contributor

kjellr commented Jun 19, 2020

this looks like it's from the Rivington colour scheme that just shipped, I think.

This should be fixed as of Automattic/themes#2153. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Design [Goal] New Onboarding previously called Gutenboarding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gutenboarding: Add restaurant starter layout
8 participants