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

Add error indicators to feed list #457

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

xuhcc
Copy link

@xuhcc xuhcc commented Jun 2, 2019

Fixes #418

Copy link
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
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.

@@ -565,6 +569,7 @@ export let Database = {
language: parsedFeed.language,
lastUpdated: Date.now(),
dateModified: modified,
error: false,
Copy link
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
Author

Choose a reason for hiding this comment

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

Done.

@@ -122,15 +123,23 @@ tree-folder-header > .title {
font-weight: bold !important;
}

.unread-count {
.unread-count,
.error-status {
min-width: 2em !important;
margin-left: auto !important;
Copy link
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
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
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.

@@ -39,8 +39,9 @@ tree-folder-header > .toggle-collapsed::-moz-focus-inner {

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
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
@@ -76,6 +76,7 @@
<img class="icon"/>
<label class="title"/>
<label class="unread-count"/>
<label class="error-status">●</label>
Copy link
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
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