Commit graph

271 commits

Author SHA1 Message Date
Paul Kevan 09d86cb0ef Revert "."
This reverts commit 9aaac4a789.
2024-05-22 16:32:05 +01:00
Paul Kevan ce2cdba297 Revert "."
This reverts commit 8d21aafaef.
2024-05-22 16:32:05 +01:00
Paul Kevan 8d21aafaef . 2024-05-22 14:12:31 +01:00
Paul Kevan 9aaac4a789 . 2024-05-22 12:29:06 +01:00
Paul Kevan 0ec4a2038a . 2024-05-22 12:21:21 +01:00
Paul Kevan e726419f62 . 2024-05-22 12:16:56 +01:00
Paul Kevan 833a9210b6 reconfig 2024-05-22 11:42:46 +01:00
Paul Kevan 73629422a3 More PHPCS config 2024-05-22 11:33:47 +01:00
Paul Kevan 1decb77332 Add new PHPCS config 2024-05-21 15:16:29 +01:00
Paul Kevan 8222cd5e9b Remove PHPCS config 2024-05-21 14:32:15 +01:00
Paul Kevan 6cb7adc8b4 phpcs 2024-05-21 12:23:53 +01:00
Paul Kevan e1016f40c1 phpcs 2024-05-21 12:18:29 +01:00
Paul Kevan b2ca511aec more phpcs 2024-05-21 12:16:21 +01:00
Paul Kevan 39bf71881f fix phpcs 2024-05-21 12:06:02 +01:00
Paul Kevan 78d22ad104 Add reports and styling 2024-05-21 11:52:40 +01:00
Paul Kevan b7bec72db3 Reorder includes to be alphabetic 2024-05-16 09:57:32 +01:00
Paul Kevan c04421f980
Fix pledge activation URL (#245)
* Fix pledge activation URL

The post id being sent by email contained the pledge ID instead of the ID for form page, this fixes that are restores the ability to confirm email address.

* Fix unrelated PHPCS
2024-02-05 13:57:51 +00:00
Dhrumil Kumbhani d96a9ff931
Fix the issue 241 (#242)
* Fix the issue 241

https://github.com/WordPress/five-for-the-future/issues/241

* Remove whitespace.
2023-12-01 10:21:51 +00:00
Ian Dunn 150ff26287
Ignore SVN readme 2023-11-06 10:40:56 -08:00
Ian Dunn ed490dfc26 Apply coding standards 2023-11-06 10:13:10 -08:00
Ian Dunn b86470575f Contributors: Add CSV report of inactive contributors 2023-11-06 10:13:10 -08:00
Ian Dunn add3f255fb Theme: Apply coding standards 2023-11-03 17:26:09 -07:00
Ian Dunn 019b814675 Tools: Upgrade WPCS to 3.x to fix PHP 8 errors 2023-11-03 17:26:09 -07:00
Ian Dunn ed37e852cc Theme: Enable the new global header/footer 2023-11-03 17:26:09 -07:00
Paul Kevan b0496e7a84
Update packages (#233) 2023-10-19 15:50:31 +01:00
Benjamin Zekavica 2ee6d9d767
Tweak CSS to preserve shape of circle (#231)
Previously, longer team names would cause it to be squished into more of an oval.
2023-10-18 16:45:42 -07:00
Paul Kevan 28c807b33c
Update _alignfull.scss (#232)
Reduce scope of alignfull class, due to use in global footer.

See: https://a8c.slack.com/archives/C0393K4ADM3/p1697642953336279?thread_ts=1697614571.486719&cid=C0393K4ADM3
2023-10-18 16:49:19 +01:00
Ian Dunn 2880d80e12
Contributors: Don't send inactivity emails to banned users.
Fixes #221
2023-02-28 16:36:49 -08:00
Ian Dunn 04413b9f6c
Tests: Make test token 32 characters to match valid length 2022-09-13 11:53:26 -07:00
Ian Dunn ec8c052204
Migrate to latest set_up() methods
See https://make.wordpress.org/core/handbook/testing/automated-testing/writing-phpunit-tests/
2022-09-13 11:53:26 -07:00
Ian Dunn 0e88966246
Add code coverage report 2022-09-13 11:53:26 -07:00
Ian Dunn 0964167f12 Apply coding standards 2022-08-29 16:21:06 -07:00
Ian Dunn 32b738d95f Contributors: Add user data for users that don't have expected meta.
Some users don't have any of the expected meta fields. The previous commit caused them to be skipped, resulting in distorted stats.
2022-08-29 16:21:06 -07:00
Ian Dunn 5f1d091185 Stats: Add stats for the % of contributors that are active. 2022-08-29 16:21:06 -07:00
Ian Dunn 0be2f859f9 Tests: Modularize database fixtures for reuse. 2022-08-29 16:21:06 -07:00
Ian Dunn c9783a17f5 Contributors: Move user_registered check to pruning function.
That allows `add_user_data_to_xprofile()` to be reused in other contexts.

`user_login` was removed from the `SELECT` because it wasn't being used.
2022-08-29 16:21:06 -07:00
Ian Dunn 9c0d1371f3 Contributors: Apply ?? before array cast, to avoid PHP notice.
See 8c28881
2022-08-29 16:21:06 -07:00
Ian Dunn cd36902bb5 Contributors: Standardize on team_names field for consistency. 2022-08-29 16:21:06 -07:00
Ian Dunn ccad917c00 Contributors: Modularize activity detection for reuse. 2022-08-29 16:21:06 -07:00
Dion Hulse 44e9daccd9
Harden endpoint against junk inputs.
This avoids a PHP Notice when the `pledge_id` is invalid, or not a valid pledge.
2022-08-25 17:59:36 +10:00
Ian Dunn 574ab7fd4e
Pledges: Email companies every 6 months to update pledges.
Fixes #211
2022-08-16 14:25:44 -07:00
Ian Dunn 8c28881812
Contributors: Apply ?? before array cast, to avoid PHP notice.
Previously the `$user->team_names` would be cast to an array before the null coalescing operator executed. If the `team_names` field wasn't set in the database, PHP would throw an error before trying to apply the null coalescing operator.
2022-08-15 10:54:11 -07:00
Ian Dunn 993bd53765
Email: Check first name exists before using.
The previous check worked when the field existed as an empty string, but threw a notice when it didn't exist.
2022-08-10 11:41:14 -07:00
Ian Dunn 4dc03ada83 Email: Set From header to bounce@ to reduce confusion
Sometimes we do want folks to reply to messages, and the `donotreply` address contradicts that. `bounce@` has a similar meaning, but is less known. `bounce@` has the advantage of matching the `Return-Path`, which may reduce the chance of a message being flagged as spam for forging the `From` header.

See https://github.com/WordPress/five-for-the-future/pull/206#discussion_r938418815
2022-08-10 10:25:29 -07:00
Ian Dunn a8ce296de5 Add cron job to send emails to inactive contributors. 2022-08-10 10:25:29 -07:00
Ian Dunn a271a3f1d6 Add email that is sent to inactive contributors. 2022-08-10 10:25:29 -07:00
Ian Dunn 80b0148f38 Add stub for natural_language_join(). 2022-08-10 10:25:29 -07:00
Ian Dunn 9e4d322b3d
Stats: Add self-sponsored hours and contributor counts.
Fixes #124

Some variables/keys to clarify their names, or makes them less verbose. See #198, #200.
2022-08-03 15:53:34 -07:00
Ian Dunn 967718263f
Stats: Store in MC instead of post type
Fixes #200
Fixes #198
2022-08-03 09:29:49 -07:00
Ian Dunn 2b17844c96
Stats: Clarify confusing "sponsored" stats
This removes the `_total_sponsored_hours` and `_total_sponsored_contributors` stats because they're not reliable or meaningfullly different from the "pledged" stats. That effectively reverts most of c1ce72d447.

The remaining variables were renamed for clarity.

See #198

This will be further clarified by #200, because it will change the labels that are displayed to viewers.
2022-08-02 16:58:51 -07:00