Message ID | 20240125170042.12022-1-maxim.cournoyer@gmail.com |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6866427BBE9; Thu, 25 Jan 2024 17:03:15 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id BB2F627BBE2 for <patchwork@mira.cbaines.net>; Thu, 25 Jan 2024 17:03:13 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1rT36g-0006Gg-DP; Thu, 25 Jan 2024 12:01:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rT360-0005eO-8t for guix-patches@gnu.org; Thu, 25 Jan 2024 12:01:00 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rT35z-0002nB-SA for guix-patches@gnu.org; Thu, 25 Jan 2024 12:00:55 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rT365-00036x-KG for guix-patches@gnu.org; Thu, 25 Jan 2024 12:01:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68680] [PATCH mumi v2 0/3] Add a button to copy a message Message-ID to the clipboard. References: <20240124021535.15946-1-maxim.cournoyer@gmail.com> In-Reply-To: <20240124021535.15946-1-maxim.cournoyer@gmail.com> Resent-From: Maxim Cournoyer <maxim.cournoyer@gmail.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Jan 2024 17:01:01 +0000 Resent-Message-ID: <handler.68680.B68680.170620205911935@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68680 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68680@debbugs.gnu.org Cc: rekado@elephly.net, arunisaac@systemreboot.net, Maxim Cournoyer <maxim.cournoyer@gmail.com> Received: via spool by 68680-submit@debbugs.gnu.org id=B68680.170620205911935 (code B ref 68680); Thu, 25 Jan 2024 17:01:01 +0000 Received: (at 68680) by debbugs.gnu.org; 25 Jan 2024 17:00:59 +0000 Received: from localhost ([127.0.0.1]:49070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1rT363-00036P-DG for submit@debbugs.gnu.org; Thu, 25 Jan 2024 12:00:59 -0500 Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729]:46591) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <maxim.cournoyer@gmail.com>) id 1rT362-00036A-5z for 68680@debbugs.gnu.org; Thu, 25 Jan 2024 12:00:58 -0500 Received: by mail-qk1-x729.google.com with SMTP id af79cd13be357-783c12f3b36so36762885a.1 for <68680@debbugs.gnu.org>; Thu, 25 Jan 2024 09:00:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706202046; x=1706806846; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=vPu1mxCvlTgf743quEHfB0xC6Tkov2+HZIn8YNhAgQg=; b=FhkzdqKGVqZdHNO6Qy3gaa5PpGUygEOBG6ZnoVND/jakr8Y2zSPuVe16tG1FkkvBmd o25p6mW3+/PGK0WOt2u8rH7UOSJ77ooGWhM4eHo3ndTT1MWsmWNbSZ1kE1OkEglyDfiN 1Gaja4HBRdNOejA9T7YJA62lQDfPxK/HIu2CNOtU/2VVcKdGr26sJQinwQ+65UgzlGCJ dAYfQDeDoDstTm6rrMLvvSb6sTBWy21F82A1ucF6XYZuRXyoyA43kuvo9Qy5cPF/JFcQ iINFep8ujZrh9pakgwIFTnq6hOV0hYiMtU3oJY2BX8iuECPolKbITXJqFc2gBnb59vMa /nwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706202046; x=1706806846; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vPu1mxCvlTgf743quEHfB0xC6Tkov2+HZIn8YNhAgQg=; b=fDdoLUSOMCW0/oDaC2+7AAo67ZI1dDxi1hq9U9Gh+5Aa/HywIVGitDbY7UgE0NR0/9 iaDquAHoheEWgBPc9TciBlBgKsdqjdadC/eNhCWoo9b6gsrs6bgKc7HPvHfWNRD/qVyF pegrbDRGXG327bpT2yf7hX2RwyKHOYrP7mximTcPbAdi/iYhoKH5q34upxW8eNLeLGKI jqFD4fFBuiQXuQyyaNEYmGSon16reyHdbYrGarzVpNhsk6zqe+GfwkPra9GDQpxJk4rz +RAD87uHMTtOY125trhu8qpCl1kpAsSqpVvHX7qQ0r+yQ+jQwtwJMotal+EJETKIWd58 sXPg== X-Gm-Message-State: AOJu0Yz+ysukqsQYAUkz0pG2z/5IpZ4Fde5xvbVfS/WQfzrsvUwsJ0el g1CBxuVQX2MBuiUxedWroSD02Fz6yVcZ74yUK3bvVgnk/R++4w9oz/LqbzwT X-Google-Smtp-Source: AGHT+IFPiFv0bXHSDjY7+dqTYgMgquRcAFLK8hJ9/nFV/FOYr1VBCyuD6eGdwdfajJEkyXzPPiAh8g== X-Received: by 2002:a05:620a:46a0:b0:783:c881:6852 with SMTP id bq32-20020a05620a46a000b00783c8816852mr62336qkb.138.1706202046260; Thu, 25 Jan 2024 09:00:46 -0800 (PST) Received: from localhost.localdomain (dsl-155-16.b2b2c.ca. [66.158.155.16]) by smtp.gmail.com with ESMTPSA id x11-20020ae9e90b000000b007832575779esm5194566qkf.52.2024.01.25.09.00.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 09:00:45 -0800 (PST) From: Maxim Cournoyer <maxim.cournoyer@gmail.com> Date: Thu, 25 Jan 2024 12:00:12 -0500 Message-ID: <20240125170042.12022-1-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
Add a button to copy a message Message-ID to the clipboard.
|
|
Message
Maxim Cournoyer
Jan. 25, 2024, 5 p.m. UTC
This series adds a new HTML element to each message header to easily copy the Message-ID of a message into the clipboard. It makes use of the (already included) Pico CSS library for tooltips and some new JavaScript event handler. The motivation was to make it easier to retrieve the Message-ID for passing it to the 'b4 shazam' command when applying long patches series. Changes in v2: - Add timestamp to CSS and JavaScript file names to force reload Maxim Cournoyer (3): README.org: Add new sections to help newcomers get started. .gitignore: Register mumi.xapian and signing-key files. html: Add a button to copy a Message-ID to the clipboard. .gitignore | 2 ++ README.org | 24 ++++++++++++++++++++++ assets/js/mumi.js | 31 ++++++++++++++++++++++++++++- assets/mumi.scss | 23 ++++++++++++++++++--- mumi/web/view/html.scm | 24 ++++++++++++++++------ mumi/web/view/utils.scm | 44 +++++++++++++++++++++++++++-------------- 6 files changed, 123 insertions(+), 25 deletions(-) base-commit: 025fc600f1cb4c73042bf920aee3e07d5fb9c53a
Comments
> Changes in v2: > - Add timestamp to CSS and JavaScript file names to force reload Do we need to have timestamps on the CSS and JS filenames? If we configured nginx to serve these static files, wouldn't caching and reloading be handled automatically via the ETag or Last-Modified headers?
Looks good to me otherwise. The patch running on berlin actually works. So, all is well, I guess!
Hi, Arun Isaac <arunisaac@systemreboot.net> writes: >> Changes in v2: >> - Add timestamp to CSS and JavaScript file names to force reload > > Do we need to have timestamps on the CSS and JS filenames? If we > configured nginx to serve these static files, wouldn't caching and > reloading be handled automatically via the ETag or Last-Modified > headers? I haven't looked at our nginx configuration, but currently the js and css files were not reloaded without this hack, no.
Hi Arun, Arun Isaac <arunisaac@systemreboot.net> writes: > Looks good to me otherwise. The patch running on berlin actually > works. So, all is well, I guess! Great! I'll bump mumi's version to 0.0.6 and update the package in Guix.
> I haven't looked at our nginx configuration, but currently the js and > css files were not reloaded without this hack, no. Ok, maybe for another time, then. But, we should handle this kind of thing in the nginx configuration of the mumi service. Thank you for the patchset. Much appreciated! :-)
Arun Isaac <arunisaac@systemreboot.net> writes: >> I haven't looked at our nginx configuration, but currently the js and >> css files were not reloaded without this hack, no. > > Ok, maybe for another time, then. But, we should handle this kind of > thing in the nginx configuration of the mumi service. I think we used to have (and maybe still have) a problem with caching files that are served from the store with a zero timestamp.
> I think we used to have (and maybe still have) a problem with caching > files that are served from the store with a zero timestamp. Oh my, I forgot about the store. That's a bummer. We should workaround this[1] with some other non-timestamp based caching strategy. Perhaps we can set a max-age using the Cache-Control header. https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching#fresh_and_stale_based_on_age [1]: later, and not part of this issue