all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: 68680@debbugs.gnu.org
Cc: rekado@elephly.net, arunisaac@systemreboot.net,
	Maxim Cournoyer <maxim.cournoyer@gmail.com>
Subject: [bug#68680] [PATCH mumi v4 0/4] Add a button to copy a message Message-ID to the clipboard.
Date: Fri, 26 Jan 2024 12:13:17 -0500	[thread overview]
Message-ID: <20240126171358.20291-1-maxim.cournoyer@gmail.com> (raw)
In-Reply-To: <20240124021535.15946-1-maxim.cournoyer@gmail.com>

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





  parent reply	other threads:[~2024-01-26 17:15 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-24  2:15 [bug#68680] [PATCH mumi 0/3] Add a button to copy a message Message-ID to the clipboard Maxim Cournoyer
2024-01-24  2:20 ` [bug#68680] [PATCH mumi 1/3] README.org: Add new sections to help newcomers get started Maxim Cournoyer
2024-01-24  2:20   ` [bug#68680] [PATCH mumi 2/3] .gitignore: Register mumi.xapian and signing-key files Maxim Cournoyer
2024-01-24  2:20   ` [bug#68680] [PATCH mumi 3/3] html: Add a button to copy a Message-ID to the clipboard Maxim Cournoyer
2024-01-24  2:29 ` [bug#68680] [PATCH mumi 0/3] Add a button to copy a message " Maxim Cournoyer
2024-01-25 17:00 ` [bug#68680] [PATCH mumi v2 " Maxim Cournoyer
2024-01-25 17:00   ` [bug#68680] [PATCH mumi v2 1/3] README.org: Add new sections to help newcomers get started Maxim Cournoyer
2024-01-26 21:18     ` Arun Isaac
2024-01-27  3:55       ` Maxim Cournoyer
2024-01-25 17:00   ` [bug#68680] [PATCH mumi v2 2/3] .gitignore: Register mumi.xapian and signing-key files Maxim Cournoyer
2024-01-25 17:00   ` [bug#68680] [PATCH mumi v2 3/3] html: Add a button to copy a Message-ID to the clipboard Maxim Cournoyer
2024-01-26 21:21   ` [bug#68680] [PATCH mumi v2 0/3] Add a button to copy a message " Arun Isaac
2024-01-26 21:24     ` Arun Isaac
2024-01-27  3:57       ` bug#68680: " Maxim Cournoyer
2024-01-27  3:04     ` [bug#68680] " Maxim Cournoyer
2024-01-27 10:06       ` Arun Isaac
2024-01-27 12:20         ` Ricardo Wurmus
2024-01-29 23:41           ` Arun Isaac
2024-01-26  2:26 ` [bug#68680] [PATCH mumi v3 0/4] " Maxim Cournoyer
2024-01-26  2:26   ` [bug#68680] [PATCH mumi v3 1/4] README.org: Add new sections to help newcomers get started Maxim Cournoyer
2024-01-26  2:26   ` [bug#68680] [PATCH mumi v3 2/4] .gitignore: Register mumi.xapian and signing-key files Maxim Cournoyer
2024-01-26  2:26   ` [bug#68680] [PATCH mumi v3 3/4] Add .patman configuration file Maxim Cournoyer
2024-01-26  2:26   ` [bug#68680] [PATCH mumi v3 4/4] html: Add a button to copy a Message-ID to the clipboard Maxim Cournoyer
2024-01-26 17:13 ` Maxim Cournoyer [this message]
2024-01-26 17:13   ` [bug#68680] [PATCH mumi v4 1/4] README.org: Add new sections to help newcomers get started Maxim Cournoyer
2024-01-26 17:13   ` [bug#68680] [PATCH mumi v4 2/4] .gitignore: Register mumi.xapian and signing-key files Maxim Cournoyer
2024-01-26 17:13   ` [bug#68680] [PATCH mumi v4 3/4] Add .patman configuration file Maxim Cournoyer
2024-01-26 17:13   ` [bug#68680] [PATCH mumi v4 4/4] html: Add a button to copy a Message-ID to the clipboard Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240126171358.20291-1-maxim.cournoyer@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=68680@debbugs.gnu.org \
    --cc=arunisaac@systemreboot.net \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.