user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* RFE: remove "- mbox.gz / Atom" from thread listing
@ 2021-08-16 15:44 Konstantin Ryabitsev
  2021-08-16 23:35 ` [PATCH] view: remove mbox.gz and Atom from topic view Eric Wong
  0 siblings, 1 reply; 4+ messages in thread
From: Konstantin Ryabitsev @ 2021-08-16 15:44 UTC (permalink / raw)
  To: meta

Hello:

I was playing with mobile view and I think adding "- mbox.gz / Atom" on the
thread listing page is both unnecessary and makes the output too busy. E.g.
compare:

    [PATCH v2] drm: avoid races with
    modesetting rights
     2021-08-16 15:20 UTC  (2+ messages)
    - mbox.gz / Atom
    ` [Intel-gfx] ✗ Fi.CI.IGT: failure for "

    [GIT PULL] mtd: Changes for 5.14-rc7
    2021-08-16 15:20 UTC  - mbox.gz / Atom

    [PATCH 0/2] gitlab: prepare for limited
    CI minutes by not running by default
     2021-08-16 15:16 UTC  (7+ messages)
    - mbox.gz / Atom
    ` [PATCH 2/2] gitlab: don't run CI jobs
    by default on push to user forks

vs:

    [PATCH v2] drm: avoid races with
    modesetting rights
     2021-08-16 15:20 UTC  (2+ messages)
    ` [Intel-gfx] ✗ Fi.CI.IGT: failure for "

    [GIT PULL] mtd: Changes for 5.14-rc7
     2021-08-16 15:20 UTC

    [PATCH 0/2] gitlab: prepare for limited
    CI minutes by not running by default
     2021-08-16 15:16 UTC  (7+ messages)
    ` [PATCH 2/2] gitlab: don't run CI jobs
    by default on push to user forks

This is especially the case due to blue link highlights of "mbox.gz / Atom"
that break up visual flow of the topic and make it look confusing.

- I don't think most people would choose to download mbox.gz or click on the
  "Atom" link from the thread listing page -- there is a thread view for this
  purpose.
- Removing this would save quite a few bytes from being transferred
  unnecessarily and speed up page rendering.

Best regards,
-K

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] view: remove mbox.gz and Atom from topic view
  2021-08-16 15:44 RFE: remove "- mbox.gz / Atom" from thread listing Konstantin Ryabitsev
@ 2021-08-16 23:35 ` Eric Wong
  2021-08-17  0:26   ` [SQUASH] fix tests for missing t.mbox.gz links Eric Wong
  2021-08-17 14:07   ` [PATCH] view: remove mbox.gz and Atom from topic view Konstantin Ryabitsev
  0 siblings, 2 replies; 4+ messages in thread
From: Eric Wong @ 2021-08-16 23:35 UTC (permalink / raw)
  To: Konstantin Ryabitsev; +Cc: meta

Konstantin Ryabitsev <konstantin@linuxfoundation.org> wrote:
> - I don't think most people would choose to download mbox.gz or click on the
>   "Atom" link from the thread listing page -- there is a thread view for this
>   purpose.

Agreed, I don't think I've ever used them from the topic page...

Fwiw, I use mbox.gz downloads from per-topic pages, but I'm not
sure I've ever used Atom feeds outside of testing.

> - Removing this would save quite a few bytes from being transferred
>   unnecessarily and speed up page rendering.

Probably, the Message-ID being repeated ought to be good for
compressibility, but not having it at all would be more
efficient.

------8<-----
Subject: [PATCH] view: remove mbox.gz and Atom from topic view

This declutters the topic view since these links seem rarely
used.  Atom and mbox.gz links probably make most sense when
users have read the HTML and decide the topic is worth following
or downloading.

Reported-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Link: https://public-inbox.org/meta/20210816154444.sj3ks2sikq3x2ywx@nitro.local/
---
 lib/PublicInbox/View.pm | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index c80a675e..17d38302 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -1154,10 +1154,8 @@ sub dump_topics {
 			$anchor = '#t'; # thread skeleton
 		}
 
-		my $mbox = qq(<a\nhref="$href/t.mbox.gz">mbox.gz</a>);
-		my $atom = qq(<a\nhref="$href/t.atom">Atom</a>);
 		my $s = "<a\nhref=\"$href/T/$anchor\">$top_subj</a>\n" .
-			" $ds UTC $n - $mbox / $atom\n";
+			" $ds UTC $n\n";
 		for (my $i = 0; $i < scalar(@extra); $i += 2) {
 			my $level = $extra[$i];
 			my $subj = $extra[$i + 1]; # already normalized

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [SQUASH] fix tests for missing t.mbox.gz links
  2021-08-16 23:35 ` [PATCH] view: remove mbox.gz and Atom from topic view Eric Wong
@ 2021-08-17  0:26   ` Eric Wong
  2021-08-17 14:07   ` [PATCH] view: remove mbox.gz and Atom from topic view Konstantin Ryabitsev
  1 sibling, 0 replies; 4+ messages in thread
From: Eric Wong @ 2021-08-17  0:26 UTC (permalink / raw)
  To: meta; +Cc: Konstantin Ryabitsev

:x
---
 t/psgi_bad_mids.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/psgi_bad_mids.t b/t/psgi_bad_mids.t
index f92e4f97..8e531b54 100644
--- a/t/psgi_bad_mids.t
+++ b/t/psgi_bad_mids.t
@@ -53,7 +53,7 @@ test_psgi(sub { $www->call(@_) }, sub {
 		ok(index($raw, $mid) < 0, "escaped $mid");
 	}
 
-	my (@xmids) = ($raw =~ m!\bhref="([^"]+)/t\.mbox\.gz"!sg);
+	my (@xmids) = ($raw =~ m!\bhref="([^"]+?)/T/#u"!sg);
 	is(scalar(@xmids), scalar(@mids),
 		'got escaped links to all messages');
 

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] view: remove mbox.gz and Atom from topic view
  2021-08-16 23:35 ` [PATCH] view: remove mbox.gz and Atom from topic view Eric Wong
  2021-08-17  0:26   ` [SQUASH] fix tests for missing t.mbox.gz links Eric Wong
@ 2021-08-17 14:07   ` Konstantin Ryabitsev
  1 sibling, 0 replies; 4+ messages in thread
From: Konstantin Ryabitsev @ 2021-08-17 14:07 UTC (permalink / raw)
  To: Eric Wong; +Cc: meta

On Mon, Aug 16, 2021 at 11:35:20PM +0000, Eric Wong wrote:
> > - I don't think most people would choose to download mbox.gz or click on the
> >   "Atom" link from the thread listing page -- there is a thread view for this
> >   purpose.
> 
> Agreed, I don't think I've ever used them from the topic page...
> 
> Fwiw, I use mbox.gz downloads from per-topic pages, but I'm not
> sure I've ever used Atom feeds outside of testing.
> 
> > - Removing this would save quite a few bytes from being transferred
> >   unnecessarily and speed up page rendering.
> 
> Probably, the Message-ID being repeated ought to be good for
> compressibility, but not having it at all would be more
> efficient.

Looking good on x-lore!
Thanks!

-K

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-17 14:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-16 15:44 RFE: remove "- mbox.gz / Atom" from thread listing Konstantin Ryabitsev
2021-08-16 23:35 ` [PATCH] view: remove mbox.gz and Atom from topic view Eric Wong
2021-08-17  0:26   ` [SQUASH] fix tests for missing t.mbox.gz links Eric Wong
2021-08-17 14:07   ` [PATCH] view: remove mbox.gz and Atom from topic view Konstantin Ryabitsev

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).