gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Improve RSS Block

Open gziolo opened this issue 7 years ago • 14 comments

#7966 which contains the first iteration of RSS block had landed. There was agreement that we can tackle follow-up tasks separately to make the process smoother. This issue list all the feedback which still needs to be addressed:

  1. [x] Set min number of words. (PR: #13502)

screen shot 2019-01-24 at 14 06 42

  1. [x] Let's change text from "Max length of the excerpt" to "Max number of words in excerpt". (PR: #13501)

screen shot 2019-01-24 at 14 08 15

  1. [ ] When there is an error we still display all controls (it's related to the aforementioned change to the way ServerSideRender component works:

screen shot 2019-01-24 at 14 09 36

  1. [ ] Let's fix the error message. I don't think many will understand "WP HTTP Error: cURL ..." Can we just say, "Could not resolve host: xxxx"?

  2. [ ] Let's review all translations used:

jul-15-2018 13-02-58

bildschirmfoto 2018-07-15 um 13 15 53

PHP file: https://github.com/WordPress/gutenberg/blob/master/packages/block-library/src/rss/index.php

gziolo avatar Jan 25 '19 09:01 gziolo

@Soean do you plan to work on any of the listed items? I can help with tweaking ServerSideRender component.

gziolo avatar Jan 25 '19 09:01 gziolo

Yes, I'm gonna work them off. What would be a good minimum? 1, 5, 10?

Soean avatar Jan 25 '19 09:01 Soean

What would be a good minimum? 1, 5, 10?

10 seems to be reasonable, let's discuss in PR.

gziolo avatar Jan 25 '19 12:01 gziolo

Max length text looks good.

For the error, I think it's good to lose the first bit. Is there anything else we can add there? It's always good to try and give people a path to resolution. If I get this error, what do I do next?

michelleweber avatar Jan 25 '19 12:01 michelleweber

Additionally, are there any other errors that can possibly appear?

melchoyce avatar Jan 25 '19 15:01 melchoyce

Errors:

  1. No RSS feed on the site: RSS Error: A feed could not be found at https://drupal.org/. A feed with an invalid mime type may fall victim to this error, or SimplePie was unable to auto-discover it.. Use force_feed() if you are certain this URL is a real feed.

  2. No valid feed: RSS Error: This XML document is invalid, likely due to invalid characters. XML error: not well-formed (invalid token) at line 42, column 299 (Example: https://typo3.org/)

  3. Non valid domain: RSS Error: WP HTTP Error: cURL error 6: Could not resolve host: xxx

  4. Timeout: RSS Error: WP HTTP Error: cURL error 28: Operation timed out after 10069 milliseconds with 0 bytes received

  5. If you work offline RSS Error: WP HTTP Error: cURL error 6: Could not resolve host: wordpress.org

  6. Empty feed: An error has occurred, which probably means the feed is down. Try again later.

1. and 2. are messages from the library SimplePie which we use 3. - 5. are WordPress HTTP request errors 6. Can we change inside the block.

Soean avatar Jan 25 '19 16:01 Soean

Thanks @Soean!

melchoyce avatar Jan 25 '19 16:01 melchoyce

I updated my answer. Maybe there are more errors I haven't found yet.

I think we should remove the RSS Error: in front of the errors. The styled message should be clear enough and there is already a WP HTTP Error: in front of the HTTP request errors.

Soean avatar Jan 25 '19 16:01 Soean

@youknowriad found an issue which requests the changes to the ServerSideRender component which align with what is necessary for RSS block, see #7346.

gziolo avatar Jan 28 '19 10:01 gziolo

I came here after testing the 5.0RC1 and came here to suggest less technical error messages be displayed.

It would also be nice if you could just include an RSS block, and the associated feed title automatically displays. Having to add a heading block and an RSS block and keeping them together could be cumbersome.

desrosj avatar Feb 05 '19 15:02 desrosj

I came here after testing the 5.0RC1 and came here to suggest less technical error messages be displayed.

Yes, this is listed already. I found it really unfriendly for users from the first time I saw it 👍

gziolo avatar Feb 05 '19 16:02 gziolo

I wasn't sure if this should be a separate issue, so I've added it here.

I'm looking for a way to increase the maximum number of posts shown in a RSS feed block. The use case is so that I can display the post titles for articles on other blogs I've written for on a page on my site.

At the moment I've written 8 articles for the WP Shout blog. They weren't all showing up on the front end, so I increased the number from 5 to 10 in the block settings.

RSS block 10 entries maximum

But 10 is the most I can have, and I expect to exceed that in a couple of months. So after that time my older posts will presumably drop off the list.

Is this a feature request you can consider soon?

abrightclearweb avatar Oct 15 '20 06:10 abrightclearweb

Hey guys what about including a reverse option? like the shortcode offered by wordpress.com.

Do you see it possible?

danielcharrua avatar Mar 20 '23 15:03 danielcharrua

Closing this 2019 follow-up umbrella: several of its items landed over the years, and the recent asks accumulating in the tail (item limits, reverse order) deserve their own focused issues where they can be individually triaged rather than pooling here. Thanks everyone for the ideas — please refile the ones you still need!

youknowriad avatar Aug 21 '26 11:08 youknowriad