Put two icon buttons at the top right of the popup: capture the posting in this message, and add a new listing from scratch #3

Open
opened 2026-10-01 07:21:56 +00:00 by tiagoagueda · 0 comments
Owner

The list asks, for the popup: "In line with logo + title, on the top right, two icon buttons, one for capture current posting, another to create a new job listing from scratch."

The item was written for the browser extension and copied into this list. Read for Thunderbird: "the logo" is either of the extension's two buttons, the one on Thunderbird's toolbar and the one on the message being read, which open the same popup; and the "current posting" is the posting in the message on screen.

The skeleton's header is the logo and the title. The capture button is in the body, switched off, and the only icon button is the settings gear in the footer (button.icon in the shared src/style.css, whose margin-inline-start: auto means two of them need a wrapper).

What the extension should do

  • The capture button runs #1 on the message on screen. With no message on screen (the popup opened from the toolbar with a folder or another tab in front) it is switched off, and the popup says why in words. With several messages selected, it takes none: one message is one posting.
  • The from-scratch button opens Postulo's own "Add a listing" page, /listings/new/, in the person's web browser with windows.openDefaultBrowser (Thunderbird 85 and later). Their browser is where they are signed in to Postulo; a tab inside Thunderbird would ask them to sign in again.
  • Both are named in words (aria-label and tooltip), reached by keyboard in that order, at the end of the header (the left in a right-to-left language).
  • The markup and the styles match the browser extension's header (postulo/postulo-chromium#6), so the two popups look alike.

Decisions

  • The body's button. Recommended: the header's icon replaces it, and the body is free for the message on screen and the list (#4).
  • What "from scratch" opens. Recommended: Postulo's page, as above. The alternatives are the ones postulo/postulo-chromium#6 sets out and rejects: a form sent as a capture is refused by the server when there is no page to read, and creating a listing through the API needs the write scope, far more than a mail client should hold.
  • Not set up. Recommended: the from-scratch button is hidden until there is a Postulo to open.

Needs from the server

Nothing for the recommended route. Not filed on postulo/postulo.

Done when

  • The header shows the logo, the title and the two buttons, each named in words and reachable by keyboard.
  • The capture button captures the message on screen, and is off, with its reason, when there is none.
  • The from-scratch button opens Postulo's "Add a listing" page in the default browser.
  • test/i18n.test.mjs requires every new key in every language the extension ships, with identical placeholders: three today, more once #7 lands.

From the list of Thunderbird extension improvements of 2026-09-30.

The list asks, for the popup: "In line with logo + title, on the top right, two icon buttons, one for capture current posting, another to create a new job listing from scratch." The item was written for the browser extension and copied into this list. Read for Thunderbird: "the logo" is either of the extension's two buttons, the one on Thunderbird's toolbar and the one on the message being read, which open the same popup; and the "current posting" is the posting in the message on screen. The skeleton's header is the logo and the title. The capture button is in the body, switched off, and the only icon button is the settings gear in the footer (`button.icon` in the shared `src/style.css`, whose `margin-inline-start: auto` means two of them need a wrapper). ## What the extension should do - **The capture button** runs #1 on the message on screen. With no message on screen (the popup opened from the toolbar with a folder or another tab in front) it is switched off, and the popup says why in words. With several messages selected, it takes none: one message is one posting. - **The from-scratch button** opens Postulo's own "Add a listing" page, `/listings/new/`, in the person's web browser with `windows.openDefaultBrowser` (Thunderbird 85 and later). Their browser is where they are signed in to Postulo; a tab inside Thunderbird would ask them to sign in again. - Both are named in words (`aria-label` and tooltip), reached by keyboard in that order, at the end of the header (the left in a right-to-left language). - The markup and the styles match the browser extension's header (postulo/postulo-chromium#6), so the two popups look alike. ## Decisions - **The body's button.** Recommended: the header's icon replaces it, and the body is free for the message on screen and the list (#4). - **What "from scratch" opens.** Recommended: Postulo's page, as above. The alternatives are the ones postulo/postulo-chromium#6 sets out and rejects: a form sent as a capture is refused by the server when there is no page to read, and creating a listing through the API needs the `write` scope, far more than a mail client should hold. - **Not set up.** Recommended: the from-scratch button is hidden until there is a Postulo to open. ## Needs from the server Nothing for the recommended route. Not filed on postulo/postulo. ## Done when - The header shows the logo, the title and the two buttons, each named in words and reachable by keyboard. - The capture button captures the message on screen, and is off, with its reason, when there is none. - The from-scratch button opens Postulo's "Add a listing" page in the default browser. - `test/i18n.test.mjs` requires every new key in every language the extension ships, with identical placeholders: three today, more once #7 lands. From the list of Thunderbird extension improvements of 2026-09-30.
tiagoagueda changed title from Put two icon buttons at the top right of the popup: capture this posting, and add a new listing from scratch to Put two icon buttons at the top right of the popup: capture the posting in this message, and add a new listing from scratch 2026-10-01 09:36:12 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Postulo/postulo-thunderbird#3
No description provided.