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

Blocks: Tag Cloud #7875

Merged
merged 19 commits into from
Feb 15, 2019
Merged

Blocks: Tag Cloud #7875

merged 19 commits into from
Feb 15, 2019

Conversation

jahvi
Copy link
Contributor

@jahvi jahvi commented Jul 10, 2018

Description

This is my attempt at implementing the tag cloud widget as a Gutenberg block, it's still a work in progress but I wanted to get some initial feedback while I'm at it.

Continued from #4994.
Fixes #1801.

How has this been tested?

Tested in the latest master branch.

Screenshots

motion

Types of changes

New feature: tag cloud block

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.

@jahvi jahvi force-pushed the add/block-tag-cloud branch from d315be6 to ff31b5d Compare July 10, 2018 20:43
@jahvi jahvi mentioned this pull request Jul 10, 2018
3 tasks
@Soean Soean added [Feature] Blocks Overall functionality of blocks New Block Suggestion for a new block Needs Design Feedback Needs general design feedback. labels Jul 16, 2018
@jahvi jahvi force-pushed the add/block-tag-cloud branch from ff31b5d to 4074ac6 Compare August 16, 2018 19:06
@jahvi
Copy link
Contributor Author

jahvi commented Aug 16, 2018

Updated PR to match changes from #8287

@jahvi jahvi force-pushed the add/block-tag-cloud branch from 4074ac6 to 76f5113 Compare August 16, 2018 19:32
@jahvi jahvi force-pushed the add/block-tag-cloud branch from 5f0f65e to 7b8cc64 Compare October 1, 2018 13:35
@jahvi
Copy link
Contributor Author

jahvi commented Oct 1, 2018

Any update on this one? I rebased the latest changes from master but not sure if I should refactor anything else.

@Soean
Copy link
Member

Soean commented Oct 9, 2018

@jahvi Can you rebase it again? I will test the block on my Gutenberg installation.

@jahvi jahvi force-pushed the add/block-tag-cloud branch from 7b8cc64 to 9d22461 Compare October 9, 2018 11:33
@jahvi
Copy link
Contributor Author

jahvi commented Oct 9, 2018

@Soean Sure thing, I just rebased it now.

@Soean Soean added the Needs Accessibility Feedback Need input from accessibility label Oct 10, 2018
@karmatosed karmatosed removed the Needs Design Feedback Needs general design feedback. label Oct 11, 2018
@karmatosed
Copy link
Member

As we focus on phase 1 this will be moving to potential phase 2 and we can then consider it from there, For now, closing and moving to potential blocks for the future.

@karmatosed karmatosed closed this Oct 11, 2018
@karmatosed karmatosed reopened this Dec 14, 2018
@jahvi jahvi force-pushed the add/block-tag-cloud branch from 0ba24a6 to 7ffa162 Compare December 15, 2018 20:37
@jahvi
Copy link
Contributor Author

jahvi commented Dec 15, 2018

Thanks for reopening, I just rebased and fixed some code to match the latest Gutenberg changes. I'm not sure how to fix the CI issues, can you guys advise?

@Soean
Copy link
Member

Soean commented Dec 15, 2018

Nice work! You have to delete the generated test files and regenerate them.

Delete:

  • core__tag-cloud__showTagCounts.json
  • core__tag-cloud__showTagCounts.parsed.json
  • core__tag-cloud__showTagCounts.serialized.html
  • core__tag-cloud.json
  • core__tag-cloud.parsed.json
  • core__tag-cloud.serialized.html

Run: GENERATE_MISSING_FIXTURES=y npm run test-unit test/integration/full-content/full-content.spec.js

@melchoyce
Copy link
Contributor

melchoyce commented Feb 15, 2019

Is the difference just the underlines? We should keep those.

There is also third option available to Tag Cloud widget which I can't see on the block. Not sure what Link Categories is in the first place but it would be worth investigating.

The site you're using probably is old enough that it had the "Links" section in wp-admin (or maybe we include it in development versions?). Links were hidden from all new sites in 3.5. We should conditionally support that, but it's lower priority IMO since it's a deprecated feature. We can make a new issue/PR for that later.

@melchoyce
Copy link
Contributor

melchoyce commented Feb 15, 2019

Can we also make the error messages change based on which taxonomy is chosen?

No categories to show.
No tags to show.

Or even:

Your site doesn't have any categories to show.
Your site doesn't have any tags to show.

@youknowriad
Copy link
Contributor

I tested this and I feel it's good enough to land to include in Gutenberg 5.1. Follow-up improvements to styling, and messages can happen separately.

@youknowriad youknowriad merged commit b58fed3 into WordPress:master Feb 15, 2019
@youknowriad
Copy link
Contributor

Thanks everyone for the collaboration and @jahvi Awesome work

@jahvi
Copy link
Contributor Author

jahvi commented Feb 15, 2019

Thanks all for your help, I'll be glad to keep helping improve it.

@jahvi jahvi deleted the add/block-tag-cloud branch February 15, 2019 16:34
youknowriad pushed a commit that referenced this pull request Mar 6, 2019
youknowriad pushed a commit that referenced this pull request Mar 6, 2019
This was referenced Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Blocks Overall functionality of blocks [Feature] Widgets Screen The block-based screen that replaced widgets.php. Needs Accessibility Feedback Need input from accessibility Needs Design Feedback Needs general design feedback.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants