Automattic / newspack-blocks

Gutenberg blocks for the Newspack project.
207 stars 43 forks source link

New block: Author Profile List #901

Closed gamebits closed 2 years ago

gamebits commented 3 years ago

The individual Author Profile block is very handy! But it's a manual placement, which means updating the staff roster page every time someone leaves or is hired. And, more important, it doesn't scale: One Newspack publisher adds from 40 to 350+ authors in just one year. Placing 350 author blocks and then keeping that list updated isn't feasible.

We should implement a new block that shows all authors in lazy-loaded fashion using the same template and display options as the individual Author Profile block. It would also have sort options (first/last name) and the option to show WordPress users, Co-Authors Plus guest authors, or both.

dkoo commented 2 years ago

So far this isn't presenting too much trouble, except for the lazy-loading aspect. Because CAP guest authors are posts and WP users are users, they require two separate queries whose results must be combined after query execution, which makes it difficult if not impossible to paginate the two types together without first getting all of both types of authors. So in terms of requirements, I think we should just show all authors on the site and allow for an "exclusion" field that lets editors search for authors by name to have them not appear in the list.

matticbot commented 2 years ago

:tada: This issue has been resolved in version 1.45.0-alpha.2 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: