Compare commits

...

138 Commits

Author SHA1 Message Date
cc585cc63f Merge pull request 'chore(deps): lock file maintenance' (#214) from renovate/lock-file-maintenance into master
All checks were successful
Continuous integration / Check (push) Successful in 55s
Continuous integration / Test Suite (push) Successful in 1m17s
Continuous integration / Trunk (push) Successful in 1m3s
Continuous integration / Rustfmt (push) Successful in 1m29s
Continuous integration / build (push) Successful in 1m28s
Continuous integration / Disallow unused dependencies (push) Successful in 5m3s
2025-12-15 09:47:04 -08:00
293f90fde5 chore(deps): lock file maintenance
All checks were successful
Continuous integration / Check (push) Successful in 1m3s
Continuous integration / Test Suite (push) Successful in 1m38s
Continuous integration / Trunk (push) Successful in 1m13s
Continuous integration / Rustfmt (push) Successful in 41s
Continuous integration / build (push) Successful in 1m36s
Continuous integration / Disallow unused dependencies (push) Successful in 2m17s
2025-12-15 17:17:40 +00:00
a06e4b3454 Merge pull request 'chore(deps): update rust crate reqwest to v0.12.26' (#215) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Check (push) Successful in 56s
Continuous integration / Test Suite (push) Successful in 1m22s
Continuous integration / Rustfmt (push) Successful in 40s
Continuous integration / build (push) Successful in 1m36s
Continuous integration / Disallow unused dependencies (push) Successful in 2m27s
Continuous integration / Trunk (push) Successful in 21m2s
2025-12-15 09:16:55 -08:00
6e5145e21b chore(deps): update rust crate reqwest to v0.12.26
All checks were successful
Continuous integration / Check (push) Successful in 56s
Continuous integration / Test Suite (push) Successful in 1m38s
Continuous integration / Trunk (push) Successful in 1m5s
Continuous integration / Rustfmt (push) Successful in 1m30s
Continuous integration / build (push) Successful in 2m18s
Continuous integration / Disallow unused dependencies (push) Successful in 5m6s
2025-12-15 16:46:42 +00:00
d41f3e9fd1 Merge pull request 'chore(deps): lock file maintenance' (#213) from renovate/lock-file-maintenance into master
All checks were successful
Continuous integration / Check (push) Successful in 58s
Continuous integration / Test Suite (push) Successful in 1m37s
Continuous integration / Rustfmt (push) Successful in 54s
Continuous integration / Trunk (push) Successful in 2m3s
Continuous integration / build (push) Successful in 1m42s
Continuous integration / Disallow unused dependencies (push) Successful in 5m4s
2025-12-14 16:47:42 -08:00
5519018043 chore(deps): lock file maintenance
All checks were successful
Continuous integration / Check (push) Successful in 1m15s
Continuous integration / Test Suite (push) Successful in 2m23s
Continuous integration / Rustfmt (push) Successful in 1m16s
Continuous integration / build (push) Successful in 2m42s
Continuous integration / Disallow unused dependencies (push) Successful in 2m24s
Continuous integration / Trunk (push) Successful in 21m15s
2025-12-15 00:02:24 +00:00
e3121219b6 chore: Release
All checks were successful
Continuous integration / Check (push) Successful in 1m3s
Continuous integration / Test Suite (push) Successful in 1m19s
Continuous integration / Trunk (push) Successful in 1m2s
Continuous integration / Rustfmt (push) Successful in 49s
Continuous integration / Disallow unused dependencies (push) Successful in 2m26s
Continuous integration / build (push) Successful in 3m12s
2025-12-14 09:14:13 -08:00
7272bbb6b0 web: text overflow at 2 lines for subject and authors 2025-12-14 09:13:48 -08:00
dc741f421b Merge pull request 'fix(deps): update all non-major dependencies' (#212) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Check (push) Successful in 1m26s
Continuous integration / Trunk (push) Successful in 1m11s
Continuous integration / Test Suite (push) Successful in 3m17s
Continuous integration / Rustfmt (push) Successful in 42s
Continuous integration / Disallow unused dependencies (push) Successful in 2m25s
Continuous integration / build (push) Successful in 7m21s
2025-12-08 13:17:00 -08:00
69d3b8a210 fix(deps): update all non-major dependencies
All checks were successful
Continuous integration / Check (push) Successful in 2m9s
Continuous integration / Test Suite (push) Successful in 2m50s
Continuous integration / Rustfmt (push) Successful in 1m27s
Continuous integration / build (push) Successful in 3m50s
Continuous integration / Disallow unused dependencies (push) Successful in 2m33s
Continuous integration / Trunk (push) Successful in 20m56s
2025-12-08 20:32:37 +00:00
f5c4067291 Merge pull request 'chore(deps): lock file maintenance' (#211) from renovate/lock-file-maintenance into master
All checks were successful
Continuous integration / Check (push) Successful in 1m28s
Continuous integration / Test Suite (push) Successful in 2m17s
Continuous integration / Trunk (push) Successful in 7m39s
Continuous integration / Rustfmt (push) Successful in 1m29s
Continuous integration / build (push) Successful in 3m25s
Continuous integration / Disallow unused dependencies (push) Successful in 5m7s
2025-12-07 16:32:06 -08:00
930a45cbad chore(deps): lock file maintenance
All checks were successful
Continuous integration / Check (push) Successful in 2m21s
Continuous integration / Trunk (push) Successful in 2m41s
Continuous integration / Test Suite (push) Successful in 4m28s
Continuous integration / Rustfmt (push) Successful in 1m30s
Continuous integration / build (push) Successful in 4m42s
Continuous integration / Disallow unused dependencies (push) Successful in 5m7s
2025-12-08 00:02:19 +00:00
ef612c0d4f Merge pull request 'fix(deps): update rust crate scraper to 0.25.0' (#210) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Check (push) Successful in 1m59s
Continuous integration / Trunk (push) Successful in 2m8s
Continuous integration / Test Suite (push) Successful in 4m51s
Continuous integration / Rustfmt (push) Successful in 1m30s
Continuous integration / build (push) Successful in 2m37s
Continuous integration / Disallow unused dependencies (push) Successful in 5m5s
2025-12-07 14:46:27 -08:00
723e9c5ff5 fix(deps): update rust crate scraper to 0.25.0
All checks were successful
Continuous integration / Check (push) Successful in 2m57s
Continuous integration / Test Suite (push) Successful in 2m13s
Continuous integration / Rustfmt (push) Successful in 43s
Continuous integration / build (push) Successful in 2m15s
Continuous integration / Disallow unused dependencies (push) Successful in 2m44s
Continuous integration / Trunk (push) Successful in 21m9s
2025-12-07 22:16:57 +00:00
0fdcfabfbe Merge pull request 'chore(deps): update rust crate html2text to v0.16.5' (#209) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Check (push) Successful in 1m57s
Continuous integration / Test Suite (push) Successful in 2m50s
Continuous integration / Trunk (push) Successful in 1m17s
Continuous integration / Rustfmt (push) Successful in 1m28s
Continuous integration / build (push) Successful in 2m16s
Continuous integration / Disallow unused dependencies (push) Successful in 5m1s
2025-12-06 00:31:45 -08:00
b6c3f014cb chore(deps): update rust crate html2text to v0.16.5
All checks were successful
Continuous integration / Check (push) Successful in 1m30s
Continuous integration / Test Suite (push) Successful in 2m50s
Continuous integration / Rustfmt (push) Successful in 1m31s
Continuous integration / Trunk (push) Successful in 8m56s
Continuous integration / build (push) Successful in 6m26s
Continuous integration / Disallow unused dependencies (push) Successful in 2m52s
2025-12-06 08:17:07 +00:00
1937bb4c99 Merge pull request 'chore(deps): update rust crate flate2 to v1.1.7' (#208) from renovate/all-minor-patch into master
Some checks failed
Continuous integration / Check (push) Failing after 12s
Continuous integration / Trunk (push) Failing after 11s
Continuous integration / Rustfmt (push) Failing after 12s
Continuous integration / build (push) Failing after 11s
Continuous integration / Disallow unused dependencies (push) Failing after 11s
Continuous integration / Test Suite (push) Successful in 2m19s
2025-12-05 02:31:21 -08:00
cdd5d9befc chore(deps): update rust crate flate2 to v1.1.7
All checks were successful
Continuous integration / Check (push) Successful in 1m43s
Continuous integration / Trunk (push) Successful in 1m9s
Continuous integration / Rustfmt (push) Successful in 44s
Continuous integration / build (push) Successful in 2m32s
Continuous integration / Disallow unused dependencies (push) Successful in 2m18s
Continuous integration / Test Suite (push) Successful in 9m35s
2025-12-05 10:16:24 +00:00
232a14fd96 Merge pull request 'chore(deps): update rust crate log to v0.4.29' (#206) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Check (push) Successful in 1m19s
Continuous integration / Test Suite (push) Successful in 2m6s
Continuous integration / Trunk (push) Successful in 1m4s
Continuous integration / Rustfmt (push) Successful in 43s
Continuous integration / build (push) Successful in 2m23s
Continuous integration / Disallow unused dependencies (push) Successful in 2m28s
2025-12-02 14:46:36 -08:00
3038c98a7a chore(deps): update rust crate log to v0.4.29
All checks were successful
Continuous integration / Check (push) Successful in 1m31s
Continuous integration / Test Suite (push) Successful in 3m40s
Continuous integration / Trunk (push) Successful in 1m32s
Continuous integration / Rustfmt (push) Successful in 46s
Continuous integration / build (push) Successful in 4m34s
Continuous integration / Disallow unused dependencies (push) Successful in 2m33s
2025-12-02 22:16:32 +00:00
4dd240c358 Merge pull request 'chore(deps): update rust crate uuid to v1.19.0' (#205) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Check (push) Successful in 1m12s
Continuous integration / Test Suite (push) Successful in 2m58s
Continuous integration / Trunk (push) Successful in 1m13s
Continuous integration / Rustfmt (push) Successful in 41s
Continuous integration / build (push) Successful in 3m4s
Continuous integration / Disallow unused dependencies (push) Successful in 2m22s
2025-12-01 19:31:17 -08:00
c66e876ab7 chore(deps): update rust crate uuid to v1.19.0
All checks were successful
Continuous integration / Check (push) Successful in 1m28s
Continuous integration / Test Suite (push) Successful in 2m13s
Continuous integration / Trunk (push) Successful in 7m37s
Continuous integration / build (push) Successful in 2m3s
Continuous integration / Disallow unused dependencies (push) Successful in 2m35s
Continuous integration / Rustfmt (push) Successful in 43s
2025-12-02 02:46:26 +00:00
a7762595fa Merge pull request 'chore(deps): lock file maintenance' (#204) from renovate/lock-file-maintenance into master
All checks were successful
Continuous integration / Check (push) Successful in 1m20s
Continuous integration / Test Suite (push) Successful in 2m30s
Continuous integration / Trunk (push) Successful in 7m27s
Continuous integration / Rustfmt (push) Successful in 42s
Continuous integration / build (push) Successful in 2m28s
Continuous integration / Disallow unused dependencies (push) Successful in 2m24s
2025-11-30 16:46:57 -08:00
1ac471dfe7 chore(deps): lock file maintenance
All checks were successful
Continuous integration / Check (push) Successful in 1m46s
Continuous integration / Test Suite (push) Successful in 3m26s
Continuous integration / Trunk (push) Successful in 7m52s
Continuous integration / Rustfmt (push) Successful in 42s
Continuous integration / build (push) Successful in 3m26s
Continuous integration / Disallow unused dependencies (push) Successful in 2m20s
2025-12-01 00:01:57 +00:00
72a549ea0f Merge pull request 'chore(deps): update rust crate tracing to v0.1.43' (#203) from renovate/tokio-tracing-monorepo into master
All checks were successful
Continuous integration / Check (push) Successful in 1m46s
Continuous integration / Test Suite (push) Successful in 2m49s
Continuous integration / Trunk (push) Successful in 1m8s
Continuous integration / Rustfmt (push) Successful in 56s
Continuous integration / build (push) Successful in 2m18s
Continuous integration / Disallow unused dependencies (push) Successful in 2m58s
2025-11-28 01:31:57 -08:00
878afd695f chore(deps): update rust crate tracing to v0.1.43
All checks were successful
Continuous integration / Check (push) Successful in 1m29s
Continuous integration / Test Suite (push) Successful in 3m3s
Continuous integration / Trunk (push) Successful in 7m58s
Continuous integration / Rustfmt (push) Successful in 53s
Continuous integration / build (push) Successful in 2m53s
Continuous integration / Disallow unused dependencies (push) Successful in 2m20s
2025-11-28 09:01:41 +00:00
50b23731df Merge pull request 'chore(deps): update rust crate xtracing to v0.3.3' (#202) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Check (push) Successful in 1m14s
Continuous integration / Test Suite (push) Successful in 1m57s
Continuous integration / Trunk (push) Successful in 2m7s
Continuous integration / Rustfmt (push) Successful in 46s
Continuous integration / build (push) Successful in 2m17s
Continuous integration / Disallow unused dependencies (push) Successful in 2m50s
2025-11-27 16:18:03 -08:00
95df6b54ea chore(deps): update rust crate xtracing to v0.3.3
All checks were successful
Continuous integration / Check (push) Successful in 1m13s
Continuous integration / Test Suite (push) Successful in 2m29s
Continuous integration / Trunk (push) Successful in 1m8s
Continuous integration / Rustfmt (push) Successful in 44s
Continuous integration / build (push) Successful in 3m0s
Continuous integration / Disallow unused dependencies (push) Successful in 2m50s
2025-11-27 23:32:15 +00:00
ee626eb631 chore: Release
All checks were successful
Continuous integration / Check (push) Successful in 1m21s
Continuous integration / Test Suite (push) Successful in 2m5s
Continuous integration / Trunk (push) Successful in 58s
Continuous integration / Rustfmt (push) Successful in 43s
Continuous integration / build (push) Successful in 1m57s
Continuous integration / Disallow unused dependencies (push) Successful in 2m26s
2025-11-27 10:11:04 -08:00
26f805738d web: fix progress on news + catchup mode
Some checks failed
Continuous integration / Check (push) Has been cancelled
Continuous integration / Test Suite (push) Has been cancelled
Continuous integration / Trunk (push) Has been cancelled
Continuous integration / Rustfmt (push) Has been cancelled
Continuous integration / build (push) Has been cancelled
Continuous integration / Disallow unused dependencies (push) Has been cancelled
2025-11-27 10:10:42 -08:00
30b89c2418 chore: Release
All checks were successful
Continuous integration / Check (push) Successful in 1m5s
Continuous integration / Test Suite (push) Successful in 2m2s
Continuous integration / Trunk (push) Successful in 1m12s
Continuous integration / Rustfmt (push) Successful in 44s
Continuous integration / build (push) Successful in 2m52s
Continuous integration / Disallow unused dependencies (push) Successful in 2m15s
2025-11-27 09:58:29 -08:00
b933b2a113 Normalize all letterbox dependency versions 2025-11-27 09:58:07 -08:00
dfbe6d67aa chore: Release 2025-11-27 09:55:40 -08:00
8cca562a33 cargo update 2025-11-27 09:55:13 -08:00
b1e207765f chore: Release 2025-11-27 09:53:22 -08:00
b140c15fc8 chore: Release 2025-11-27 09:46:23 -08:00
859564c476 web: change up progress bar behavior 2025-11-27 09:45:01 -08:00
3c48076996 web: add spinner when loading next page in catchup mode 2025-11-26 13:46:19 -08:00
01fd53e467 Merge pull request 'chore(deps): update rust crate tracing to v0.1.42' (#201) from renovate/tokio-tracing-monorepo into master
All checks were successful
Continuous integration / Check (push) Successful in 1m15s
Continuous integration / Test Suite (push) Successful in 2m42s
Continuous integration / Trunk (push) Successful in 1m21s
Continuous integration / Rustfmt (push) Successful in 51s
Continuous integration / build (push) Successful in 1m57s
Continuous integration / Disallow unused dependencies (push) Successful in 2m25s
2025-11-26 06:01:53 -08:00
8001c37c91 chore(deps): update rust crate tracing to v0.1.42
All checks were successful
Continuous integration / Check (push) Successful in 1m15s
Continuous integration / Test Suite (push) Successful in 2m30s
Continuous integration / Trunk (push) Successful in 1m56s
Continuous integration / Rustfmt (push) Successful in 53s
Continuous integration / build (push) Successful in 3m22s
Continuous integration / Disallow unused dependencies (push) Successful in 2m42s
2025-11-26 13:31:40 +00:00
f139dd391a Merge pull request 'chore(deps): update rust crate cacher to v0.2.1' (#200) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Check (push) Successful in 1m9s
Continuous integration / Test Suite (push) Successful in 1m40s
Continuous integration / Trunk (push) Successful in 1m5s
Continuous integration / Rustfmt (push) Successful in 43s
Continuous integration / build (push) Successful in 2m6s
Continuous integration / Disallow unused dependencies (push) Successful in 2m31s
2025-11-25 18:46:52 -08:00
27588b44c3 chore(deps): update rust crate cacher to v0.2.1
All checks were successful
Continuous integration / Check (push) Successful in 1m11s
Continuous integration / Test Suite (push) Successful in 2m16s
Continuous integration / Trunk (push) Successful in 7m41s
Continuous integration / Rustfmt (push) Successful in 42s
Continuous integration / build (push) Successful in 2m14s
Continuous integration / Disallow unused dependencies (push) Successful in 2m38s
2025-11-26 00:47:40 +00:00
79c78615f5 Merge pull request 'fix(deps): update rust crate zip to v6' (#178) from renovate/zip-6.x into master
All checks were successful
Continuous integration / Check (push) Successful in 2m26s
Continuous integration / Test Suite (push) Successful in 2m2s
Continuous integration / Trunk (push) Successful in 7m59s
Continuous integration / Rustfmt (push) Successful in 45s
Continuous integration / build (push) Successful in 2m6s
Continuous integration / Disallow unused dependencies (push) Successful in 2m39s
Reviewed-on: #178
2025-11-25 16:28:49 -08:00
3971228fc3 Merge pull request 'chore(deps): update rust crate tower-http to v0.6.7' (#199) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Check (push) Successful in 1m36s
Continuous integration / Test Suite (push) Successful in 1m55s
Continuous integration / Trunk (push) Successful in 57s
Continuous integration / Rustfmt (push) Successful in 41s
Continuous integration / build (push) Successful in 2m11s
Continuous integration / Disallow unused dependencies (push) Successful in 2m31s
2025-11-24 10:46:57 -08:00
5dbce7642e chore(deps): update rust crate tower-http to v0.6.7
All checks were successful
Continuous integration / Check (push) Successful in 2m4s
Continuous integration / Test Suite (push) Successful in 2m37s
Continuous integration / Trunk (push) Successful in 1m14s
Continuous integration / Rustfmt (push) Successful in 42s
Continuous integration / build (push) Successful in 2m12s
Continuous integration / Disallow unused dependencies (push) Successful in 2m59s
2025-11-24 18:31:35 +00:00
f0d14f6bdc Merge pull request 'chore(deps): lock file maintenance' (#198) from renovate/lock-file-maintenance into master
All checks were successful
Continuous integration / Check (push) Successful in 1m7s
Continuous integration / Test Suite (push) Successful in 1m52s
Continuous integration / Trunk (push) Successful in 8m0s
Continuous integration / Rustfmt (push) Successful in 48s
Continuous integration / build (push) Successful in 1m53s
Continuous integration / Disallow unused dependencies (push) Successful in 2m25s
2025-11-23 16:47:27 -08:00
18e8802299 chore(deps): lock file maintenance
All checks were successful
Continuous integration / Check (push) Successful in 2m1s
Continuous integration / Test Suite (push) Successful in 4m28s
Continuous integration / Trunk (push) Successful in 8m3s
Continuous integration / Rustfmt (push) Successful in 47s
Continuous integration / build (push) Successful in 4m8s
Continuous integration / Disallow unused dependencies (push) Successful in 2m31s
2025-11-24 00:02:37 +00:00
8ea3ac2745 Merge pull request 'chore(deps): update rust crate clap to v4.5.53' (#196) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Check (push) Successful in 1m32s
Continuous integration / Test Suite (push) Successful in 2m10s
Continuous integration / Trunk (push) Successful in 56s
Continuous integration / Rustfmt (push) Successful in 40s
Continuous integration / build (push) Successful in 1m40s
Continuous integration / Disallow unused dependencies (push) Successful in 2m19s
2025-11-19 13:31:31 -08:00
a4c9850d8e chore(deps): update rust crate clap to v4.5.53
All checks were successful
Continuous integration / Check (push) Successful in 1m32s
Continuous integration / Test Suite (push) Successful in 1m55s
Continuous integration / Trunk (push) Successful in 7m31s
Continuous integration / Rustfmt (push) Successful in 48s
Continuous integration / build (push) Successful in 1m38s
Continuous integration / Disallow unused dependencies (push) Successful in 2m22s
2025-11-19 21:01:54 +00:00
9e7522951c Merge pull request 'chore(deps): update rust crate clap to v4.5.52' (#195) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Check (push) Successful in 1m8s
Continuous integration / Test Suite (push) Successful in 1m58s
Continuous integration / Trunk (push) Successful in 1m0s
Continuous integration / Rustfmt (push) Successful in 59s
Continuous integration / build (push) Successful in 1m39s
Continuous integration / Disallow unused dependencies (push) Successful in 2m38s
2025-11-17 09:31:40 -08:00
b43a025d1a chore(deps): update rust crate clap to v4.5.52
All checks were successful
Continuous integration / Check (push) Successful in 1m16s
Continuous integration / Test Suite (push) Successful in 1m44s
Continuous integration / Trunk (push) Successful in 1m15s
Continuous integration / Rustfmt (push) Successful in 38s
Continuous integration / build (push) Successful in 1m32s
Continuous integration / Disallow unused dependencies (push) Successful in 2m37s
2025-11-17 17:16:44 +00:00
2aa82f09c6 Merge pull request 'chore(deps): lock file maintenance' (#194) from renovate/lock-file-maintenance into master
All checks were successful
Continuous integration / Check (push) Successful in 1m12s
Continuous integration / Test Suite (push) Successful in 1m28s
Continuous integration / Trunk (push) Successful in 7m47s
Continuous integration / Rustfmt (push) Successful in 52s
Continuous integration / build (push) Successful in 1m49s
Continuous integration / Disallow unused dependencies (push) Successful in 2m24s
2025-11-16 16:47:15 -08:00
27f800356c chore(deps): lock file maintenance
All checks were successful
Continuous integration / Check (push) Successful in 1m30s
Continuous integration / Test Suite (push) Successful in 3m22s
Continuous integration / Trunk (push) Successful in 1m47s
Continuous integration / Rustfmt (push) Successful in 55s
Continuous integration / build (push) Successful in 3m28s
Continuous integration / Disallow unused dependencies (push) Successful in 2m15s
2025-11-17 00:02:49 +00:00
20ddf25605 Merge pull request 'chore(deps): update rust crate html2text to v0.16.4' (#193) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Check (push) Successful in 1m7s
Continuous integration / Test Suite (push) Successful in 1m37s
Continuous integration / Trunk (push) Successful in 1m3s
Continuous integration / Rustfmt (push) Successful in 40s
Continuous integration / build (push) Successful in 1m36s
Continuous integration / Disallow unused dependencies (push) Successful in 2m16s
2025-11-16 07:46:40 -08:00
c79ffee6e4 chore(deps): update rust crate html2text to v0.16.4
All checks were successful
Continuous integration / Check (push) Successful in 1m2s
Continuous integration / Test Suite (push) Successful in 1m23s
Continuous integration / Trunk (push) Successful in 59s
Continuous integration / Rustfmt (push) Successful in 41s
Continuous integration / build (push) Successful in 1m38s
Continuous integration / Disallow unused dependencies (push) Successful in 2m15s
2025-11-16 15:31:42 +00:00
1972e9ec20 Merge pull request 'chore(deps): update rust crate html2text to v0.16.3' (#192) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Check (push) Successful in 1m8s
Continuous integration / Test Suite (push) Successful in 1m32s
Continuous integration / Trunk (push) Successful in 1m5s
Continuous integration / Rustfmt (push) Successful in 51s
Continuous integration / build (push) Successful in 1m46s
Continuous integration / Disallow unused dependencies (push) Successful in 2m51s
2025-11-16 04:31:53 -08:00
2a238b0b02 chore(deps): update rust crate html2text to v0.16.3
All checks were successful
Continuous integration / Check (push) Successful in 1m15s
Continuous integration / Test Suite (push) Successful in 1m49s
Continuous integration / Trunk (push) Successful in 8m43s
Continuous integration / Rustfmt (push) Successful in 49s
Continuous integration / build (push) Successful in 1m53s
Continuous integration / Disallow unused dependencies (push) Successful in 2m49s
2025-11-16 12:01:57 +00:00
639b6c9f0a Merge pull request 'chore(deps): update rust crate quick-xml to v0.38.4' (#190) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Check (push) Successful in 1m11s
Continuous integration / Test Suite (push) Successful in 1m28s
Continuous integration / Trunk (push) Successful in 1m10s
Continuous integration / Rustfmt (push) Successful in 48s
Continuous integration / build (push) Successful in 1m44s
Continuous integration / Disallow unused dependencies (push) Successful in 2m16s
2025-11-14 14:46:37 -08:00
2d6bf544da chore(deps): update rust crate quick-xml to v0.38.4
All checks were successful
Continuous integration / Check (push) Successful in 52s
Continuous integration / Test Suite (push) Successful in 1m16s
Continuous integration / Trunk (push) Successful in 58s
Continuous integration / Rustfmt (push) Successful in 48s
Continuous integration / build (push) Successful in 1m45s
Continuous integration / Disallow unused dependencies (push) Successful in 2m30s
2025-11-14 22:16:56 +00:00
a56b6d72f6 Merge pull request 'chore(deps): update rust crate axum to v0.8.7' (#191) from renovate/axum-monorepo into master
All checks were successful
Continuous integration / Check (push) Successful in 1m2s
Continuous integration / Test Suite (push) Successful in 1m58s
Continuous integration / Trunk (push) Successful in 1m9s
Continuous integration / Rustfmt (push) Successful in 52s
Continuous integration / build (push) Successful in 1m28s
Continuous integration / Disallow unused dependencies (push) Successful in 2m36s
2025-11-14 14:16:38 -08:00
c03de14b79 chore(deps): update rust crate axum to v0.8.7
All checks were successful
Continuous integration / Check (push) Successful in 1m4s
Continuous integration / Test Suite (push) Successful in 1m59s
Continuous integration / Trunk (push) Successful in 8m4s
Continuous integration / Rustfmt (push) Successful in 43s
Continuous integration / build (push) Successful in 1m47s
Continuous integration / Disallow unused dependencies (push) Successful in 2m43s
2025-11-14 21:46:44 +00:00
44fc422aa3 Merge pull request 'chore(deps): lock file maintenance' (#189) from renovate/lock-file-maintenance into master
All checks were successful
Continuous integration / Check (push) Successful in 1m18s
Continuous integration / Test Suite (push) Successful in 1m57s
Continuous integration / Trunk (push) Successful in 1m1s
Continuous integration / Rustfmt (push) Successful in 40s
Continuous integration / build (push) Successful in 2m25s
Continuous integration / Disallow unused dependencies (push) Successful in 2m55s
2025-11-09 19:47:33 -08:00
58880c17aa chore(deps): lock file maintenance
All checks were successful
Continuous integration / Check (push) Successful in 1m48s
Continuous integration / Test Suite (push) Successful in 3m41s
Continuous integration / Trunk (push) Successful in 1m27s
Continuous integration / Rustfmt (push) Successful in 46s
Continuous integration / build (push) Successful in 4m18s
Continuous integration / Disallow unused dependencies (push) Successful in 2m18s
2025-11-10 03:02:35 +00:00
2be3b9ed07 Merge pull request 'chore(deps): lock file maintenance' (#188) from renovate/lock-file-maintenance into master
All checks were successful
Continuous integration / Check (push) Successful in 1m8s
Continuous integration / Test Suite (push) Successful in 1m46s
Continuous integration / Trunk (push) Successful in 7m51s
Continuous integration / Rustfmt (push) Successful in 42s
Continuous integration / build (push) Successful in 2m11s
Continuous integration / Disallow unused dependencies (push) Successful in 2m12s
2025-11-09 16:47:25 -08:00
9dfaa11cc6 chore(deps): lock file maintenance
All checks were successful
Continuous integration / Check (push) Successful in 2m2s
Continuous integration / Test Suite (push) Successful in 4m18s
Continuous integration / Trunk (push) Successful in 1m52s
Continuous integration / Rustfmt (push) Successful in 42s
Continuous integration / build (push) Successful in 4m21s
Continuous integration / Disallow unused dependencies (push) Successful in 2m32s
2025-11-10 00:02:49 +00:00
49492f9f21 Merge pull request 'chore(deps): update rust crate html2text to v0.16.2' (#187) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Check (push) Successful in 1m18s
Continuous integration / Test Suite (push) Successful in 2m12s
Continuous integration / Trunk (push) Successful in 1m3s
Continuous integration / Rustfmt (push) Successful in 37s
Continuous integration / build (push) Successful in 2m25s
Continuous integration / Disallow unused dependencies (push) Successful in 2m13s
2025-11-08 23:31:37 -08:00
84e120df95 chore(deps): update rust crate html2text to v0.16.2
All checks were successful
Continuous integration / Check (push) Successful in 1m7s
Continuous integration / Test Suite (push) Successful in 1m35s
Continuous integration / Trunk (push) Successful in 7m48s
Continuous integration / Rustfmt (push) Successful in 40s
Continuous integration / build (push) Successful in 2m13s
Continuous integration / Disallow unused dependencies (push) Successful in 2m36s
2025-11-09 07:01:43 +00:00
b21f0bc398 Merge pull request 'chore(deps): update rust crate html2text to v0.16.1' (#186) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Check (push) Successful in 1m2s
Continuous integration / Test Suite (push) Successful in 1m28s
Continuous integration / Trunk (push) Successful in 58s
Continuous integration / Rustfmt (push) Successful in 41s
Continuous integration / build (push) Successful in 1m35s
Continuous integration / Disallow unused dependencies (push) Successful in 2m14s
2025-11-08 03:02:16 -08:00
d8463c3178 chore(deps): update rust crate html2text to v0.16.1
All checks were successful
Continuous integration / Check (push) Successful in 1m7s
Continuous integration / Test Suite (push) Successful in 1m38s
Continuous integration / Trunk (push) Successful in 7m33s
Continuous integration / Rustfmt (push) Successful in 41s
Continuous integration / build (push) Successful in 1m35s
Continuous integration / Disallow unused dependencies (push) Successful in 2m21s
2025-11-08 10:46:41 +00:00
e1681edda3 chore: Release
All checks were successful
Continuous integration / Check (push) Successful in 1m1s
Continuous integration / Test Suite (push) Successful in 1m32s
Continuous integration / Trunk (push) Successful in 1m0s
Continuous integration / Rustfmt (push) Successful in 39s
Continuous integration / build (push) Successful in 1m41s
Continuous integration / Disallow unused dependencies (push) Successful in 2m12s
2025-11-05 21:12:09 -08:00
25ee8522ad cargo sqlx prepare 2025-11-05 21:12:08 -08:00
df356e8711 server: add label_unprocessed method, and implement wake 2025-11-05 21:11:26 -08:00
2e43700cd7 chore: Release
All checks were successful
Continuous integration / Check (push) Successful in 1m0s
Continuous integration / Test Suite (push) Successful in 1m31s
Continuous integration / Trunk (push) Successful in 1m24s
Continuous integration / Rustfmt (push) Successful in 42s
Continuous integration / build (push) Successful in 1m37s
Continuous integration / Disallow unused dependencies (push) Successful in 2m25s
2025-11-05 15:47:21 -08:00
b3769d99bf web: fix styling for second layer tags 2025-11-05 15:46:37 -08:00
2aa85a03f8 web: make +6 month button work from post date 2025-11-05 15:01:56 -08:00
c0982e82c6 chore: Release
All checks were successful
Continuous integration / Check (push) Successful in 58s
Continuous integration / Test Suite (push) Successful in 1m26s
Continuous integration / Trunk (push) Successful in 1m1s
Continuous integration / Rustfmt (push) Successful in 45s
Continuous integration / build (push) Successful in 1m48s
Continuous integration / Disallow unused dependencies (push) Successful in 2m33s
2025-11-03 17:19:22 -08:00
8971fe3b6b web: fix lint 2025-11-03 17:19:08 -08:00
243e35ec15 chore: Release 2025-11-03 15:43:26 -08:00
4cf1f882b8 cargo sqlx prepare 2025-11-03 15:43:25 -08:00
a8129e4685 Upsert snoozes and mark snoozed messages as read 2025-11-03 15:42:44 -08:00
50a4bfcac7 More implementation 2025-11-03 15:42:44 -08:00
90ac9a1e43 snooze: add UI elements and DB for snooze functionality 2025-11-03 15:42:44 -08:00
52b19365d7 Regen Cargo.lock 2025-11-03 15:42:44 -08:00
399865f5f7 snooze: add UI elements and DB for snooze functionality 2025-11-03 15:42:44 -08:00
2eb4784e83 WIP snooze feature 2025-11-03 15:42:44 -08:00
be2085b397 Merge pull request 'chore(deps): lock file maintenance' (#185) from renovate/lock-file-maintenance into master
All checks were successful
Continuous integration / Check (push) Successful in 1m4s
Continuous integration / Test Suite (push) Successful in 1m29s
Continuous integration / Trunk (push) Successful in 7m47s
Continuous integration / Rustfmt (push) Successful in 40s
Continuous integration / build (push) Successful in 1m50s
Continuous integration / Disallow unused dependencies (push) Successful in 2m12s
2025-11-02 17:02:02 -08:00
2837ea835a chore(deps): lock file maintenance
All checks were successful
Continuous integration / Check (push) Successful in 2m12s
Continuous integration / Test Suite (push) Successful in 4m19s
Continuous integration / Trunk (push) Successful in 7m50s
Continuous integration / Rustfmt (push) Successful in 43s
Continuous integration / build (push) Successful in 4m24s
Continuous integration / Disallow unused dependencies (push) Successful in 2m38s
2025-11-03 00:02:52 +00:00
a84e673d88 Merge pull request 'fix(deps): update all non-major dependencies' (#184) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Check (push) Successful in 55s
Continuous integration / Test Suite (push) Successful in 1m19s
Continuous integration / Trunk (push) Successful in 56s
Continuous integration / Rustfmt (push) Successful in 43s
Continuous integration / build (push) Successful in 1m32s
Continuous integration / Disallow unused dependencies (push) Successful in 2m11s
2025-11-01 05:46:41 -07:00
2bc840a4e2 fix(deps): update all non-major dependencies
All checks were successful
Continuous integration / Check (push) Successful in 2m22s
Continuous integration / Test Suite (push) Successful in 4m22s
Continuous integration / Trunk (push) Successful in 7m37s
Continuous integration / Rustfmt (push) Successful in 41s
Continuous integration / build (push) Successful in 5m3s
Continuous integration / Disallow unused dependencies (push) Successful in 2m16s
2025-11-01 12:16:43 +00:00
dd2062f719 Merge pull request 'chore(deps): lock file maintenance' (#183) from renovate/lock-file-maintenance into master
All checks were successful
Continuous integration / Check (push) Successful in 1m55s
Continuous integration / Test Suite (push) Successful in 3m44s
Continuous integration / Trunk (push) Successful in 8m15s
Continuous integration / Rustfmt (push) Successful in 42s
Continuous integration / build (push) Successful in 4m44s
Continuous integration / Disallow unused dependencies (push) Successful in 3m0s
2025-10-26 18:02:44 -07:00
616623e477 chore(deps): lock file maintenance
All checks were successful
Continuous integration / Check (push) Successful in 2m46s
Continuous integration / Test Suite (push) Successful in 5m45s
Continuous integration / Trunk (push) Successful in 7m43s
Continuous integration / Rustfmt (push) Successful in 52s
Continuous integration / build (push) Successful in 6m14s
Continuous integration / Disallow unused dependencies (push) Successful in 2m20s
2025-10-27 00:02:30 +00:00
593a20f621 Merge pull request 'chore(deps): update all non-major dependencies' (#181) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Check (push) Successful in 1m35s
Continuous integration / Test Suite (push) Successful in 3m8s
Continuous integration / Trunk (push) Successful in 1m24s
Continuous integration / Rustfmt (push) Successful in 40s
Continuous integration / build (push) Successful in 2m55s
Continuous integration / Disallow unused dependencies (push) Successful in 2m30s
Reviewed-on: #181
2025-10-24 07:35:10 -07:00
584ccba5bd chore(deps): update all non-major dependencies
Some checks failed
renovate/artifacts Artifact file update failure
Continuous integration / Check (push) Successful in 1m38s
Continuous integration / Test Suite (push) Successful in 2m56s
Continuous integration / Trunk (push) Successful in 7m43s
Continuous integration / Rustfmt (push) Successful in 40s
Continuous integration / build (push) Successful in 2m55s
Continuous integration / Disallow unused dependencies (push) Successful in 2m28s
2025-10-24 05:46:43 +00:00
e7a01e9d70 Merge pull request 'fix(deps): update all non-major dependencies' (#163) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Check (push) Successful in 1m43s
Continuous integration / Test Suite (push) Successful in 3m25s
Continuous integration / Trunk (push) Successful in 1m41s
Continuous integration / Rustfmt (push) Successful in 43s
Continuous integration / build (push) Successful in 3m8s
Continuous integration / Disallow unused dependencies (push) Successful in 2m56s
Reviewed-on: #163
2025-10-22 13:39:16 -07:00
727599c12c fix(deps): update all non-major dependencies
Some checks failed
renovate/artifacts Artifact file update failure
Continuous integration / Check (push) Successful in 2m16s
Continuous integration / Test Suite (push) Successful in 4m21s
Continuous integration / Trunk (push) Successful in 7m59s
Continuous integration / Rustfmt (push) Successful in 46s
Continuous integration / build (push) Successful in 5m3s
Continuous integration / Disallow unused dependencies (push) Successful in 2m22s
2025-10-22 08:17:31 +00:00
17ad5b3b0b chore: Release
All checks were successful
Continuous integration / Check (push) Successful in 1m47s
Continuous integration / Test Suite (push) Successful in 2m58s
Continuous integration / Trunk (push) Successful in 1m31s
Continuous integration / Rustfmt (push) Successful in 42s
Continuous integration / build (push) Successful in 3m18s
Continuous integration / Disallow unused dependencies (push) Successful in 3m4s
2025-10-20 19:50:27 -07:00
285b2f1591 server: handle message/delivery-status 2025-10-20 19:50:01 -07:00
1537333e76 server: add handling for multipart/report w/ ract_rfc822 subpart 2025-10-20 19:50:01 -07:00
285ff1d098 Merge pull request 'chore(deps): lock file maintenance' (#180) from renovate/lock-file-maintenance into master
All checks were successful
Continuous integration / Check (push) Successful in 2m3s
Continuous integration / Test Suite (push) Successful in 3m1s
Continuous integration / Trunk (push) Successful in 8m7s
Continuous integration / Rustfmt (push) Successful in 42s
Continuous integration / build (push) Successful in 3m13s
Continuous integration / Disallow unused dependencies (push) Successful in 2m28s
2025-10-19 18:02:57 -07:00
1563bf05a3 chore(deps): lock file maintenance
All checks were successful
Continuous integration / Check (push) Successful in 2m42s
Continuous integration / Test Suite (push) Successful in 6m17s
Continuous integration / Trunk (push) Successful in 7m54s
Continuous integration / Rustfmt (push) Successful in 50s
Continuous integration / build (push) Successful in 5m58s
Continuous integration / Disallow unused dependencies (push) Successful in 2m26s
2025-10-20 00:02:39 +00:00
458aab3167 Merge pull request 'chore(deps): lock file maintenance' (#179) from renovate/lock-file-maintenance into master
All checks were successful
Continuous integration / Check (push) Successful in 1m40s
Continuous integration / Test Suite (push) Successful in 3m51s
Continuous integration / Trunk (push) Successful in 9m4s
Continuous integration / Rustfmt (push) Successful in 46s
Continuous integration / build (push) Successful in 4m7s
Continuous integration / Disallow unused dependencies (push) Successful in 2m41s
2025-10-12 18:02:38 -07:00
492e420337 chore(deps): lock file maintenance
All checks were successful
Continuous integration / Check (push) Successful in 2m20s
Continuous integration / Test Suite (push) Successful in 6m20s
Continuous integration / Trunk (push) Successful in 8m17s
Continuous integration / Rustfmt (push) Successful in 41s
Continuous integration / build (push) Successful in 6m8s
Continuous integration / Disallow unused dependencies (push) Successful in 2m44s
2025-10-13 00:02:43 +00:00
aa6f99f32e fix(deps): update rust crate zip to v6
All checks were successful
Continuous integration / Check (push) Successful in 1m43s
Continuous integration / Test Suite (push) Successful in 2m45s
Continuous integration / Trunk (push) Successful in 8m16s
Continuous integration / Rustfmt (push) Successful in 45s
Continuous integration / build (push) Successful in 5m13s
Continuous integration / Disallow unused dependencies (push) Successful in 2m43s
2025-10-09 11:46:54 +00:00
330f9b1763 Merge pull request 'chore(deps): lock file maintenance' (#177) from renovate/lock-file-maintenance into master
All checks were successful
Continuous integration / Check (push) Successful in 1m29s
Continuous integration / Test Suite (push) Successful in 2m33s
Continuous integration / Trunk (push) Successful in 8m10s
Continuous integration / Rustfmt (push) Successful in 42s
Continuous integration / build (push) Successful in 3m30s
Continuous integration / Disallow unused dependencies (push) Successful in 2m32s
2025-10-05 17:47:37 -07:00
ad904ac1c0 chore(deps): lock file maintenance
All checks were successful
Continuous integration / Check (push) Successful in 2m0s
Continuous integration / Test Suite (push) Successful in 3m53s
Continuous integration / Trunk (push) Successful in 1m39s
Continuous integration / Rustfmt (push) Successful in 51s
Continuous integration / build (push) Successful in 4m35s
Continuous integration / Disallow unused dependencies (push) Successful in 2m23s
2025-10-06 00:02:48 +00:00
20f125bda5 Merge pull request 'chore(deps): update rust crate axum to v0.8.6' (#176) from renovate/axum-monorepo into master
All checks were successful
Continuous integration / Check (push) Successful in 1m36s
Continuous integration / Test Suite (push) Successful in 2m37s
Continuous integration / Trunk (push) Successful in 1m23s
Continuous integration / Rustfmt (push) Successful in 1m15s
Continuous integration / build (push) Successful in 3m40s
Continuous integration / Disallow unused dependencies (push) Successful in 2m16s
2025-09-30 06:46:31 -07:00
cf99e75ab8 chore(deps): update rust crate axum to v0.8.6
All checks were successful
Continuous integration / Check (push) Successful in 1m47s
Continuous integration / Test Suite (push) Successful in 3m37s
Continuous integration / Trunk (push) Successful in 8m1s
Continuous integration / Rustfmt (push) Successful in 48s
Continuous integration / build (push) Successful in 3m40s
Continuous integration / Disallow unused dependencies (push) Successful in 2m39s
2025-09-30 13:16:34 +00:00
54fc1e7962 Merge pull request 'chore(deps): lock file maintenance' (#175) from renovate/lock-file-maintenance into master
All checks were successful
Continuous integration / Check (push) Successful in 1m27s
Continuous integration / Test Suite (push) Successful in 2m54s
Continuous integration / Trunk (push) Successful in 1m18s
Continuous integration / Rustfmt (push) Successful in 51s
Continuous integration / build (push) Successful in 2m52s
Continuous integration / Disallow unused dependencies (push) Successful in 2m42s
2025-09-28 21:02:01 -07:00
b187edc23b chore(deps): lock file maintenance
All checks were successful
Continuous integration / Check (push) Successful in 2m4s
Continuous integration / Test Suite (push) Successful in 4m59s
Continuous integration / Trunk (push) Successful in 2m8s
Continuous integration / Rustfmt (push) Successful in 1m1s
Continuous integration / build (push) Successful in 5m7s
Continuous integration / Disallow unused dependencies (push) Successful in 2m32s
2025-09-29 01:33:22 +00:00
fdafba3eeb Merge pull request 'chore(deps): lock file maintenance' (#174) from renovate/lock-file-maintenance into master
All checks were successful
Continuous integration / Check (push) Successful in 1m25s
Continuous integration / Test Suite (push) Successful in 2m48s
Continuous integration / Trunk (push) Successful in 8m45s
Continuous integration / Rustfmt (push) Successful in 48s
Continuous integration / build (push) Successful in 3m1s
Continuous integration / Disallow unused dependencies (push) Successful in 2m32s
2025-09-28 18:32:44 -07:00
c5fe9f67d2 chore(deps): lock file maintenance
All checks were successful
Continuous integration / Check (push) Successful in 2m2s
Continuous integration / Test Suite (push) Successful in 4m21s
Continuous integration / Trunk (push) Successful in 1m58s
Continuous integration / Rustfmt (push) Successful in 41s
Continuous integration / build (push) Successful in 4m47s
Continuous integration / Disallow unused dependencies (push) Successful in 2m19s
2025-09-29 00:02:59 +00:00
ff970acf79 Merge pull request 'chore(deps): update rust crate axum to v0.8.5' (#173) from renovate/axum-monorepo into master
All checks were successful
Continuous integration / Check (push) Successful in 1m18s
Continuous integration / Test Suite (push) Successful in 2m1s
Continuous integration / Trunk (push) Successful in 1m22s
Continuous integration / Rustfmt (push) Successful in 38s
Continuous integration / build (push) Successful in 1m57s
Continuous integration / Disallow unused dependencies (push) Successful in 2m42s
2025-09-28 13:01:36 -07:00
2f9bc17873 chore(deps): update rust crate axum to v0.8.5
All checks were successful
Continuous integration / Check (push) Successful in 2m4s
Continuous integration / Test Suite (push) Successful in 3m30s
Continuous integration / Trunk (push) Successful in 7m57s
Continuous integration / Rustfmt (push) Successful in 54s
Continuous integration / build (push) Successful in 4m12s
Continuous integration / Disallow unused dependencies (push) Successful in 2m36s
2025-09-28 19:31:55 +00:00
7e82f4ce97 Merge pull request 'chore(deps): update rust crate serde to v1.0.228' (#172) from renovate/serde-monorepo into master
All checks were successful
Continuous integration / Check (push) Successful in 1m17s
Continuous integration / Test Suite (push) Successful in 1m47s
Continuous integration / Trunk (push) Successful in 1m28s
Continuous integration / Rustfmt (push) Successful in 1m17s
Continuous integration / build (push) Successful in 2m15s
Continuous integration / Disallow unused dependencies (push) Successful in 2m17s
2025-09-27 11:17:19 -07:00
5bb4f010d3 chore(deps): update rust crate serde to v1.0.228
All checks were successful
Continuous integration / Check (push) Successful in 1m39s
Continuous integration / Test Suite (push) Successful in 3m33s
Continuous integration / Trunk (push) Successful in 8m35s
Continuous integration / Rustfmt (push) Successful in 41s
Continuous integration / build (push) Successful in 3m40s
Continuous integration / Disallow unused dependencies (push) Successful in 2m32s
2025-09-27 17:32:25 +00:00
0af630acbe Merge pull request 'chore(deps): update rust crate serde to v1.0.227' (#171) from renovate/serde-monorepo into master
All checks were successful
Continuous integration / Check (push) Successful in 1m2s
Continuous integration / Test Suite (push) Successful in 1m30s
Continuous integration / Trunk (push) Successful in 1m22s
Continuous integration / Rustfmt (push) Successful in 1m9s
Continuous integration / build (push) Successful in 1m55s
Continuous integration / Disallow unused dependencies (push) Successful in 2m41s
2025-09-25 17:48:24 -07:00
d3d350e159 chore(deps): update rust crate serde to v1.0.227
All checks were successful
Continuous integration / Check (push) Successful in 1m45s
Continuous integration / Test Suite (push) Successful in 3m17s
Continuous integration / Trunk (push) Successful in 1m11s
Continuous integration / Rustfmt (push) Successful in 51s
Continuous integration / build (push) Successful in 3m31s
Continuous integration / Disallow unused dependencies (push) Successful in 3m35s
2025-09-26 00:17:20 +00:00
4013e4a7bf Merge pull request 'chore(deps): lock file maintenance' (#170) from renovate/lock-file-maintenance into master
All checks were successful
Continuous integration / Check (push) Successful in 1m24s
Continuous integration / Test Suite (push) Successful in 1m56s
Continuous integration / Trunk (push) Successful in 1m47s
Continuous integration / Rustfmt (push) Successful in 54s
Continuous integration / build (push) Successful in 2m47s
Continuous integration / Disallow unused dependencies (push) Successful in 2m48s
2025-09-21 19:47:12 -07:00
b63171ea98 chore(deps): lock file maintenance
All checks were successful
Continuous integration / Check (push) Successful in 1m26s
Continuous integration / Test Suite (push) Successful in 2m9s
Continuous integration / Trunk (push) Successful in 1m56s
Continuous integration / Rustfmt (push) Successful in 1m21s
Continuous integration / build (push) Successful in 2m8s
Continuous integration / Disallow unused dependencies (push) Successful in 2m38s
2025-09-22 01:03:58 +00:00
1c6ef02d11 Merge pull request 'chore(deps): lock file maintenance' (#169) from renovate/lock-file-maintenance into master
All checks were successful
Continuous integration / Check (push) Successful in 1m48s
Continuous integration / Test Suite (push) Successful in 2m35s
Continuous integration / Trunk (push) Successful in 8m22s
Continuous integration / Rustfmt (push) Successful in 53s
Continuous integration / build (push) Successful in 2m4s
Continuous integration / Disallow unused dependencies (push) Successful in 2m43s
2025-09-21 18:03:09 -07:00
32e5837dbf chore(deps): lock file maintenance
All checks were successful
Continuous integration / Check (push) Successful in 2m10s
Continuous integration / Test Suite (push) Successful in 4m11s
Continuous integration / Trunk (push) Successful in 8m17s
Continuous integration / Rustfmt (push) Successful in 58s
Continuous integration / build (push) Successful in 4m10s
Continuous integration / Disallow unused dependencies (push) Successful in 2m49s
2025-09-22 00:02:29 +00:00
38234d4d18 Merge pull request 'chore(deps): update rust crate serde to v1.0.226' (#168) from renovate/serde-monorepo into master
All checks were successful
Continuous integration / Check (push) Successful in 1m3s
Continuous integration / Test Suite (push) Successful in 1m31s
Continuous integration / Trunk (push) Successful in 1m10s
Continuous integration / Rustfmt (push) Successful in 48s
Continuous integration / build (push) Successful in 1m56s
Continuous integration / Disallow unused dependencies (push) Successful in 2m41s
2025-09-20 17:17:26 -07:00
f609a3c122 chore(deps): update rust crate serde to v1.0.226
All checks were successful
Continuous integration / Check (push) Successful in 1m39s
Continuous integration / Test Suite (push) Successful in 3m41s
Continuous integration / Trunk (push) Successful in 8m13s
Continuous integration / Rustfmt (push) Successful in 48s
Continuous integration / build (push) Successful in 3m29s
Continuous integration / Disallow unused dependencies (push) Successful in 2m28s
2025-09-20 23:47:09 +00:00
440a630414 Merge pull request 'chore(deps): update rust crate serde to v1.0.225' (#167) from renovate/serde-monorepo into master
All checks were successful
Continuous integration / Check (push) Successful in 1m13s
Continuous integration / Test Suite (push) Successful in 1m27s
Continuous integration / Trunk (push) Successful in 1m11s
Continuous integration / Rustfmt (push) Successful in 1m9s
Continuous integration / build (push) Successful in 2m8s
Continuous integration / Disallow unused dependencies (push) Successful in 3m0s
2025-09-15 21:46:51 -07:00
ebda258750 chore(deps): update rust crate serde to v1.0.225
All checks were successful
Continuous integration / Check (push) Successful in 1m53s
Continuous integration / Test Suite (push) Successful in 4m12s
Continuous integration / Trunk (push) Successful in 8m40s
Continuous integration / Rustfmt (push) Successful in 50s
Continuous integration / build (push) Successful in 4m40s
Continuous integration / Disallow unused dependencies (push) Successful in 2m38s
2025-09-16 04:02:50 +00:00
f766b3d529 Merge pull request 'chore(deps): update rust crate serde to v1.0.224' (#166) from renovate/serde-monorepo into master
All checks were successful
Continuous integration / Check (push) Successful in 1m23s
Continuous integration / Test Suite (push) Successful in 1m26s
Continuous integration / Trunk (push) Successful in 1m13s
Continuous integration / Rustfmt (push) Successful in 1m0s
Continuous integration / build (push) Successful in 2m14s
Continuous integration / Disallow unused dependencies (push) Successful in 2m40s
2025-09-15 10:17:33 -07:00
96d927d416 chore(deps): update rust crate serde to v1.0.224
All checks were successful
Continuous integration / Check (push) Successful in 2m51s
Continuous integration / Test Suite (push) Successful in 4m43s
Continuous integration / Trunk (push) Successful in 8m0s
Continuous integration / Rustfmt (push) Successful in 44s
Continuous integration / build (push) Successful in 4m47s
Continuous integration / Disallow unused dependencies (push) Successful in 2m25s
2025-09-15 16:17:25 +00:00
60543b7e5d Merge pull request 'chore(deps): lock file maintenance' (#165) from renovate/lock-file-maintenance into master
All checks were successful
Continuous integration / Check (push) Successful in 2m6s
Continuous integration / Test Suite (push) Successful in 4m26s
Continuous integration / Trunk (push) Successful in 7m26s
Continuous integration / Rustfmt (push) Successful in 33s
Continuous integration / build (push) Successful in 4m19s
Continuous integration / Disallow unused dependencies (push) Successful in 2m22s
2025-09-14 19:16:51 -07:00
97a7bb6083 chore(deps): lock file maintenance
All checks were successful
Continuous integration / Check (push) Successful in 2m6s
Continuous integration / Test Suite (push) Successful in 4m15s
Continuous integration / Trunk (push) Successful in 7m8s
Continuous integration / Rustfmt (push) Successful in 33s
Continuous integration / build (push) Successful in 4m52s
Continuous integration / Disallow unused dependencies (push) Successful in 2m7s
2025-09-15 00:02:42 +00:00
c493857188 web: remove wasm-bindgen-test
All checks were successful
Continuous integration / Check (push) Successful in 1m55s
Continuous integration / Test Suite (push) Successful in 4m4s
Continuous integration / Trunk (push) Successful in 7m18s
Continuous integration / Rustfmt (push) Successful in 28s
Continuous integration / build (push) Successful in 4m26s
Continuous integration / Disallow unused dependencies (push) Successful in 2m2s
2025-09-14 15:25:15 -07:00
21f344b01c Merge pull request 'chore(deps): update rust crate serde to v1.0.223' (#164) from renovate/serde-monorepo into master
Some checks failed
Continuous integration / Check (push) Has been cancelled
Continuous integration / Test Suite (push) Has been cancelled
Continuous integration / Trunk (push) Has been cancelled
Continuous integration / Rustfmt (push) Has been cancelled
Continuous integration / build (push) Has been cancelled
Continuous integration / Disallow unused dependencies (push) Has been cancelled
2025-09-14 15:16:51 -07:00
78f6d87c03 chore(deps): update rust crate serde to v1.0.223
All checks were successful
Continuous integration / Check (push) Successful in 2m2s
Continuous integration / Test Suite (push) Successful in 4m11s
Continuous integration / Trunk (push) Successful in 7m26s
Continuous integration / Rustfmt (push) Successful in 33s
Continuous integration / build (push) Successful in 4m21s
Continuous integration / Disallow unused dependencies (push) Successful in 2m5s
2025-09-14 20:47:14 +00:00
6edad4e8f2 Merge branch 'renovate/zip-5.x'
All checks were successful
Continuous integration / Check (push) Successful in 2m2s
Continuous integration / Test Suite (push) Successful in 4m4s
Continuous integration / Trunk (push) Successful in 7m30s
Continuous integration / Rustfmt (push) Successful in 33s
Continuous integration / build (push) Successful in 4m21s
Continuous integration / Disallow unused dependencies (push) Successful in 2m2s
2025-09-14 11:47:08 -07:00
8b06950cb8 Merge branch 'renovate/all-minor-patch'
Some checks failed
Continuous integration / Check (push) Has been cancelled
Continuous integration / Test Suite (push) Has been cancelled
Continuous integration / Trunk (push) Has been cancelled
Continuous integration / Rustfmt (push) Has been cancelled
Continuous integration / build (push) Has been cancelled
Continuous integration / Disallow unused dependencies (push) Has been cancelled
2025-09-14 11:44:24 -07:00
34417131b0 chore(deps): update all non-major dependencies
Some checks failed
renovate/artifacts Artifact file update failure
Continuous integration / Check (push) Has been cancelled
Continuous integration / Test Suite (push) Has been cancelled
Continuous integration / Trunk (push) Has been cancelled
Continuous integration / Rustfmt (push) Has been cancelled
Continuous integration / build (push) Has been cancelled
Continuous integration / Disallow unused dependencies (push) Has been cancelled
2025-09-14 18:17:23 +00:00
d63e72ad35 chore: Release
All checks were successful
Continuous integration / Check (push) Successful in 2m14s
Continuous integration / Test Suite (push) Successful in 4m25s
Continuous integration / Trunk (push) Successful in 7m10s
Continuous integration / Rustfmt (push) Successful in 28s
Continuous integration / build (push) Successful in 4m42s
Continuous integration / Disallow unused dependencies (push) Successful in 2m12s
2025-09-14 11:00:40 -07:00
33c0a106b7 server: fix date parsing w/ TZ and cal widget highlight 2025-09-14 11:00:21 -07:00
0df97a7b76 fix(deps): update rust crate zip to v5
All checks were successful
Continuous integration / Check (push) Successful in 1m19s
Continuous integration / Test Suite (push) Successful in 1m42s
Continuous integration / Trunk (push) Successful in 7m12s
Continuous integration / Rustfmt (push) Successful in 39s
Continuous integration / build (push) Successful in 2m2s
Continuous integration / Disallow unused dependencies (push) Successful in 2m20s
2025-09-05 21:16:29 +00:00
25 changed files with 1601 additions and 1306 deletions

2068
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@ authors = ["Bill Thiede <git@xinu.tv>"]
edition = "2021" edition = "2021"
license = "UNLICENSED" license = "UNLICENSED"
publish = ["xinu"] publish = ["xinu"]
version = "0.17.43" version = "0.17.55"
repository = "https://git.z.xinu.tv/wathiede/letterbox" repository = "https://git.z.xinu.tv/wathiede/letterbox"
[profile.dev] [profile.dev]

View File

@ -13,8 +13,8 @@ version.workspace = true
[dependencies] [dependencies]
anyhow = "1.0.98" anyhow = "1.0.98"
clap = { version = "4.5.37", features = ["derive", "env"] } clap = { version = "4.5.37", features = ["derive", "env"] }
letterbox-notmuch = { version = "0.17.9", registry = "xinu" } letterbox-notmuch = { version = "0.17", registry = "xinu" }
letterbox-shared = { version = "0.17.9", registry = "xinu" } letterbox-shared = { version = "0.17", registry = "xinu" }
serde = { version = "1.0.219", features = ["derive"] } serde = { version = "1.0.219", features = ["derive"] }
sqlx = { version = "0.8.5", features = ["postgres", "runtime-tokio"] } sqlx = { version = "0.8.5", features = ["postgres", "runtime-tokio"] }
tokio = { version = "1.44.2", features = ["rt", "macros", "rt-multi-thread"] } tokio = { version = "1.44.2", features = ["rt", "macros", "rt-multi-thread"] }

View File

@ -0,0 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM snooze WHERE id = $1",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int4"
]
},
"nullable": []
},
"hash": "77f79f981a9736d18ffd4b87d3aec34d6a048162154a3aba833370c58a860795"
}

View File

@ -0,0 +1,26 @@
{
"db_name": "PostgreSQL",
"query": "\nSELECT id, message_id\nFROM snooze\nWHERE wake < NOW();\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int4"
},
{
"ordinal": 1,
"name": "message_id",
"type_info": "Text"
}
],
"parameters": {
"Left": []
},
"nullable": [
false,
false
]
},
"hash": "c8383663124a5cc5912b54553f18f7064d33087ebfdf3c0c1c43cbe6d3577084"
}

View File

@ -1,6 +1,6 @@
{ {
"db_name": "PostgreSQL", "db_name": "PostgreSQL",
"query": "SELECT\n p.id,\n link,\n clean_summary\nFROM\n post AS p\nINNER JOIN feed AS f ON p.site = f.slug -- necessary to weed out nzb posts\nWHERE\n search_summary IS NULL\n -- TODO remove AND link ~ '^<'\nORDER BY\n ROW_NUMBER() OVER (PARTITION BY site ORDER BY date DESC)\nLIMIT 100;\n", "query": "SELECT\n p.id,\n link,\n clean_summary\nFROM\n post AS p\nINNER JOIN feed AS f ON p.site = f.slug -- necessary to weed out nzb posts\nWHERE\n search_summary IS NULL\n -- TODO remove AND link ~ '^<'\nORDER BY\n ROW_NUMBER() OVER (PARTITION BY site ORDER BY date DESC)\nLIMIT 1000;\n",
"describe": { "describe": {
"columns": [ "columns": [
{ {
@ -28,5 +28,5 @@
true true
] ]
}, },
"hash": "3d271b404f06497a5dcde68cf6bf07291d70fa56058ea736ac24e91d33050c04" "hash": "cf369e3d5547f400cb54004dd03783ef6998a000aec91c50a79405dcf1c53b17"
} }

View File

@ -0,0 +1,15 @@
{
"db_name": "PostgreSQL",
"query": "\n INSERT INTO snooze (message_id, wake)\n VALUES ($1, $2)\n ON CONFLICT (message_id) DO UPDATE\n SET wake = $2\n ",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Text",
"Timestamptz"
]
},
"nullable": []
},
"hash": "effd0d0d91e6ad84546f7177f1fd39d4fad736b471eb5e55fd5ac74f7adff664"
}

View File

@ -13,27 +13,27 @@ version.workspace = true
[dependencies] [dependencies]
chrono-tz = "0.10" chrono-tz = "0.10"
html2text = "0.15" html2text = "0.16"
ammonia = "4.1.0" ammonia = "4.1.0"
anyhow = "1.0.98" anyhow = "1.0.98"
askama = { version = "0.14.0", features = ["derive"] } askama = { version = "0.14.0", features = ["derive"] }
async-graphql = { version = "7", features = ["log"] } async-graphql = { version = "7", features = ["log", "chrono"] }
async-graphql-axum = "7.0.16" async-graphql-axum = "7.0.16"
async-trait = "0.1.88" async-trait = "0.1.88"
axum = { version = "0.8.3", features = ["ws"] } axum = { version = "0.8.3", features = ["ws"] }
axum-macros = "0.5.0" axum-macros = "0.5.0"
build-info = "0.0.41" build-info = "0.0.42"
cacher = { version = "0.2.0", registry = "xinu" } cacher = { version = "0.2.0", registry = "xinu" }
chrono = "0.4.40" chrono = "0.4.40"
clap = { version = "4.5.37", features = ["derive"] } clap = { version = "4.5.37", features = ["derive"] }
css-inline = "0.17.0" css-inline = "0.18.0"
flate2 = "1.1.2" flate2 = "1.1.2"
futures = "0.3.31" futures = "0.3.31"
headers = "0.4.0" headers = "0.4.0"
html-escape = "0.2.13" html-escape = "0.2.13"
ical = "0.11" ical = "0.11"
letterbox-notmuch = { path = "../notmuch", version = "0.17.43", registry = "xinu" } letterbox-notmuch = { path = "../notmuch", version = "0.17", registry = "xinu" }
letterbox-shared = { path = "../shared", version = "0.17.43", registry = "xinu" } letterbox-shared = { path = "../shared", version = "0.17", registry = "xinu" }
linkify = "0.10.0" linkify = "0.10.0"
lol_html = "2.3.0" lol_html = "2.3.0"
mailparse = "0.16.1" mailparse = "0.16.1"
@ -42,10 +42,10 @@ memmap = "0.7.0"
quick-xml = { version = "0.38.1", features = ["serialize"] } quick-xml = { version = "0.38.1", features = ["serialize"] }
regex = "1.11.1" regex = "1.11.1"
reqwest = { version = "0.12.15", features = ["blocking"] } reqwest = { version = "0.12.15", features = ["blocking"] }
scraper = "0.24.0" scraper = "0.25.0"
serde = { version = "1.0.219", features = ["derive"] } serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.140" serde_json = "1.0.140"
sqlx = { version = "0.8.5", features = ["postgres", "runtime-tokio", "time"] } sqlx = { version = "0.8.5", features = ["postgres", "runtime-tokio", "chrono"] }
tantivy = { version = "0.25.0", optional = true } tantivy = { version = "0.25.0", optional = true }
thiserror = "2.0.12" thiserror = "2.0.12"
tokio = "1.44.2" tokio = "1.44.2"
@ -56,11 +56,11 @@ urlencoding = "2.1.3"
#xtracing = { git = "http://git-private.h.xinu.tv/wathiede/xtracing.git" } #xtracing = { git = "http://git-private.h.xinu.tv/wathiede/xtracing.git" }
#xtracing = { path = "../../xtracing" } #xtracing = { path = "../../xtracing" }
xtracing = { version = "0.3.2", registry = "xinu" } xtracing = { version = "0.3.2", registry = "xinu" }
zip = "4.3.0" zip = "6.0.0"
[build-dependencies] [build-dependencies]
build-info-build = "0.0.41" build-info-build = "0.0.42"
[features] [features]
#default = [ "tantivy" ] #default = [ "tantivy" ]

View File

@ -0,0 +1,2 @@
-- Add down migration script here
DROP TABLE IF EXISTS snooze;

View File

@ -0,0 +1,6 @@
-- Add up migration script here
CREATE TABLE IF NOT EXISTS snooze (
id integer NOT NULL GENERATED ALWAYS AS IDENTITY,
message_id text NOT NULL UNIQUE,
wake timestamptz NOT NULL
);

View File

@ -10,4 +10,4 @@ WHERE
-- TODO remove AND link ~ '^<' -- TODO remove AND link ~ '^<'
ORDER BY ORDER BY
ROW_NUMBER() OVER (PARTITION BY site ORDER BY date DESC) ROW_NUMBER() OVER (PARTITION BY site ORDER BY date DESC)
LIMIT 100; LIMIT 1000;

View File

@ -17,9 +17,11 @@ use crate::{
const APPLICATION_GZIP: &'static str = "application/gzip"; const APPLICATION_GZIP: &'static str = "application/gzip";
const APPLICATION_ZIP: &'static str = "application/zip"; const APPLICATION_ZIP: &'static str = "application/zip";
const APPLICATION_TLSRPT_GZIP: &'static str = "application/tlsrpt+gzip";
const IMAGE_JPEG: &'static str = "image/jpeg"; const IMAGE_JPEG: &'static str = "image/jpeg";
const IMAGE_PJPEG: &'static str = "image/pjpeg"; const IMAGE_PJPEG: &'static str = "image/pjpeg";
const IMAGE_PNG: &'static str = "image/png"; const IMAGE_PNG: &'static str = "image/png";
const MESSAGE_DELIVERY_STATUS: &'static str = "message/delivery-status";
const MESSAGE_RFC822: &'static str = "message/rfc822"; const MESSAGE_RFC822: &'static str = "message/rfc822";
const MULTIPART_ALTERNATIVE: &'static str = "multipart/alternative"; const MULTIPART_ALTERNATIVE: &'static str = "multipart/alternative";
const MULTIPART_MIXED: &'static str = "multipart/mixed"; const MULTIPART_MIXED: &'static str = "multipart/mixed";
@ -641,19 +643,15 @@ pub fn extract_gzip(m: &ParsedMail) -> Result<(Body, Option<String>), ServerErro
Ok((extract_unhandled(m)?, None)) Ok((extract_unhandled(m)?, None))
} }
pub fn extract_report(m: &ParsedMail, _part_addr: &mut Vec<String>) -> Result<Body, ServerError> { pub fn extract_report(m: &ParsedMail, part_addr: &mut Vec<String>) -> Result<Body, ServerError> {
let mut html_part = None; let mut parts = Vec::new();
let mut tlsrpt_part = None;
for (idx, sp) in m.subparts.iter().enumerate() {
part_addr.push(idx.to_string());
for sp in &m.subparts {
match sp.ctype.mimetype.as_str() { match sp.ctype.mimetype.as_str() {
TEXT_HTML => html_part = Some(sp.get_body()?), APPLICATION_TLSRPT_GZIP => {
"application/tlsrpt+gzip" => tlsrpt_part = Some(sp.get_body_raw()?), let gz_bytes = sp.get_body_raw()?;
_ => {} // Ignore other parts for now
}
}
let tlsrpt_summary_html = if let Some(gz_bytes) = tlsrpt_part {
let mut decoder = flate2::read::GzDecoder::new(&gz_bytes[..]); let mut decoder = flate2::read::GzDecoder::new(&gz_bytes[..]);
let mut buffer = Vec::new(); let mut buffer = Vec::new();
if decoder.read_to_end(&mut buffer).is_ok() { if decoder.read_to_end(&mut buffer).is_ok() {
@ -666,7 +664,9 @@ pub fn extract_report(m: &ParsedMail, _part_addr: &mut Vec<String>) -> Result<Bo
start_datetime: tlsrpt.date_range.start_datetime, start_datetime: tlsrpt.date_range.start_datetime,
end_datetime: tlsrpt.date_range.end_datetime, end_datetime: tlsrpt.date_range.end_datetime,
}, },
contact_info: tlsrpt.contact_info.unwrap_or_else(|| "".to_string()), contact_info: tlsrpt
.contact_info
.unwrap_or_else(|| "".to_string()),
report_id: tlsrpt.report_id, report_id: tlsrpt.report_id,
policies: tlsrpt policies: tlsrpt
.policies .policies
@ -682,16 +682,20 @@ pub fn extract_report(m: &ParsedMail, _part_addr: &mut Vec<String>) -> Result<Bo
.unwrap_or_else(|| Vec::new()) .unwrap_or_else(|| Vec::new())
.into_iter() .into_iter()
.map(|mx| match mx { .map(|mx| match mx {
MxHost::String(s) => FormattedTlsRptMxHost { MxHost::String(s) => {
FormattedTlsRptMxHost {
hostname: s, hostname: s,
failure_count: 0, failure_count: 0,
result_type: "".to_string(), result_type: "".to_string(),
}, }
MxHost::Object(o) => FormattedTlsRptMxHost { }
MxHost::Object(o) => {
FormattedTlsRptMxHost {
hostname: o.hostname, hostname: o.hostname,
failure_count: o.failure_count, failure_count: o.failure_count,
result_type: o.result_type, result_type: o.result_type,
}, }
}
}) })
.collect(), .collect(),
}, },
@ -711,7 +715,8 @@ pub fn extract_report(m: &ParsedMail, _part_addr: &mut Vec<String>) -> Result<Bo
receiving_mx_hostname: detail receiving_mx_hostname: detail
.receiving_mx_hostname .receiving_mx_hostname
.unwrap_or_else(|| "".to_string()), .unwrap_or_else(|| "".to_string()),
failed_session_count: detail.failed_session_count, failed_session_count: detail
.failed_session_count,
additional_info: detail additional_info: detail
.additional_info .additional_info
.unwrap_or_else(|| "".to_string()), .unwrap_or_else(|| "".to_string()),
@ -726,30 +731,98 @@ pub fn extract_report(m: &ParsedMail, _part_addr: &mut Vec<String>) -> Result<Bo
let template = TlsReportTemplate { let template = TlsReportTemplate {
report: &formatted_tlsrpt, report: &formatted_tlsrpt,
}; };
template.render().unwrap_or_else(|e| format!("<div class=\"tlsrpt-error\">Failed to render TLS report template: {}</div>", e)) let html = template.render().unwrap_or_else(|e| format!("<div class=\"tlsrpt-error\">Failed to render TLS report template: {}</div>", e));
parts.push(Body::html(html));
} }
Err(e) => format!( Err(e) => {
let html = format!(
"<div class=\"tlsrpt-error\">Failed to parse TLS report JSON: {}</div>", "<div class=\"tlsrpt-error\">Failed to parse TLS report JSON: {}</div>",
e e
), );
parts.push(Body::html(html));
}
} }
} else { } else {
format!("<div class=\"tlsrpt-error\">Failed to convert decompressed data to UTF-8.</div>") let html = format!("<div class=\"tlsrpt-error\">Failed to convert decompressed data to UTF-8.</div>");
parts.push(Body::html(html));
} }
} else { } else {
format!("<div class=\"tlsrpt-error\">Failed to decompressed data.</div>") let html =
format!("<div class=\"tlsrpt-error\">Failed to decompress data.</div>");
parts.push(Body::html(html));
}
}
MESSAGE_RFC822 => {
parts.push(extract_rfc822(&sp, part_addr)?);
}
TEXT_HTML => {
let body = sp.get_body()?;
parts.push(Body::html(body));
}
MESSAGE_DELIVERY_STATUS => {
let body = extract_delivery_status(sp)?;
parts.push(body);
}
TEXT_PLAIN => {
let body = sp.get_body()?;
parts.push(Body::text(body));
}
_ => {
// For any other content type, try to extract the body using the general extract_body function
match extract_body(sp, part_addr) {
Ok(body) => parts.push(body),
Err(_) => {
// If extraction fails, create an unhandled content type body
let msg = format!(
"Unhandled report subpart content type: {}\n{}",
sp.ctype.mimetype,
sp.get_body()
.unwrap_or_else(|_| "Failed to get body".to_string())
);
parts.push(Body::UnhandledContentType(UnhandledContentType {
text: msg,
content_tree: render_content_type_tree(sp),
}));
}
}
}
} }
} else {
"".to_string()
};
let final_html = if let Some(html) = html_part { part_addr.pop();
format!("{}<hr>{} ", html, tlsrpt_summary_html) }
} else {
tlsrpt_summary_html
};
Ok(Body::html(final_html)) if parts.is_empty() {
return Ok(Body::html(
"<div class=\"report-error\">No report content found</div>".to_string(),
));
}
// Add <hr> tags between subparts for better visual separation
let html = parts
.iter()
.map(|p| match p {
Body::PlainText(PlainText { text, .. }) => {
format!(
r#"<p class="view-part-text-plain font-mono whitespace-pre-line">{}</p>"#,
linkify_html(&html_escape::encode_text(text).trim_matches('\n'))
)
}
Body::Html(Html { html, .. }) => html.clone(),
Body::UnhandledContentType(UnhandledContentType { text, .. }) => {
format!(
r#"<p class="view-part-unhandled">{}</p>"#,
linkify_html(&html_escape::encode_text(text).trim_matches('\n'))
)
}
})
.collect::<Vec<_>>()
.join("<hr>\n");
Ok(Body::html(html))
}
pub fn extract_delivery_status(m: &ParsedMail) -> Result<Body, ServerError> {
Ok(Body::text(m.get_body()?))
} }
pub fn extract_unhandled(m: &ParsedMail) -> Result<Body, ServerError> { pub fn extract_unhandled(m: &ParsedMail) -> Result<Body, ServerError> {
@ -2157,28 +2230,28 @@ mod tests {
let meta = extract_calendar_metadata_from_mail(&parsed, &body); let meta = extract_calendar_metadata_from_mail(&parsed, &body);
// Assert detection as Google Calendar // Assert detection as Google Calendar
assert!(meta.is_google_calendar_event); assert!(meta.is_google_calendar_event);
// Debug: print the rendered HTML for inspection
let html = meta.body_html.expect("body_html"); let html = meta.body_html.expect("body_html");
// Print event date info for debugging
for part in parsed.subparts.iter() {
if part.ctype.mimetype == TEXT_CALENDAR {
if let Ok(ical) = part.get_body() {
println!("ICAL data: {}", ical);
if let Some(start) = ical.lines().find(|l| l.starts_with("DTSTART:")) {
println!("Start date: {}", start);
}
}
}
}
println!("Rendered HTML: {}", html); println!("Rendered HTML: {}", html);
// Check that the calendar table highlights Thursday, not Friday
// Look for a table header row with days of week (allow whitespace) // Look for September 11 (Thursday) being highlighted
let thursday_idx = html // The calendar should show Sept 11 highlighted with background:#ffd700 and the correct data-event-day
.find(">\n Thu<") assert!(html.contains(r#"data-event-day="2025-09-11""#));
.or_else(|| html.find(">Thu<")) assert!(html.contains(r#"background:#ffd700"#));
.expect("Should have a Thursday column");
let friday_idx = html // Since 1:00 AM UTC on Friday 9/12 is 6:00 PM PDT on Thursday 9/11, verify times are correct
.find(">\n Fri<") assert!(html.contains("6:00 PM Thu Sep 11, 2025"));
.or_else(|| html.find(">Fri<"))
.expect("Should have a Friday column");
// Find the first highlighted cell (background:#ffd700)
let highlight_idx = html
.find("background:#ffd700")
.expect("Should highlight a day");
// The highlight should be closer to Thursday than Friday
assert!(
highlight_idx > thursday_idx && highlight_idx < friday_idx,
"Thursday should be highlighted, not Friday"
);
} }
use super::*; use super::*;
#[test] #[test]

View File

@ -7,6 +7,7 @@ use async_graphql::{
Union, Union,
}; };
use cacher::FilesystemCacher; use cacher::FilesystemCacher;
use chrono::{DateTime, Utc};
use futures::stream; use futures::stream;
use letterbox_notmuch::Notmuch; use letterbox_notmuch::Notmuch;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
@ -628,6 +629,42 @@ impl MutationRoot {
nm.tag_remove(&tag, &query)?; nm.tag_remove(&tag, &query)?;
Ok(true) Ok(true)
} }
#[instrument(skip_all, fields(query=query, wake_time=wake_time.to_string(), rid=request_id()))]
async fn snooze<'ctx>(
&self,
ctx: &Context<'ctx>,
query: String,
wake_time: DateTime<Utc>,
) -> Result<bool, Error> {
info!("TODO snooze {query} until {wake_time})");
let pool = ctx.data_unchecked::<PgPool>();
sqlx::query!(
r#"
INSERT INTO snooze (message_id, wake)
VALUES ($1, $2)
ON CONFLICT (message_id) DO UPDATE
SET wake = $2
"#,
query,
wake_time
)
.execute(pool)
.await?;
let nm = ctx.data_unchecked::<Notmuch>();
let pool = ctx.data_unchecked::<PgPool>();
#[cfg(feature = "tantivy")]
let tantivy = ctx.data_unchecked::<TantivyConnection>();
let unread = false;
let query: Query = query.parse()?;
newsreader::set_read_status(pool, &query, unread).await?;
#[cfg(feature = "tantivy")]
tantivy.reindex_thread(pool, &query).await?;
nm::set_read_status(nm, &query, unread).await?;
Ok(true)
}
/// Drop and recreate tantivy index. Warning this is slow /// Drop and recreate tantivy index. Warning this is slow
#[cfg(feature = "tantivy")] #[cfg(feature = "tantivy")]
async fn drop_and_load_index<'ctx>(&self, ctx: &Context<'ctx>) -> Result<bool, Error> { async fn drop_and_load_index<'ctx>(&self, ctx: &Context<'ctx>) -> Result<bool, Error> {
@ -639,6 +676,18 @@ impl MutationRoot {
Ok(true) Ok(true)
} }
#[instrument(skip_all, fields(rid=request_id()))]
async fn label_unprocessed<'ctx>(
&self,
ctx: &Context<'ctx>,
limit: Option<usize>,
) -> Result<bool, Error> {
let nm = ctx.data_unchecked::<Notmuch>();
let pool = ctx.data_unchecked::<PgPool>();
label_unprocessed(&nm, &pool, false, limit, "tag:unprocessed").await?;
Ok(true)
}
#[instrument(skip_all, fields(rid=request_id()))] #[instrument(skip_all, fields(rid=request_id()))]
async fn refresh<'ctx>(&self, ctx: &Context<'ctx>) -> Result<bool, Error> { async fn refresh<'ctx>(&self, ctx: &Context<'ctx>) -> Result<bool, Error> {
let nm = ctx.data_unchecked::<Notmuch>(); let nm = ctx.data_unchecked::<Notmuch>();
@ -648,7 +697,10 @@ impl MutationRoot {
newsreader::refresh(pool, cacher).await?; newsreader::refresh(pool, cacher).await?;
// Process email labels // Process email labels
label_unprocessed(&nm, &pool, false, Some(10), "tag:unprocessed").await?; label_unprocessed(&nm, &pool, false, Some(1000), "tag:unprocessed").await?;
// Look for snoozed messages and mark unread
wakeup(&nm, &pool).await?;
#[cfg(feature = "tantivy")] #[cfg(feature = "tantivy")]
{ {
@ -670,6 +722,33 @@ impl SubscriptionRoot {
pub type GraphqlSchema = Schema<QueryRoot, MutationRoot, SubscriptionRoot>; pub type GraphqlSchema = Schema<QueryRoot, MutationRoot, SubscriptionRoot>;
#[instrument(name = "wakeup", skip_all)]
pub async fn wakeup(nm: &Notmuch, pool: &PgPool) -> Result<(), Error> {
for row in sqlx::query!(
r#"
SELECT id, message_id
FROM snooze
WHERE wake < NOW();
"#
)
.fetch_all(pool)
.await?
{
let query: Query = row.message_id.parse()?;
info!("need to wake {query}");
let unread = true;
newsreader::set_read_status(pool, &query, unread).await?;
#[cfg(feature = "tantivy")]
tantivy.reindex_thread(pool, &query).await?;
nm::set_read_status(nm, &query, unread).await?;
sqlx::query!("DELETE FROM snooze WHERE id = $1", row.id)
.execute(pool)
.await?;
}
Ok(())
}
#[instrument(skip_all, fields(query=query))] #[instrument(skip_all, fields(query=query))]
pub async fn compute_catchup_ids( pub async fn compute_catchup_ids(
nm: &Notmuch, nm: &Notmuch,

View File

@ -19,6 +19,7 @@ use std::{
use async_trait::async_trait; use async_trait::async_trait;
use cacher::{Cacher, FilesystemCacher}; use cacher::{Cacher, FilesystemCacher};
use chrono::NaiveDateTime;
use css_inline::{CSSInliner, InlineError, InlineOptions}; use css_inline::{CSSInliner, InlineError, InlineOptions};
pub use error::ServerError; pub use error::ServerError;
use linkify::{LinkFinder, LinkKind}; use linkify::{LinkFinder, LinkKind};
@ -30,7 +31,6 @@ use maplit::{hashmap, hashset};
use regex::Regex; use regex::Regex;
use reqwest::StatusCode; use reqwest::StatusCode;
use scraper::{Html, Selector}; use scraper::{Html, Selector};
use sqlx::types::time::PrimitiveDateTime;
use thiserror::Error; use thiserror::Error;
use tracing::{debug, error, info, warn}; use tracing::{debug, error, info, warn};
use url::Url; use url::Url;
@ -754,6 +754,7 @@ pub struct Query {
pub is_notmuch: bool, pub is_notmuch: bool,
pub is_newsreader: bool, pub is_newsreader: bool,
pub is_tantivy: bool, pub is_tantivy: bool,
pub is_snoozed: bool,
pub corpus: Option<Corpus>, pub corpus: Option<Corpus>,
} }
@ -777,6 +778,9 @@ impl fmt::Display for Query {
if self.is_newsreader { if self.is_newsreader {
write!(f, "is:news ")?; write!(f, "is:news ")?;
} }
if self.is_snoozed {
write!(f, "is:snoozed ")?;
}
match self.corpus { match self.corpus {
Some(c) => write!(f, "corpus:{c:?}")?, Some(c) => write!(f, "corpus:{c:?}")?,
_ => (), _ => (),
@ -833,6 +837,7 @@ impl FromStr for Query {
let mut is_notmuch = false; let mut is_notmuch = false;
let mut is_newsreader = false; let mut is_newsreader = false;
let mut is_tantivy = false; let mut is_tantivy = false;
let mut is_snoozed = false;
let mut corpus = None; let mut corpus = None;
for word in s.split_whitespace() { for word in s.split_whitespace() {
if word == "is:unread" { if word == "is:unread" {
@ -872,6 +877,8 @@ impl FromStr for Query {
is_newsreader = true; is_newsreader = true;
} else if word == "is:newsreader" { } else if word == "is:newsreader" {
is_newsreader = true; is_newsreader = true;
} else if word == "is:snoozed" {
is_snoozed = true;
} else { } else {
remainder.push(word.to_string()); remainder.push(word.to_string());
} }
@ -890,13 +897,14 @@ impl FromStr for Query {
is_notmuch, is_notmuch,
is_newsreader, is_newsreader,
is_tantivy, is_tantivy,
is_snoozed,
corpus, corpus,
}) })
} }
} }
pub struct ThreadSummaryRecord { pub struct ThreadSummaryRecord {
pub site: Option<String>, pub site: Option<String>,
pub date: Option<PrimitiveDateTime>, pub date: Option<NaiveDateTime>,
pub is_read: Option<bool>, pub is_read: Option<bool>,
pub title: Option<String>, pub title: Option<String>,
pub uid: String, pub uid: String,
@ -914,11 +922,7 @@ async fn thread_summary_from_row(r: ThreadSummaryRecord) -> ThreadSummary {
title = clean_title(&title).await.expect("failed to clean title"); title = clean_title(&title).await.expect("failed to clean title");
ThreadSummary { ThreadSummary {
thread: format!("{NEWSREADER_THREAD_PREFIX}{}", r.uid), thread: format!("{NEWSREADER_THREAD_PREFIX}{}", r.uid),
timestamp: r timestamp: r.date.expect("post missing date").and_utc().timestamp() as isize,
.date
.expect("post missing date")
.assume_utc()
.unix_timestamp() as isize,
date_relative: format!("{:?}", r.date), date_relative: format!("{:?}", r.date),
//date_relative: "TODO date_relative".to_string(), //date_relative: "TODO date_relative".to_string(),
matched: 0, matched: 0,

View File

@ -6,7 +6,7 @@ use letterbox_shared::compute_color;
use maplit::hashmap; use maplit::hashmap;
use scraper::Selector; use scraper::Selector;
use sqlx::postgres::PgPool; use sqlx::postgres::PgPool;
use tracing::{error, info, instrument}; use tracing::{error, info, instrument, warn};
use url::Url; use url::Url;
use crate::{ use crate::{
@ -86,6 +86,10 @@ pub async fn search(
query: &Query, query: &Query,
) -> Result<Vec<(i32, ThreadSummary)>, async_graphql::Error> { ) -> Result<Vec<(i32, ThreadSummary)>, async_graphql::Error> {
info!("search({after:?} {before:?} {first:?} {last:?} {query:?}"); info!("search({after:?} {before:?} {first:?} {last:?} {query:?}");
if query.is_snoozed {
warn!("TODO implement snooze for newsreader::search");
return Ok(Vec::new());
}
if !is_newsreader_query(query) { if !is_newsreader_query(query) {
return Ok(Vec::new()); return Ok(Vec::new());
} }
@ -211,11 +215,7 @@ pub async fn thread(
} }
let title = clean_title(&r.title.unwrap_or("NO TITLE".to_string())).await?; let title = clean_title(&r.title.unwrap_or("NO TITLE".to_string())).await?;
let is_read = r.is_read.unwrap_or(false); let is_read = r.is_read.unwrap_or(false);
let timestamp = r let timestamp = r.date.expect("post missing date").and_utc().timestamp();
.date
.expect("post missing date")
.assume_utc()
.unix_timestamp();
Ok(Thread::News(NewsPost { Ok(Thread::News(NewsPost {
thread_id, thread_id,
is_read, is_read,

View File

@ -64,6 +64,10 @@ pub async fn search(
last: Option<i32>, last: Option<i32>,
query: &Query, query: &Query,
) -> Result<Vec<(i32, ThreadSummary)>, async_graphql::Error> { ) -> Result<Vec<(i32, ThreadSummary)>, async_graphql::Error> {
if query.is_snoozed {
warn!("TODO implement snooze for nm::search");
return Ok(Vec::new());
}
if !is_notmuch_query(query) { if !is_notmuch_query(query) {
return Ok(Vec::new()); return Ok(Vec::new());
} }

View File

@ -74,13 +74,7 @@
{% for week in all_days|batch(7) %} {% for week in all_days|batch(7) %}
<tr> <tr>
{% for day in week %} {% for day in week %}
{% if event_days.contains(day) && today.is_some() && today.unwrap() == day %} {% if event_days.contains(day) %}
<td
data-event-day="{{ day.format("%Y-%m-%d") }}"
style="background:#ffd700; color:#222; font-weight:bold; border:2px solid #2196f3; border-radius:4px; text-align:center; box-shadow:0 0 0 2px #2196f3;">
{{ day.day() }}
</td>
{% elif event_days.contains(day) %}
<td <td
data-event-day="{{ day.format("%Y-%m-%d") }}" data-event-day="{{ day.format("%Y-%m-%d") }}"
style="background:#ffd700; color:#222; font-weight:bold; border:1px solid #aaa; border-radius:4px; text-align:center;"> style="background:#ffd700; color:#222; font-weight:bold; border:1px solid #aaa; border-radius:4px; text-align:center;">

View File

@ -11,8 +11,8 @@ version.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
build-info = "0.0.41" build-info = "0.0.42"
letterbox-notmuch = { path = "../notmuch", version = "0.17.43", registry = "xinu" } letterbox-notmuch = { path = "../notmuch", version = "0.17", registry = "xinu" }
regex = "1.11.1" regex = "1.11.1"
serde = { version = "1.0.219", features = ["derive"] } serde = { version = "1.0.219", features = ["derive"] }
sqlx = "0.8.5" sqlx = "0.8.5"

View File

@ -9,10 +9,10 @@ repository.workspace = true
version.workspace = true version.workspace = true
[build-dependencies] [build-dependencies]
build-info-build = "0.0.41" build-info-build = "0.0.42"
[dev-dependencies] [dev-dependencies]
wasm-bindgen-test = "0.3.50" #wasm-bindgen-test = "0.3.50"
[dependencies] [dependencies]
console_error_panic_hook = "0.1.7" console_error_panic_hook = "0.1.7"
@ -24,16 +24,16 @@ serde = { version = "1.0.219", features = ["derive"] }
itertools = "0.14.0" itertools = "0.14.0"
serde_json = { version = "1.0.140", features = ["unbounded_depth"] } serde_json = { version = "1.0.140", features = ["unbounded_depth"] }
chrono = "0.4.40" chrono = "0.4.40"
graphql_client = "0.14.0" graphql_client = "0.15.0"
thiserror = "2.0.12" thiserror = "2.0.12"
gloo-net = { version = "0.6.0", features = ["json", "serde_json"] } gloo-net = { version = "0.6.0", features = ["json", "serde_json"] }
human_format = "1.1.0" human_format = "1.1.0"
build-info = "0.0.41" build-info = "0.0.42"
wasm-bindgen = "=0.2.100" wasm-bindgen = "=0.2.100"
uuid = { version = "1.16.0", features = [ uuid = { version = "1.16.0", features = [
"js", "js",
] } # direct dep to set js feature, prevents Rng issues ] } # direct dep to set js feature, prevents Rng issues
letterbox-shared = { path = "../shared/", version = "0.17.43", registry = "xinu" } letterbox-shared = { path = "../shared/", version = "0.17", registry = "xinu" }
seed_hooks = { version = "0.4.1", registry = "xinu" } seed_hooks = { version = "0.4.1", registry = "xinu" }
strum_macros = "0.27.1" strum_macros = "0.27.1"
gloo-console = "0.3.0" gloo-console = "0.3.0"

View File

@ -51,7 +51,7 @@
}, },
{ {
"args": [], "args": [],
"description": "Indicates that an Input Object is a OneOf Input Object (and thus requires\n exactly one of its field be provided)", "description": "Indicates that an Input Object is a OneOf Input Object (and thus requires exactly one of its field be provided)",
"locations": [ "locations": [
"INPUT_OBJECT" "INPUT_OBJECT"
], ],
@ -107,12 +107,14 @@
} }
], ],
"mutationType": { "mutationType": {
"name": "Mutation" "name": "MutationRoot"
}, },
"queryType": { "queryType": {
"name": "QueryRoot" "name": "QueryRoot"
}, },
"subscriptionType": null, "subscriptionType": {
"name": "SubscriptionRoot"
},
"types": [ "types": [
{ {
"description": null, "description": null,
@ -314,6 +316,16 @@
"name": "Corpus", "name": "Corpus",
"possibleTypes": null "possibleTypes": null
}, },
{
"description": "Implement the DateTime<Utc> scalar\n\nThe input/output is a string in RFC3339 format.",
"enumValues": null,
"fields": null,
"inputFields": null,
"interfaces": null,
"kind": "SCALAR",
"name": "DateTime",
"possibleTypes": null
},
{ {
"description": null, "description": null,
"enumValues": [ "enumValues": [
@ -969,6 +981,51 @@
} }
} }
}, },
{
"args": [
{
"defaultValue": null,
"description": null,
"name": "query",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
}
},
{
"defaultValue": null,
"description": null,
"name": "wakeTime",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "DateTime",
"ofType": null
}
}
}
],
"deprecationReason": null,
"description": null,
"isDeprecated": false,
"name": "snooze",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
}
},
{ {
"args": [], "args": [],
"deprecationReason": null, "deprecationReason": null,
@ -989,7 +1046,7 @@
"inputFields": null, "inputFields": null,
"interfaces": [], "interfaces": [],
"kind": "OBJECT", "kind": "OBJECT",
"name": "Mutation", "name": "MutationRoot",
"possibleTypes": null "possibleTypes": null
}, },
{ {
@ -1474,6 +1531,33 @@
"name": "String", "name": "String",
"possibleTypes": null "possibleTypes": null
}, },
{
"description": null,
"enumValues": null,
"fields": [
{
"args": [],
"deprecationReason": null,
"description": null,
"isDeprecated": false,
"name": "values",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
}
}
],
"inputFields": null,
"interfaces": [],
"kind": "OBJECT",
"name": "SubscriptionRoot",
"possibleTypes": null
},
{ {
"description": null, "description": null,
"enumValues": null, "enumValues": null,

View File

@ -0,0 +1,4 @@
mutation SnoozeMutation($query: String!, $wakeTime: DateTime!) {
snooze(query: $query, wakeTime: $wakeTime)
}

View File

@ -1,4 +1,4 @@
DEV_HOST=localhost DEV_HOST=localhost
DEV_PORT=9345 DEV_PORT=9345
graphql-client introspect-schema http://${DEV_HOST:?}:${DEV_PORT:?}/api/graphql --output schema.json graphql-client introspect-schema http://${DEV_HOST:?}:${DEV_PORT:?}/api/graphql/ --output schema.json
git diff schema.json git diff schema.json

View File

@ -1,7 +1,9 @@
use chrono::Utc;
use gloo_net::{http::Request, Error}; use gloo_net::{http::Request, Error};
use graphql_client::GraphQLQuery; use graphql_client::GraphQLQuery;
use serde::{de::DeserializeOwned, Serialize}; use serde::{de::DeserializeOwned, Serialize};
type DateTime = chrono::DateTime<Utc>;
// The paths are relative to the directory where your `Cargo.toml` is located. // The paths are relative to the directory where your `Cargo.toml` is located.
// Both json and the GraphQL schema language are supported as sources for the schema // Both json and the GraphQL schema language are supported as sources for the schema
#[derive(GraphQLQuery)] #[derive(GraphQLQuery)]
@ -52,6 +54,14 @@ pub struct AddTagMutation;
)] )]
pub struct RemoveTagMutation; pub struct RemoveTagMutation;
#[derive(GraphQLQuery)]
#[graphql(
schema_path = "graphql/schema.json",
query_path = "graphql/snooze.graphql",
response_derives = "Debug"
)]
pub struct SnoozeMutation;
#[derive(GraphQLQuery)] #[derive(GraphQLQuery)]
#[graphql( #[graphql(
schema_path = "graphql/schema.json", schema_path = "graphql/schema.json",

View File

@ -1,5 +1,6 @@
use std::collections::HashSet; use std::collections::HashSet;
use chrono::{DateTime, Utc};
use graphql_client::GraphQLQuery; use graphql_client::GraphQLQuery;
use letterbox_shared::WebsocketMessage; use letterbox_shared::WebsocketMessage;
use log::{debug, error, info, warn}; use log::{debug, error, info, warn};
@ -259,6 +260,29 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg>) {
Msg::GoToSearchResults Msg::GoToSearchResults
}); });
} }
Msg::Snooze(query, wake_time) => {
let is_catchup = model.catchup.is_some();
orders.skip().perform_cmd(async move {
let res: Result<
graphql_client::Response<graphql::snooze_mutation::ResponseData>,
gloo_net::Error,
> = send_graphql(graphql::SnoozeMutation::build_query(
graphql::snooze_mutation::Variables {
query: query.clone(),
wake_time,
},
))
.await;
if let Err(e) = res {
error!("Failed to snooze {query} until {wake_time}: {e}");
}
if is_catchup {
Msg::CatchupMarkAsRead
} else {
Msg::GoToSearchResults
}
});
}
Msg::FrontPageRequest { Msg::FrontPageRequest {
query, query,
@ -267,6 +291,7 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg>) {
first, first,
last, last,
} => { } => {
model.refreshing_state = RefreshingState::Loading;
let (after, before, first, last) = match (after.as_ref(), before.as_ref(), first, last) let (after, before, first, last) = match (after.as_ref(), before.as_ref(), first, last)
{ {
// If no pagination set, set reasonable defaults // If no pagination set, set reasonable defaults
@ -292,25 +317,32 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg>) {
}); });
} }
Msg::FrontPageResult(Err(e)) => { Msg::FrontPageResult(Err(e)) => {
error!("error FrontPageResult: {e:?}"); let msg = format!("error FrontPageResult: {e:?}");
error!("{msg}");
model.refreshing_state = RefreshingState::Error(msg);
} }
Msg::FrontPageResult(Ok(graphql_client::Response { Msg::FrontPageResult(Ok(graphql_client::Response {
data: None, data: None,
errors: None, errors: None,
.. ..
})) => { })) => {
error!("FrontPageResult no data or errors, should not happen"); let msg = format!("FrontPageResult no data or errors, should not happen");
error!("{msg}");
model.refreshing_state = RefreshingState::Error(msg);
} }
Msg::FrontPageResult(Ok(graphql_client::Response { Msg::FrontPageResult(Ok(graphql_client::Response {
data: None, data: None,
errors: Some(e), errors: Some(e),
.. ..
})) => { })) => {
error!("FrontPageResult error: {e:?}"); let msg = format!("FrontPageResult error: {e:?}");
error!("{msg}");
model.refreshing_state = RefreshingState::Error(msg);
} }
Msg::FrontPageResult(Ok(graphql_client::Response { Msg::FrontPageResult(Ok(graphql_client::Response {
data: Some(data), .. data: Some(data), ..
})) => { })) => {
model.refreshing_state = RefreshingState::None;
model.tags = Some( model.tags = Some(
data.tags data.tags
.into_iter() .into_iter()
@ -350,6 +382,7 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg>) {
} }
Msg::ShowThreadRequest { thread_id } => { Msg::ShowThreadRequest { thread_id } => {
model.refreshing_state = RefreshingState::Loading;
orders.skip().perform_cmd(async move { orders.skip().perform_cmd(async move {
Msg::ShowThreadResult( Msg::ShowThreadResult(
send_graphql(graphql::ShowThreadQuery::build_query( send_graphql(graphql::ShowThreadQuery::build_query(
@ -362,6 +395,7 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg>) {
Msg::ShowThreadResult(Ok(graphql_client::Response { Msg::ShowThreadResult(Ok(graphql_client::Response {
data: Some(data), .. data: Some(data), ..
})) => { })) => {
model.refreshing_state = RefreshingState::None;
model.tags = Some( model.tags = Some(
data.tags data.tags
.into_iter() .into_iter()
@ -401,9 +435,12 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg>) {
orders.send_msg(Msg::WindowScrolled); orders.send_msg(Msg::WindowScrolled);
} }
Msg::ShowThreadResult(bad) => { Msg::ShowThreadResult(bad) => {
error!("show_thread_query error: {bad:#?}"); let msg = format!("show_thread_query error: {bad:#?}");
error!("{msg}");
model.refreshing_state = RefreshingState::Error(msg);
} }
Msg::CatchupRequest { query } => { Msg::CatchupRequest { query } => {
model.refreshing_state = RefreshingState::Loading;
orders.perform_cmd(async move { orders.perform_cmd(async move {
Msg::CatchupResult( Msg::CatchupResult(
send_graphql::<_, graphql::catchup_query::ResponseData>( send_graphql::<_, graphql::catchup_query::ResponseData>(
@ -418,6 +455,7 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg>) {
Msg::CatchupResult(Ok(graphql_client::Response { Msg::CatchupResult(Ok(graphql_client::Response {
data: Some(data), .. data: Some(data), ..
})) => { })) => {
model.refreshing_state = RefreshingState::None;
let items = data.catchup; let items = data.catchup;
if items.is_empty() { if items.is_empty() {
orders.send_msg(Msg::GoToSearchResults); orders.send_msg(Msg::GoToSearchResults);
@ -433,7 +471,9 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg>) {
} }
} }
Msg::CatchupResult(bad) => { Msg::CatchupResult(bad) => {
error!("catchup_query error: {bad:#?}"); let msg = format!("catchup_query error: {bad:#?}");
error!("{msg}");
model.refreshing_state = RefreshingState::Error(msg);
} }
Msg::SelectionSetNone => { Msg::SelectionSetNone => {
if let Context::SearchResult { if let Context::SearchResult {
@ -813,6 +853,7 @@ pub enum Msg {
SetUnread(String, bool), SetUnread(String, bool),
AddTag(String, String), AddTag(String, String),
RemoveTag(String, String), RemoveTag(String, String),
Snooze(String, DateTime<Utc>),
FrontPageRequest { FrontPageRequest {
query: String, query: String,

View File

@ -78,13 +78,16 @@ mod tw_classes {
} }
pub fn view(model: &Model) -> Node<Msg> { pub fn view(model: &Model) -> Node<Msg> {
let is_loading = match model.refreshing_state {
RefreshingState::Loading => true,
_ => false,
};
match &model.context { match &model.context {
Context::None => normal_view( Context::None => normal_view(
div![h1!["Loading"]], div![h1!["Loading"]],
&model.versions, &model.versions,
&model.query, &model.query,
&model.refreshing_state, &model.refreshing_state,
model.read_completion_ratio,
&model.tags, &model.tags,
), ),
Context::ThreadResult { Context::ThreadResult {
@ -93,17 +96,23 @@ pub fn view(model: &Model) -> Node<Msg> {
} => { } => {
if let Some(catchup) = &model.catchup { if let Some(catchup) = &model.catchup {
catchup_view( catchup_view(
thread(thread_data, open_messages, &model.content_el, true), thread(thread_data, open_messages, &model.content_el, true, 0.),
&catchup.items, &catchup.items,
is_loading,
model.read_completion_ratio, model.read_completion_ratio,
) )
} else { } else {
normal_view( normal_view(
thread(thread_data, open_messages, &model.content_el, false), thread(
thread_data,
open_messages,
&model.content_el,
false,
model.read_completion_ratio,
),
&model.versions, &model.versions,
&model.query, &model.query,
&model.refreshing_state, &model.refreshing_state,
model.read_completion_ratio,
&model.tags, &model.tags,
) )
} }
@ -114,17 +123,17 @@ pub fn view(model: &Model) -> Node<Msg> {
} => { } => {
if let Some(catchup) = &model.catchup { if let Some(catchup) = &model.catchup {
catchup_view( catchup_view(
news_post(post, &model.content_el, true), news_post(post, &model.content_el, true, 0.),
&catchup.items, &catchup.items,
is_loading,
model.read_completion_ratio, model.read_completion_ratio,
) )
} else { } else {
normal_view( normal_view(
news_post(post, &model.content_el, false), news_post(post, &model.content_el, false, model.read_completion_ratio),
&model.versions, &model.versions,
&model.query, &model.query,
&model.refreshing_state, &model.refreshing_state,
model.read_completion_ratio,
&model.tags, &model.tags,
) )
} }
@ -140,7 +149,6 @@ pub fn view(model: &Model) -> Node<Msg> {
&model.versions, &model.versions,
&model.query, &model.query,
&model.refreshing_state, &model.refreshing_state,
model.read_completion_ratio,
&model.tags, &model.tags,
), ),
} }
@ -151,7 +159,6 @@ fn normal_view(
versions: &Version, versions: &Version,
query: &str, query: &str,
refreshing_state: &RefreshingState, refreshing_state: &RefreshingState,
read_completion_ratio: f64,
tags: &Option<Vec<Tag>>, tags: &Option<Vec<Tag>>,
) -> Node<Msg> { ) -> Node<Msg> {
div![ div![
@ -178,13 +185,13 @@ fn normal_view(
content, content,
view_header(query, refreshing_state, false), view_header(query, refreshing_state, false),
], ],
reading_progress(read_completion_ratio),
] ]
} }
fn catchup_view( fn catchup_view(
content: Node<Msg>, content: Node<Msg>,
items: &[CatchupItem], items: &[CatchupItem],
is_loading: bool,
read_completion_ratio: f64, read_completion_ratio: f64,
) -> Node<Msg> { ) -> Node<Msg> {
div![ div![
@ -201,13 +208,34 @@ fn catchup_view(
"bg-black/50", "bg-black/50",
], ],
div![ div![
C!["absolute", "top-0", "right-4", "text-gray-500", "p-4"], C!["absolute", "top-0", "left-4", "text-green-200", "p-4"],
span![i![C!["fas", "fa-x"]]], IF!(is_loading=>span![i![C!["animate-spin", "fas", "fa-spinner"]]])
ev(Ev::Click, move |_| Msg::CatchupExit)
], ],
h1![ h1![
C!["text-center"], C!["text-center"],
format!("{} left ", items.iter().filter(|i| !i.seen).count(),) format!("{} left ", items.iter().filter(|i| !i.seen).count(),)
],
div![
C!["absolute", "top-0", "right-4", "text-gray-500", "p-4"],
span![i![C!["fas", "fa-x"]]],
ev(Ev::Click, move |_| Msg::CatchupExit)
],
div![
C![
"absolute",
"left-0",
"right-0",
"bottom-0",
"w-full",
"h-1",
"bg-gray-200"
],
div![
C!["h-1", "bg-green-500"],
style! {
St::Width => format!("{}%", read_completion_ratio*100.)
}
]
] ]
], ],
div![C!["mt-12", "mb-20"], content], div![C!["mt-12", "mb-20"], content],
@ -247,7 +275,6 @@ fn catchup_view(
ev(Ev::Click, |_| Msg::CatchupMarkAsRead) ev(Ev::Click, |_| Msg::CatchupMarkAsRead)
] ]
], ],
reading_progress(read_completion_ratio)
] ]
} }
@ -324,8 +351,8 @@ fn search_results(
attrs! { attrs! {
At::Href => urls::thread(&tid) At::Href => urls::thread(&tid)
}, },
div![title_break, &r.subject], div![C!["line-clamp-2"], title_break, &r.subject],
span![C!["text-xs"], pretty_authors(&r.authors)], span![C!["line-clamp-2", "text-xs"], pretty_authors(&r.authors)],
div![ div![
C!["flex", "flex-wrap", "justify-between"], C!["flex", "flex-wrap", "justify-between"],
span![tags_chiclet(&tags)], span![tags_chiclet(&tags)],
@ -727,9 +754,11 @@ fn render_open_header(msg: &ShowThreadQueryThreadOnEmailThreadMessages) -> Node<
C!["flex", "p-4", "bg-neutral-800"], C!["flex", "p-4", "bg-neutral-800"],
div![avatar], div![avatar],
div![ div![
C!["px-4", "mr-auto"], C!["px-4", "flex-1"],
span![ div![
C!["font-semibold", "text-sm"], C!["flex"],
div![
C!["font-semibold", "text-sm", "flex-1"],
from_detail.as_ref().map(|addr| attrs! { from_detail.as_ref().map(|addr| attrs! {
At::Title => addr At::Title => addr
}), }),
@ -737,6 +766,8 @@ fn render_open_header(msg: &ShowThreadQueryThreadOnEmailThreadMessages) -> Node<
" ", " ",
from_detail.as_ref().map(|text| copy_text_widget(&text)) from_detail.as_ref().map(|text| copy_text_widget(&text))
], ],
snooze_buttons(msg.timestamp, &id),
],
IF!(!msg.to.is_empty() =>div![ IF!(!msg.to.is_empty() =>div![
C!["text-xs"], C!["text-xs"],
span![ span![
@ -1144,6 +1175,7 @@ fn thread(
open_messages: &HashSet<String>, open_messages: &HashSet<String>,
content_el: &ElRef<HtmlElement>, content_el: &ElRef<HtmlElement>,
catchup_mode: bool, catchup_mode: bool,
read_completion_ratio: f64,
) -> Node<Msg> { ) -> Node<Msg> {
// TODO(wathiede): show per-message subject if it changes significantly from top-level subject // TODO(wathiede): show per-message subject if it changes significantly from top-level subject
let subject = if thread.subject.is_empty() { let subject = if thread.subject.is_empty() {
@ -1228,7 +1260,8 @@ fn thread(
el_ref(content_el), el_ref(content_el),
messages, messages,
IF!(!catchup_mode => click_to_top()) IF!(!catchup_mode => click_to_top())
] ],
reading_progress(read_completion_ratio)
] ]
} }
@ -1371,7 +1404,7 @@ pub fn view_tags(tags: &Option<Vec<Tag>>) -> Node<Msg> {
}, },
], ],
a![ a![
C!["grow", "truncate"], C![indent_cls, "grow", "truncate"],
attrs! { attrs! {
At::Href => href At::Href => href
}, },
@ -1472,6 +1505,7 @@ fn news_post(
post: &ShowThreadQueryThreadOnNewsPost, post: &ShowThreadQueryThreadOnNewsPost,
content_el: &ElRef<HtmlElement>, content_el: &ElRef<HtmlElement>,
catchup_mode: bool, catchup_mode: bool,
read_completion_ratio: f64,
) -> Node<Msg> { ) -> Node<Msg> {
let subject = &post.title; let subject = &post.title;
set_title(subject); set_title(subject);
@ -1559,6 +1593,7 @@ fn news_post(
] ]
], ],
IF!(!catchup_mode => click_to_top()), IF!(!catchup_mode => click_to_top()),
reading_progress(read_completion_ratio)
] ]
} }
fn render_news_post_header(post: &ShowThreadQueryThreadOnNewsPost) -> Node<Msg> { fn render_news_post_header(post: &ShowThreadQueryThreadOnNewsPost) -> Node<Msg> {
@ -1594,9 +1629,13 @@ fn render_news_post_header(post: &ShowThreadQueryThreadOnNewsPost) -> Node<Msg>
C!["flex", "p-4", "bg-neutral-800"], C!["flex", "p-4", "bg-neutral-800"],
div![favicon], div![favicon],
div![ div![
C!["px-4", "mr-auto"], C!["px-4", "mr-auto", "flex-1"],
div![ div![
div![C!["font-semibold", "text-sm"], from], div![
C!["flex"],
div![C!["font-semibold", "text-sm", "flex-1"], from],
snooze_buttons(Some(post.timestamp), &id),
],
div![ div![
C!["flex", "gap-2", "pt-2", "text-sm"], C!["flex", "gap-2", "pt-2", "text-sm"],
a![ a![
@ -1691,3 +1730,47 @@ fn click_to_top() -> Node<Msg> {
ev(Ev::Click, |_| Msg::ScrollToTop) ev(Ev::Click, |_| Msg::ScrollToTop)
] ]
} }
fn snooze_buttons(timestamp: Option<i64>, id: &str) -> Node<Msg> {
div![
span![C!["px-2"], ""],
button![
tw_classes::button(),
C!["rounded-r-none"],
"1d",
ev(Ev::Click, {
let id = id.to_string();
move |e| {
e.stop_propagation();
Msg::Snooze(id, Utc::now() + chrono::Days::new(1))
}
})
],
button![
tw_classes::button(),
C!["rounded-none"],
"7d",
ev(Ev::Click, {
let id = id.to_string();
move |e| {
e.stop_propagation();
Msg::Snooze(id, Utc::now() + chrono::Days::new(7))
}
})
],
timestamp.map(
|ts| chrono::DateTime::from_timestamp(ts, 0).map(|ts| button![
tw_classes::button(),
C!["rounded-l-none"],
"+6m",
ev(Ev::Click, {
let id = id.to_string();
move |e| {
e.stop_propagation();
Msg::Snooze(id, ts + chrono::Days::new(180))
}
})
])
),
]
}