Scott Reilly
15a05df622
XProfile: Add aliases for Performance team badge classes since the slugs aren't directly based on the name.
...
Build files and push to `build` branch. / build (push) Has been cancelled
CI / PHP CodeSniffer (push) Has been cancelled
CI / PHP Unit Tests (7.4) (push) Has been cancelled
Props @dhrumilkumbhani
Fixes #336
2025-02-03 13:12:48 -07:00
Kelly Dwan
c703c7cefa
Pledge edit button: Style the dialog on small screens
2024-09-02 18:57:21 -04:00
Kelly Dwan
fd86d4bbe5
Pledge form: Fix spacing on confirmation email message
2024-09-02 12:09:12 -04:00
Kelly Dwan
b22bde9415
New blocks: Add blocks for the pledge contributors & pledge teams lists
2024-08-28 19:46:41 -04:00
Kelly Dwan
cbabdbb33e
Theme: Add blocks and block binding for pledge details
...
See #276
2024-08-28 17:34:34 -04:00
Kelly Dwan
4ef41983af
Theme: Prevent button block styles from bleeding into pledge form
...
This fixes an issue where adding the button block classes to the pledge form was creating double-button styles. This also fixes a mistakenly removed class on the remove contributor button.
Follow up to 5d76b97557
2024-08-28 10:44:39 -04:00
Kelly Dwan
5d76b97557
Pledge form: Style the form
2024-08-27 21:30:10 -04:00
Kelly Dwan
bb25e0c78b
Tools: Add formatting command, run to fix minor phpcs issues
2024-08-27 13:43:27 -04:00
Paul Kevan
aecac300ce
Update reports.php ( #272 )
...
Make use of new usermeta `last_activity_tracker` to more accurately see when a user had an interaction.
This should allow more accurate reporting, since last login can sometime be very old.
2024-08-08 16:37:53 +01:00
Paul Kevan
73455fe3c8
Update reports.php ( #268 )
...
- enqueue css on new report
- protect against PHP warnings
2024-07-05 10:29:21 +01:00
Paul Kevan
b584bf354e
Add contributors report, and allow data to be downloaded. ( #267 )
...
* Add contributors report, and allow data to be downloaded.
2024-07-03 14:03:23 +01:00
Paul Kevan
c880f28a63
Update contributor.php ( #266 )
...
* Update contributor.php
Store wporg user id as post meta to enable easier reporting for contributors.
2024-07-03 10:58:19 +01:00
Paul Kevan
6b57bb1e7e
Switch pledge URL ( #256 )
...
Change for more usable field
2024-05-30 14:39:33 +01:00
Paul Kevan
c244c7e596
Update reports.php ( #255 )
...
Bump limit as it's too low.
2024-05-23 15:23:52 +01:00
Paul Kevan
1cabbc9729
Add company reports functionality ( #252 )
...
* Reorder includes to be alphabetic
* Add reports and styling
2024-05-23 10:32:10 +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
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
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
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
Ian Dunn
bb0216adc6
Replace deprecated SANITIZE_STRING
filter with UNSAFE_RAW
.
...
`FILTER_UNSAFE_RAW` doesn't strip HTML tags like `FILTER_SANITIZE_STRING` did, but some of these are being run through `sanitize_text_field` as well, and the others aren't being output or saved to the database.
See https://stackoverflow.com/a/69207369/450127
2022-07-19 11:03:35 -07:00
Ian Dunn
87979f588f
Update to PHPUnit 9 for PHP 8 compatibility
2022-07-19 09:33:34 -07:00
Ian Dunn
428cde283c
Contributors: Clear object cache when resetting profile data.
...
BuddyPress sets it infinitely, so for some users it would be awhile before it would be pushed out organically.
2022-05-03 12:36:16 -07:00
Ian Dunn
c6d7bbb7c1
Contributors: Reset profile hours when pledge deactivated.
...
See https://github.com/WordPress/five-for-the-future/issues/169
2022-05-02 14:22:26 -07:00
Ian Dunn
834c62c0d0
Plugin: Minor cleanup
2022-04-28 09:34:14 -07:00
Ian Dunn
53ae291a53
Apply coding standards
2022-04-28 06:51:16 -07:00
Ian Dunn
82c8c9aec6
Email: Update Reply-To
address to new mailbox.
2022-04-28 06:35:33 -07:00
Ian Dunn
5d8b056798
Manage Pledge: Normalize addresses to lowercase for comparison.
...
Fixes #141
2022-03-28 14:17:29 -07:00
Corey McKrill
174a0381d6
Theme: Add support for Openverse team, fix Themes Team badge
...
This syncs `r17406-dotorg` to the canonical Git repo.
2022-03-18 12:42:05 -07:00