@bobfrankston/rmfmail 1.0.548 → 1.0.550

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.
Files changed (32) hide show
  1. package/client/app.js +7 -4
  2. package/client/app.js.map +1 -1
  3. package/client/app.ts +10 -7
  4. package/client/compose/compose.js +2 -2
  5. package/client/compose/compose.js.map +1 -1
  6. package/client/compose/compose.ts +2 -2
  7. package/package.json +3 -3
  8. package/packages/mailx-imap/index.d.ts +9 -1
  9. package/packages/mailx-imap/index.d.ts.map +1 -1
  10. package/packages/mailx-imap/index.js +92 -51
  11. package/packages/mailx-imap/index.js.map +1 -1
  12. package/packages/mailx-imap/index.ts +83 -55
  13. package/packages/mailx-imap/package-lock.json +2 -2
  14. package/packages/mailx-imap/package.json +1 -1
  15. package/packages/mailx-service/local-store.d.ts.map +1 -1
  16. package/packages/mailx-service/local-store.js +5 -1
  17. package/packages/mailx-service/local-store.js.map +1 -1
  18. package/packages/mailx-service/local-store.ts +5 -1
  19. package/packages/mailx-service/reconciler.d.ts +28 -0
  20. package/packages/mailx-service/reconciler.d.ts.map +1 -1
  21. package/packages/mailx-service/reconciler.js +70 -2
  22. package/packages/mailx-service/reconciler.js.map +1 -1
  23. package/packages/mailx-service/reconciler.ts +81 -2
  24. package/packages/mailx-settings/docs/contacts.md +6 -1
  25. package/packages/mailx-settings/docs/search.md +99 -0
  26. package/packages/mailx-settings/package.json +1 -1
  27. package/packages/mailx-store/file-store.d.ts +6 -0
  28. package/packages/mailx-store/file-store.d.ts.map +1 -1
  29. package/packages/mailx-store/file-store.js +8 -0
  30. package/packages/mailx-store/file-store.js.map +1 -1
  31. package/packages/mailx-store/file-store.ts +9 -0
  32. package/packages/mailx-store/package.json +1 -1
package/client/app.js CHANGED
@@ -2044,13 +2044,16 @@ onWsEvent((event) => {
2044
2044
  case "syncActionFailed": {
2045
2045
  // Surface sync failures (move/delete/flag not applied on server)
2046
2046
  // so the user knows local-first actions haven't propagated yet.
2047
- // Status bar gets a short hint; the alert banner surfaces the
2048
- // detail with the action verb. Coalesces by `key=conflict` so
2049
- // multiple failures don't stack last one wins, dismissable.
2047
+ // Status-bar hint always; banner only when the service is telling
2048
+ // us it has GIVEN UP (message starts with "Gave up"). A full sync
2049
+ // over a flaky link fires syncActionFailed once per attempt, and
2050
+ // a banner per attempt floods DOM work on the WebView main thread.
2050
2051
  const action = event.action === "move" ? "Move" : event.action === "delete" ? "Delete" : event.action;
2051
2052
  if (statusSync)
2052
2053
  statusSync.textContent = `Sync failed: ${action}`;
2053
- showAlert(`Couldn't ${action.toLowerCase()} message on the server: ${event.error}. Local change kept; the reconciler will retry.`, "conflict");
2054
+ if (typeof event.error === "string" && /gave up/i.test(event.error)) {
2055
+ showAlert(`Couldn't ${action.toLowerCase()} message on the server after retries: ${event.error}. Local change kept.`, "conflict");
2056
+ }
2054
2057
  break;
2055
2058
  }
2056
2059
  case "reload":