Commit graph

275 commits

Author SHA1 Message Date
Kelly Dwan 5914f2059e
Tools: Fetch wporg css during build workflow 2024-08-27 14:10:01 -04:00
Kelly Dwan 11b10bac00
Tools: Pass through package manager to use for build workflow 2024-08-27 14:04:52 -04:00
Kelly Dwan 33075ceec0
Tools: Add build workflow to create build automatically 2024-08-27 13:53:19 -04:00
Kelly Dwan 512d7ba421
Theme 2024: Initial commit of new theme 2024-08-27 13:45:46 -04:00
Kelly Dwan 50c21b4e85
Tools: Add phpunit test support inside wp-env container 2024-08-27 13:43:27 -04:00
Kelly Dwan bb25e0c78b
Tools: Add formatting command, run to fix minor phpcs issues 2024-08-27 13:43:27 -04:00
Kelly Dwan 28b102bc4c
Tools: Update node env, composer packages, add wp-env 2024-08-27 13:34:22 -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 7578f662ab
Badges: add core performance team badge. (#269)
Fixes #230.
2024-07-11 12:07:14 +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 554347ac52
Sync with base theme. (#264) 2024-06-27 15:01:03 +01:00
Paul Kevan 0fa0278ac7
Fix build scripts for CSS, due to depreciation of node-sass (#263) 2024-06-27 10:26:44 +01:00
Paul Kevan 71fa5ab5d3
Sync changes from production (#262)
* Sync changes from production
2024-06-26 14:35:52 +01:00
Paul Kevan 26e6def921
Add custom CSS for sustainability team badge. (#261)
Fixes #258.
2024-06-26 13:34:00 +01:00
Paul Kevan 176cea1a3d
Add badge functionality (#257)
* Add badge functionality

Add sustainability badge, needs some nicer CSS, but will do temporarily.

Fixes #246.

* Update functions.php

remove whitespace
2024-06-12 16:19:16 +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
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