analytics/lib/plausible_web/controllers
RobertJoonas d2270f3c35
Small bugfix + refactor email reports (#3642)
* use more convenient testing functions

* do not display + sign with 0% change in emails

* Rename module/file/function names

before, `weekly_report` was also used for monthly reports and that was a
bit confusing to read in code.

* Refactor send_email_report.ex

This commit improves readability by refactoring the code into smaller
functions and reducing the number of arguments given to functions.

But more importantly, it stops making duplicate stats queries for every
email recipient by moving the queries out of the for loop.

* Refactor: move querying logic out of the worker module

and merge all stats information under a single `stats` assign.
2023-12-21 12:56:06 +00:00
..
api Small bugfix + refactor email reports (#3642) 2023-12-21 12:56:06 +00:00
site Move limit enforcement to accepting site ownership transfer (#3612) 2023-12-20 14:56:49 +00:00
admin_controller.ex Clean up legacy trials code + displaying limits (#3620) 2023-12-13 10:47:50 +00:00
auth_controller.ex Clean up legacy trials code + displaying limits (#3620) 2023-12-13 10:47:50 +00:00
avatar_controller.ex Nolt sso (along with a better nav dropdown) (#3395) 2023-10-17 12:01:27 +03:00
billing_controller.ex Move limit enforcement to accepting site ownership transfer (#3612) 2023-12-20 14:56:49 +00:00
error_report_controller.ex Simplify Phoenix error template (#2913) 2023-05-16 10:52:17 +02:00
helpers.ex Simplify Phoenix error template (#2913) 2023-05-16 10:52:17 +02:00
invitation_controller.ex Move limit enforcement to accepting site ownership transfer (#3612) 2023-12-20 14:56:49 +00:00
page_controller.ex add landing page (#2989) 2023-06-01 14:34:48 +03:00
site_controller.ex Clean up legacy trials code + displaying limits (#3620) 2023-12-13 10:47:50 +00:00
stats_controller.ex Add Browser/Version breakdown to CSV (#3599) 2023-12-12 14:39:08 +01:00
unsubscribe_controller.ex Add presence check when unsubscribing from email reports 2021-05-03 16:56:46 +03:00