Skip to content

v0.0.12 — Persian, one settings home, and the update button works

Choose a tag to compare

@aturzone aturzone released this 05 Sep 17:57
· 12 commits to main since this release

Install: download chevalet_note-0.0.12.xpi below, open about:addons, click the gear →
Install Add-on From File. Signed by Mozilla, so it stays installed. Installing over an
older version keeps every note.


Check for update no longer sticks on "Checking…"

The options page asked the background to request the host permission, passing a
fromClick: true flag in the belief that it carried the user gesture across the message. It
does not — so that request could never be granted. The page asks in its own click handler now,
and the button has a fifteen-second deadline, so it always comes back.

What made it hang forever is not established, and the code says so: the control did not
reproduce it under WebDriver. The fix is therefore two things — the correct flow, and a
deadline that makes the symptom impossible whatever the cause.

Persian, as a choice

The whole interface: the cabinet, every settings pane, the keyboard reference, the popup, the
options page, and a note's own toolbar and panel. About 230 strings, mirrored right to left —
the cabinet moves to the right, the drawer pulls flip, the scrollbar changes side.

English stays the default. Following the browser is an explicit option, not the starting
state. Cabinet → Settings → Backup → Language.

Before this, the Language setting did nothing at all inside the extension: t() asked
browser.i18n, which answers in Firefox's locale rather than ours. It appeared to work only
in the development harnesses.

One home for every setting

The options page carried its own copies of Where notes appear, Closing a tab, Keeping and
deleting, Backup and Language — every one also in the cabinet, laid out differently, so the two
disagreed about what the settings even were. The cabinet is the home now. The options page is a
way in, a version number, an update check, and two pieces of prose.

Where a note shows

Scope had five kinds and only one could ever exist. Three are a feature now, in a note's own
settings: this page, this whole site, every page. A note on the whole site appears
on every page of it, in the same place.

Hold Alt

The notes go translucent and stop taking the pointer, so you can read and click the page
underneath. A link under a note is clickable while Alt is held.

The rest

  • Edit a note's text from the cabinet — the last thing it could not do. The previous text
    is kept as a version, so History can put it back.
  • A dark theme that is graphite rather than black, with the menu changing when the theme
    does. Every text-on-surface pair in both themes is checked by a test.
  • Notes can have a name, separate from their text: in the note's header, in the cabinet, in
    search, and as a heading in an export.
  • Fixed: the per-domain note counts were clipped off the cabinet's edge; a hidden settings row
    still drew a rule; a dropdown on the options page looked exactly like a text field.

697 tests · content script 36.2 kB gz of a 38.0 budget · web-ext lint 0/0/0 · and four
harnesses that drive the real extension in a real Firefox: the pages, a page with notes on it,
persistence across a reload, and hold-Alt. Each has a control that fails when the bug is put
back.