From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id oJ3bHajos2XAIQEAqHPOHw:P1 (envelope-from ) for ; Fri, 26 Jan 2024 18:15:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id oJ3bHajos2XAIQEAqHPOHw (envelope-from ) for ; Fri, 26 Jan 2024 18:15:20 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=XJOZx36b; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706289320; a=rsa-sha256; cv=none; b=db0EhXEQ3Wsx/iaT0oP/KsSQlQsYWuxJ13AA9pATyud9XFLGDGwItNk0ZlKlvq/tFy+6DW 3c8Dy4tO5IXUFj86D4z/6+2HSe9l8+qWpbfqpp/T2FNN6UniMlsk5Gx0DkFlXDhAD7et6P x/CEJDyEX3PyMHlAxLF+h1AYW9xzEu36qeBrD0FCZ/kRvQANntdxsDraU8wYoW80RCTpTe cP8oWa62jkVIH1LSnxR3wCMWg/QgxnrJedRw3m9wdEWUMzB3Z0dBF2d5ciF/iAepJtYFY1 xjD0XU50RE4lBdoNA7egzIPVZBA9Dm+AI8IP5dtxcBrC2nTVlLCk63s8WNOubg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=XJOZx36b; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706289320; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Z4cpVf2FG0XxplIezE+rDx7+To9gr0GhZULIqfqJeXE=; b=Na0ilZPmyOGclDlhAlHYn6L1wiPLh42MVEKUi8mdpbgGsTcFzL8tABCnrO6VzpUAb8o4XF NQhr2nvwGECTZQuG3nqS51TKW6XpKJ+gslFVlYEipXKqmQ6WoOWpmZymnhNEA6+afceiNY WE+074tf6JFwpV8Ntz10qml/xxCFjhwa7H9tzQjEruJgxirL+GJuv+Kn50igSnxnjdOc/g Pp9MoGmnEU81SB1IfT79ATHLVKQsADi3ohiwPx8OwhQ5AvnofRSkGGUjnf7JTEbzi8SEf3 ckAM3watyJJHyfpYkppYV2p0PvGCvMfeG2x8DtG8/YdcVOV0fGrtDC8S1UTdjA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5BB39FC0A for ; Fri, 26 Jan 2024 18:15:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTPn8-0000df-UQ; Fri, 26 Jan 2024 12:14:58 -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 ) id 1rTPn6-0000cY-0p for guix-patches@gnu.org; Fri, 26 Jan 2024 12:14:56 -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 ) id 1rTPn5-0004oc-Ol for guix-patches@gnu.org; Fri, 26 Jan 2024 12:14:55 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rTPnC-0004DV-9K for guix-patches@gnu.org; Fri, 26 Jan 2024 12:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68680] [PATCH mumi v4 0/4] 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 Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 26 Jan 2024 17:15:02 +0000 Resent-Message-ID: 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 Received: via spool by 68680-submit@debbugs.gnu.org id=B68680.170628926216051 (code B ref 68680); Fri, 26 Jan 2024 17:15:02 +0000 Received: (at 68680) by debbugs.gnu.org; 26 Jan 2024 17:14:22 +0000 Received: from localhost ([127.0.0.1]:52587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTPmY-0004Al-7X for submit@debbugs.gnu.org; Fri, 26 Jan 2024 12:14:22 -0500 Received: from mail-qv1-xf29.google.com ([2607:f8b0:4864:20::f29]:52313) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTPmQ-00049m-LP for 68680@debbugs.gnu.org; Fri, 26 Jan 2024 12:14:16 -0500 Received: by mail-qv1-xf29.google.com with SMTP id 6a1803df08f44-686a92a8661so4899746d6.0 for <68680@debbugs.gnu.org>; Fri, 26 Jan 2024 09:14:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706289242; x=1706894042; 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=Z4cpVf2FG0XxplIezE+rDx7+To9gr0GhZULIqfqJeXE=; b=XJOZx36bqnSujHy+W8n/sVTS0v6njfiZGOQJj+Ahzx+5D58s9cj34lCIkVld9munTB L8cda2+22qm/FeFw6CaogkI7vQZAFbEnM34Rb9ouw2kNdjVwrdD7NdoCeNIYUXO0O9nY fG7oXYkNKGh7Rj9pfHD/VKHiy1SQbaTC7KN0Hp8/R+xDdaxSZOKHT8mJJbrvGNOAi73Z IP7DJV+erXew1csP7SkFnsDnxv8N1iZ8oDvob/eANmjwaYHXJOkB1zT+csHGcvlB/uqd 2hd7yBCjMIzkgB1gmCkY/Yswk7gJskXIrf6qtgVFIkpFvTB2HSTi7eAUqiPSJWurXoLB TMOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706289242; x=1706894042; 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=Z4cpVf2FG0XxplIezE+rDx7+To9gr0GhZULIqfqJeXE=; b=mAG4z8+cly/XSAVu+eQXQ4hw8xyiw+n34fsV22nFNSYH2LRDFusbPKlyTFcb0DSuTq /cQX9uJgjVgX3Rwi+0YJjCxgMVjVU5EZZKJWpfzUP2UbpqVq056v+la23Lkj6vXQOWE7 n4qNlZ7puMA84mWhlZ6rmFWOVtK86nnnWW2iZ6peM08L/G6dQj/iWhBYz5rC6rRsv+82 VVIdaXubUTLocNOvgjZW5/IqFZw4KWDeYnxpbbvXXsfff6KUWF5ijbTw85Y1vNyJvPsG tJI9NrnOWQmwS8ya3Fmrqq6zmspc0+xaUWrGVDOeT1q+zORPkEe6br8dOz5iKs6V+xoA Lo+A== X-Gm-Message-State: AOJu0YxRsX+PltsMfJmbhdSqUBfgQtsY4qElb8QXeV3i13tXBU1A3lFB pF5z14NNIvOb5w9miefRQas/b/oHBa/eLY1DCZ9mqL4O50wVlBBsV7vDEtZ/ X-Google-Smtp-Source: AGHT+IF4Qg1+ao7fFvj73CqM5ah5yxtZSZQ33s3rgT1WssjyHmD8P4PLJB4Hnyl7rhZHsDgNVgC7hQ== X-Received: by 2002:a05:6214:f03:b0:685:4c05:d7a9 with SMTP id gw3-20020a0562140f0300b006854c05d7a9mr222099qvb.3.1706289241898; Fri, 26 Jan 2024 09:14:01 -0800 (PST) Received: from localhost.localdomain (dsl-153-164.b2b2c.ca. [66.158.153.164]) by smtp.gmail.com with ESMTPSA id ld8-20020a056214418800b006854ec9dbabsm668080qvb.92.2024.01.26.09.14.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 09:14:01 -0800 (PST) From: Maxim Cournoyer Date: Fri, 26 Jan 2024 12:13:17 -0500 Message-ID: <20240126171358.20291-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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Spam-Score: -3.57 X-Migadu-Queue-Id: 5BB39FC0A X-Migadu-Spam-Score: -3.57 X-TUID: NG/u0XCUezdv 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. I've deployed it on Berlin, so anyone can try it already and provide feedback. Changes in v4: - Set icon sizes via CSS instead of HTML, which improves layout Changes in v3: - Allow using the new copy button via the keyboard - Register event handlers on all copy message-id buttons - Move download icon sizes to CSS to resolve warning in Firefox - Add guard inside download button event to ensure only one event runs at a time, avoiding tooltip getting stuck on 'Copied!' - Use a class name instead of a unique ID for the message-id buttons - Register handlers to every message-id buttons Changes in v2: - Add timestamp to CSS and JavaScript file names to force reload Maxim Cournoyer (4): README.org: Add new sections to help newcomers get started. .gitignore: Register mumi.xapian and signing-key files. Add .patman configuration file. html: Add a button to copy a Message-ID to the clipboard. .gitignore | 2 ++ .patman | 7 +++++ README.org | 24 +++++++++++++++++ assets/js/mumi.js | 59 ++++++++++++++++++++++++++++++++++++++++- assets/mumi.scss | 31 +++++++++++++++++++--- mumi/web/view/html.scm | 24 ++++++++++++----- mumi/web/view/utils.scm | 40 +++++++++++++++++----------- 7 files changed, 162 insertions(+), 25 deletions(-) create mode 100644 .patman base-commit: 025fc600f1cb4c73042bf920aee3e07d5fb9c53a -- 2.41.0