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
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
Ian Dunn
cdd7e0b383
Add stub for bump_stats_extra()
.
2022-08-02 11:08:47 -07:00
Ian Dunn
ce43d6952a
Composer: Allow phpcodesniffer-composer-installer
to run.
2022-08-02 11:07:12 -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
3f96573795
Bin: Add script for stopgap stats
2022-06-02 13:56:59 -07:00
Ian Dunn
94d979f8a4
Theme: Add gap
between page-header-controls
forms.
...
Fixes #175
2022-05-03 17:04:50 -07:00
Ian Dunn
71857b42eb
Theme: Merge page-header-controls
styles for clarity.
2022-05-03 16:52:33 -07:00
Ian Dunn
37159e1821
Theme: Install postcss as peer dependency to fix watcher.
...
See https://github.com/postcss/autoprefixer/issues/1358#issuecomment-693175534
See https://github.com/postcss/autoprefixer/issues/1358#issuecomment-809430066
2022-05-03 16:23:41 -07:00
Ian Dunn
cbc0afb39b
Tests: Add PHPUnit-Polyfills
to fix broken tests in GH workflow.
...
e.g., https://github.com/WordPress/five-for-the-future/runs/5605920046?check_suite_focus=true
2022-05-03 15:51:42 -07:00