analytics/lib/plausible_web
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
..
components Move limit enforcement to accepting site ownership transfer (#3612) 2023-12-20 14:56:49 +00:00
controllers Small bugfix + refactor email reports (#3642) 2023-12-21 12:56:06 +00:00
live Move limit enforcement to accepting site ownership transfer (#3612) 2023-12-20 14:56:49 +00:00
mjml Small bugfix + refactor email reports (#3642) 2023-12-21 12:56:06 +00:00
plugins Plugins API exentsions (custom props, bulk goal delete, goal creation => ListResponse always) (#3593) 2023-12-06 12:33:33 +01:00
plugs rm Hammer (#3571) 2023-12-06 15:07:37 +01:00
templates Refactor: Split up the choose_plan LV code (#3637) 2023-12-15 13:59:16 -03:00
two_factor Implement UI for 2FA setup and verification (#3541) 2023-12-06 12:01:19 +01:00
views Move limit enforcement to accepting site ownership transfer (#3612) 2023-12-20 14:56:49 +00:00
captcha.ex Include tests for Captcha success/failure scenarios (#2344) 2022-10-17 08:16:59 -03:00
email.ex Small bugfix + refactor email reports (#3642) 2023-12-21 12:56:06 +00:00
endpoint.ex Add small build option (#3536) 2023-11-20 12:52:20 +01:00
refinspector.ex [Continued] Google Analytics import (#1753) 2022-03-10 15:04:59 -06:00
remote_ip.ex Parse bunny header 2022-01-15 08:57:25 -06:00
router.ex Remove business tier feature flag (#3632) 2023-12-14 11:25:46 -03:00