Add number of feeds in subscription view#7036
Conversation
| number_format((float)$n, $precision, '.', ' ') | ||
| ); | ||
| function format_number(int|float $n, int $precision = 0): string { | ||
| return number_format((float)$n, $precision, '.', ' '); // Thin non-breaking space |
There was a problem hiding this comment.
number_format does seem to be Unicode-compatible now
|
@math-GH Maybe you will want to fine tune a bit the style |
|
Fair point for the style being used in other contexts. But in a view, which purpose is to manage feeds in categories, showing their number seems like a reasonable basic expectation. So other style suggestions welcome. When categories are used to organise larger amounts of feeds, showing their numbers is interesting. I have for instance a case of organising many companies. P.S. I can for instance remember in the past having exported to OPML to get this information |
|
What if it gives more information than just the number of feeds?
=> 4 numbers + icon for each => give numbers in 1 rows below the headline, above the feed list (or have a fixed footer in each box, that includes the "add feeds" link too) And the "Display position" of the category (if given) could be useful too. |
|
Let me link #4672 that wants to improve the subscription page too |
|
@math-GH Sounds nice 👍🏻 |
|
The simple solution is to show the count in parentheses after the title, rather than right-aligned in a badge |
|
Number of unread articles, like in the main view |
Is it interesting in this view? |
I would say a bit interesting, yes, and also for consistency with the main view, but I do not really mind |
|
Would you feel like pushing some of your suggestions, @math-GH ?
I like it |
I would not expect that number here. Would it increase the used resource to calculate the number? In my opinion another number is more interesting if used: The |
No, this information comes for free in this view. I do not really mind, so if you have energy for polishing this PR, please go ahead as you believe is best |
|
I think making a list of display position numbers is a good idea. |
|
As stated here, I think it would be better to have a list of feeds and categories in a table where we can apply some filters (ex: show muted feeds, show feeds with an overriding configuration, ...). This list could have mode information than what is given in the current form. |
Sounds like an promising idea |



fix #7035