@bobfrankston/rmfmail 1.1.93 → 1.1.94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.commitmsg CHANGED
@@ -1,20 +1,8 @@
1
- Search: index full message bodies, not just the preview snippet
1
+ Tabs: keep the strip visible with one tab so "+" is discoverable
2
2
 
3
- Body-text search only ever covered messages the user had opened. At sync
4
- time the FTS body_text was seeded with the short `preview` snippet; the
5
- full text was backfilled only when LocalStore.getMessage parsed a body
6
- on view and even that backfill keyed on the legacy messages.folder_id
7
- column via a (account,folder,uid) lookup that could miss the row, so a
8
- word buried in an opened message's body still wasn't found (Bob:
9
- "mcdade" in a message body, search found nothing).
10
-
11
- Two fixes:
12
- - updateFtsBody(rowId, text) keys on the FTS rowid (= messages.id)
13
- directly — no fragile folder lookup. store.ts passes envelope.id.
14
- - The IMAP sync path now indexes the full body into FTS right after
15
- upsertMessage. extractPreview already parsed `source`, so the body
16
- text is free — every synced message is body-searchable without the
17
- user opening it first.
18
-
19
- Existing already-synced messages stay preview-only until re-synced
20
- (mailx -repair re-indexes them).
3
+ The view-tab strip was hidden until a 2nd tab existed but with it
4
+ hidden there was no hint that tabs exist or that Ctrl+T creates one
5
+ (Bob: "there needs to be some indicator that ^t creates a tab"). The
6
+ strip now stays visible with a single tab, showing that tab plus the
7
+ "+" button; its tooltip names the Ctrl+T shortcut. Hidden only before
8
+ the very first tab is seeded.
@@ -5378,10 +5378,10 @@ function render() {
5378
5378
  const plus = document.createElement("button");
5379
5379
  plus.className = "view-tab-new";
5380
5380
  plus.textContent = "+";
5381
- plus.title = "New tab (All Inboxes)";
5381
+ plus.title = "New tab (Ctrl+T)";
5382
5382
  plus.addEventListener("click", () => openTab({ kind: "unified" }, "All Inboxes", true));
5383
5383
  stripEl.appendChild(plus);
5384
- stripEl.hidden = tabs.length < 2;
5384
+ stripEl.hidden = tabs.length < 1;
5385
5385
  }
5386
5386
  function initTabs(strip, apply) {
5387
5387
  stripEl = strip;