Skip to content

Improved: "Pagination" + load more button#4125

Merged
Alkarex merged 21 commits intoFreshRSS:edgefrom
math-GH:clean-pagination
Feb 6, 2022
Merged

Improved: "Pagination" + load more button#4125
Alkarex merged 21 commits intoFreshRSS:edgefrom
math-GH:clean-pagination

Conversation

@math-GH
Copy link
Copy Markdown
Contributor

@math-GH math-GH commented Jan 5, 2022

Before;
grafik

The "load more" section below the article stream is called internally as "pagination". Also the HTML is a <ul> but it is just one <li> item. It is not (anymore) a "real" pagination.

In contrast to it: the log. It has a real pagination.

Both uses the same CSS class "pagination".

While reading the source code it is not clear about which type of "pagination" I read.

So I thought to clear it and improve the "load more" section.

After:
The HTML is improved. The user sees a real button that invites to interact ("load more articles").
grafik

Internally this section is called "stream-footer" and so it is clear divided from the pagination in the logs. A good point for future CSS work.

I start here with a Draft PR to collect your feedback.

Right now in all themes it looks fine.

Open todos:
[x] rename app/views/helpers/pagination.phtml
[x] rename/new array i18n (gen.php) of pagination
[x] clean theme CSS

@math-GH math-GH marked this pull request as draft January 5, 2022 18:53
@Alkarex Alkarex added the UI 🎨 User Interfaces label Jan 5, 2022
@Alkarex
Copy link
Copy Markdown
Member

Alkarex commented Jan 5, 2022

Quick note: this system also works with JavaScript disabled (so far)

@Frenzie
Copy link
Copy Markdown
Member

Frenzie commented Jan 5, 2022

Perhaps we should distinguish between Load more articles at the bottom of the page enabled and disabled.

This PR seems to be targeting disabled, and it might be an improvement there, but with standard settings all this extra padding would result in more distraction. The current look is close to ideal for that use case, except ideally it should say "Loading new articles*.

@math-GH
Copy link
Copy Markdown
Contributor Author

math-GH commented Jan 11, 2022

Quick note: this system also works with JavaScript disabled (so far)

Is it a minimum goal, that FreshRSS should (mainly) work disabled JavaScript?

@Alkarex
Copy link
Copy Markdown
Member

Alkarex commented Jan 11, 2022

Is it a minimum goal, that FreshRSS should (mainly) work disabled JavaScript?

Indeed, for now, the main features are supposed to work with JavaScript disabled. I am not sure how long we will be able to do that, though

@Frenzie
Copy link
Copy Markdown
Member

Frenzie commented Jan 12, 2022

Depends a bit on how you define main features. ;-)

@math-GH
Copy link
Copy Markdown
Contributor Author

math-GH commented Jan 13, 2022

I changed it a little bit. Now it should work without JavaScript too.

@math-GH
Copy link
Copy Markdown
Contributor Author

math-GH commented Jan 13, 2022

This PR seems to be targeting disabled, and it might be an improvement there, but with standard settings all this extra padding would result in more distraction. The current look is close to ideal for that use case, except ideally it should say "Load_ing_ new articles*.

I do not understand correct what you mean with the extra padding. You will not see the padding and the button, when the next articles are loaded. Please check it.

Here you can see it (see the scroll bar on the right hand side. It jumps after loading)
scroll-auto-load

@Frenzie
Copy link
Copy Markdown
Member

Frenzie commented Jan 14, 2022

Of course you'll never see it if you scroll that slowly. ;-) Scroll faster and/or pretend your network is bad 3G or some such.

Edit: it's just a minor niggle, but I feel the current restrained indicator is slightly nicer. It doesn't really require any extra effort, just nice to have. ^_^

@math-GH math-GH marked this pull request as ready for review January 15, 2022 17:22
@math-GH math-GH marked this pull request as draft January 15, 2022 18:02
@math-GH math-GH marked this pull request as ready for review January 15, 2022 22:31
@math-GH math-GH added this to the 1.20.0 milestone Jan 15, 2022
@math-GH
Copy link
Copy Markdown
Contributor Author

math-GH commented Feb 4, 2022

What is left todo?

Copy link
Copy Markdown
Member

@Frenzie Frenzie left a comment

Choose a reason for hiding this comment

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

lgtm, although like I said I like the current visuals. :-)

@math-GH math-GH mentioned this pull request Feb 6, 2022
4 tasks
@Alkarex Alkarex merged commit dfee467 into FreshRSS:edge Feb 6, 2022
@math-GH math-GH deleted the clean-pagination branch February 6, 2022 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

UI 🎨 User Interfaces

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants