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

Rename theme to TT1 Blocks #145

Merged
merged 6 commits into from
Dec 17, 2020
Merged

Rename theme to TT1 Blocks #145

merged 6 commits into from
Dec 17, 2020

Conversation

jffng
Copy link
Collaborator

@jffng jffng commented Dec 16, 2020

This PR addresses the name change part of #140.

Based on the discussion in the recent block-based themes meeting, folks seemed okay with the name "TT1 Blocks".

Note that we will need to follow up with a Gutenberg PR to address some tests there: https://github.com/WordPress/gutenberg/search?q=twentytwentyone-blocks

To test

  • Clone this repository into a fresh site's themes directory
  • Install and activate Gutenberg
  • Ensure the site and site editor load as expected

One question — could we update the theme screenshot to somehow visually represent that this is not the same theme as Twenty Twenty-One?

@@ -68,7 +68,7 @@ function twenty_twenty_one_register_block_styles() {
'core/latest-posts',
array(
'name' => 'twentytwentyone-latest-posts-dividers',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I left these as since the pattern is a Twenty Twenty-One pattern...

Copy link
Collaborator

Choose a reason for hiding this comment

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

I left these originally, and I think it's probably ok to keep as is here too. The benefit is that if someone were to switch from the original Twenty Twenty-One to this one, any blocks using those custom styles would still work, since this theme ships with CSS that targets the same classnames.

@@ -0,0 +1,5 @@
<!-- wp:template-part {"slug":"header","theme":"tt1-blocks","align":"full", "tagName":"header","className":"site-header"} /-->
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this a new file?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Wait I see its deleted below... weird.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That is weird, I wonder why github didn't catch that it was a file rename.

Copy link
Collaborator

@scruffian scruffian left a comment

Choose a reason for hiding this comment

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

LGTM

@kjellr
Copy link
Collaborator

kjellr commented Dec 16, 2020

We'll also want to change the screenshot probably, though we can handle that in a separate PR.

@carolinan
Copy link
Collaborator

We have confirmation that the theme slug is available.

tt1-blocks/functions.php Outdated Show resolved Hide resolved
@carolinan
Copy link
Collaborator

carolinan commented Dec 17, 2020

With Gutenberg version 9.5.2, the template parts in the site editor are not loading, I only see the spinner.
Even if I make changes to the template parts in the editor and save them, only template part color changes and the spinner is showing,.
No visible problems on the front.

I am using Windows 10, Firefox version 84.0, Chrome version 87.0.4280.88
Confirmed that if I switch to a different theme like Q, the template parts work well

@carolinan
Copy link
Collaborator

carolinan commented Dec 17, 2020

Tested again with the current master of Gutenberg 9.6 RC1 (5425353), but the result was the same.

spinning

@ntsekouras
Copy link
Contributor

@carolinan can you reset your database in your testing environment? I'm not sure if something is affected by some template resolution change or something... - needs to be checked. https://developer.wordpress.org/block-editor/packages/packages-env/#5-reset-the-database

@scruffian
Copy link
Collaborator

I was seeing this at some point with Gutenberg, but on the latest master it works fine.

@ntsekouras
Copy link
Contributor

It might probably caused by this: WordPress/gutenberg#27016 (breaking changes). I think it's okay to merge.

@carolinan
Copy link
Collaborator

If it works for scruffian that is the confirmation I need to merge it :)

@carolinan carolinan merged commit a841790 into master Dec 17, 2020
@scruffian scruffian deleted the update/tt1-blocks-rename branch December 17, 2020 11:03
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.

5 participants