Skip to content

Add error indicators to feed list#457

Open
xuhcc wants to merge 4 commits intobrief-rss:masterfrom
xuhcc:errors
Open

Add error indicators to feed list#457
xuhcc wants to merge 4 commits intobrief-rss:masterfrom
xuhcc:errors

Conversation

@xuhcc
Copy link
Copy Markdown

@xuhcc xuhcc commented Jun 2, 2019

Fixes #418

Copy link
Copy Markdown
Member

@tanriol tanriol left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution!

This looks nice overall, but there are a few style-related problems and the big problem with non-obvious UI marker.

@@ -553,6 +553,10 @@ export let Database = {
modified = parseDateValue(parsedFeed.updated);
}
if(!entries.length || (modified && modified <= feed.dateModified)) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This block will likely be modified / removed in the near future as quite some feeds have incorrect dateModified, but for now looks correct.

language: parsedFeed.language,
lastUpdated: Date.now(),
dateModified: modified,
error: false,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

May be a good idea to also store a timestamp of the last successful fetch as "this feed failed to update last time" and "this feed could not update for two months" are different situations.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done.

.unread-count,
.error-status {
min-width: 2em !important;
margin-left: auto !important;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Having this attribute for both items causes them to be spaced in a weird way if both are displayed.
Screenshot_20190603_005325

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I tried to apply different styles, but none was good enough. So I removed the circle and painted feed titles in red instead.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

We can also replace feed icon with https://github.com/brief-rss/brief/blob/master/icons/error.png. feedlist.css contains some css rules for that, probably left from the pre-webext days.

tree-folder:not(.unread) > tree-folder-header > .unread-count,
tree-folder:not(.collapsed) > tree-folder-header > .unread-count,
tree-item:not(.unread) > .unread-count {
visibility: hidden;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The unread count was intentionally visibility: hidden; instead of display: none; to make the text cutoff points better aligned. Compare the following screenshots:
Screenshot_20190603_005838 - display: none;
Screenshot_20190603_005947 - visibility: hidden;

ui/brief.xhtml Outdated
<img class="icon"/>
<label class="title"/>
<label class="unread-count"/>
<label class="error-status">●</label>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The main problem is that a brown circle (okay, even a red circle) is not exactly obvious and it lacks any kind of description. How is the user supposed to know it means "this feed failed to load last time"? This definitely needs a textual comment of some kind.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I agree. Tooltip added.

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.

Show feed errors

2 participants