Skip to content

Commit 6d13674

Browse files
authored
Merge pull request #429 from ProgressPlanner/develop
v1.3.0
2 parents f744374 + 6d42b1b commit 6d13674

90 files changed

Lines changed: 2909 additions & 1562 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
name: New recommendation
2+
description: Suggest a new recommendation to be added to the Progress Planner
3+
title: "[Recommendation] "
4+
labels: ["enhancement", "recommendation"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thank you for suggesting a new recommendation! Please fill out the following information to help us evaluate and implement your suggestion.
10+
11+
**Note:** All fields are required unless marked as optional.
12+
13+
- type: input
14+
id: title
15+
attributes:
16+
label: Recommendation title
17+
description: A clear, concise title for the recommendation
18+
placeholder: "e.g., Update WordPress Core"
19+
validations:
20+
required: true
21+
22+
- type: textarea
23+
id: description
24+
attributes:
25+
label: Recommendation description
26+
description: A detailed description of what the recommendation entails
27+
placeholder: "Describe what needs to be done to complete this recommendation..."
28+
validations:
29+
required: true
30+
31+
- type: dropdown
32+
id: category
33+
attributes:
34+
label: Recommendation category
35+
description: Select the most appropriate category for this recommendation
36+
options:
37+
- content-update
38+
- configuration
39+
- remote
40+
- user
41+
- other
42+
validations:
43+
required: true
44+
45+
- type: input
46+
id: other_category
47+
attributes:
48+
label: Other category
49+
description: If you selected "other", please specify the category
50+
placeholder: "Specify the category"
51+
validations:
52+
required: false
53+
54+
- type: input
55+
id: capability
56+
attributes:
57+
label: Required capability
58+
description: "If you know: the WordPress capability required to perform this recommendation, e.g., manage_options, edit_others_posts"
59+
placeholder: "e.g., manage_options"
60+
validations:
61+
required: false
62+
63+
- type: dropdown
64+
id: onboarding
65+
attributes:
66+
label: Onboarding recommendation
67+
description: Is this recommendation part of the initial setup/onboarding process?
68+
options:
69+
- "false"
70+
- "true"
71+
validations:
72+
required: true
73+
74+
- type: input
75+
id: points
76+
attributes:
77+
label: Points to award
78+
description: How many points should be awarded for completing this recommendation? The default is 1.
79+
value: "1"
80+
validations:
81+
required: true
82+
83+
- type: dropdown
84+
id: priority
85+
attributes:
86+
label: Recommendation priority
87+
description: How important is this recommendation?
88+
options:
89+
- low
90+
- medium
91+
- high
92+
validations:
93+
required: true
94+
95+
- type: dropdown
96+
id: dismissable
97+
attributes:
98+
label: Dismissable
99+
description: Can users dismiss this recommendation if they don't want to complete it?
100+
options:
101+
- "true"
102+
- "false"
103+
validations:
104+
required: true
105+
106+
- type: dropdown
107+
id: snoozable
108+
attributes:
109+
label: Snoozable
110+
description: Can users temporarily postpone this recommendation?
111+
options:
112+
- "true"
113+
- "false"
114+
validations:
115+
required: true
116+
117+
- type: textarea
118+
id: additional_info
119+
attributes:
120+
label: Additional Information
121+
description: Any other relevant information about this recommendation - optional -
122+
placeholder: "Add any additional context or requirements here..."
123+
validations:
124+
required: false

.github/workflows/playwright.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ jobs:
106106
# Insert test token
107107
docker exec $(docker ps -qf "name=wordpress") wp option update progress_planner_test_token $PRPL_TEST_TOKEN --allow-root
108108
109+
# Install Yoast SEO
110+
docker exec $(docker ps -qf "name=wordpress") wp plugin install wordpress-seo --activate --allow-root
111+
109112
# - name: Wait for WordPress to be ready
110113
# run: |
111114
# echo "Waiting for WordPress to be ready..."

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
= 1.3.0 =
2+
3+
Enhancements:
4+
5+
* Improved checks when adding Ravi icon to the Yoast SEO settings page.
6+
* Add "golden" tasks to weekly emails.
7+
* Add text to clarify when the user has completed all tasks.
8+
* Improve the content widget & stats to show more accurate data. It now shows content _activity_ instead of content _published_.
9+
* Implemented "valuable post-types" and added settings for them.
10+
* Changed the "create a post" task to "create valuable content".
11+
* Renamed & migrated content badges.
12+
* Added a link to the 'Create valuable content' task description.
13+
* Improve accessibility of Recommendations (and other links) linking to external resources
14+
15+
Bugs we fixed:
16+
17+
* Fixed error during plugin uninstall.
18+
* Archive_Format data collector hooks weren't registered early enough.
19+
* Ensure fresh plugin list by clearing plugin cache before checking for inactive plugins after deletion.
20+
* Clear plugin cache when checking for inactive plugins.
21+
* Delete no-longer relevant pending tasks.
22+
* Fixed timing issue for tasks added by 3rd-party plugins.
23+
124
= 1.2.0 =
225

326
In this release we've [added an integration with the **Yoast SEO** plugin](https://prpl.fyi/v12), so you’ll now see personalized suggestions based on your current SEO configuration.

assets/css/admin.css

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -420,11 +420,13 @@ button.prpl-info-icon {
420420
/*------------------------------------*\
421421
Settings popover.
422422
\*------------------------------------*/
423-
#prpl-settings-license-form,
424-
#prpl-settings-form {
423+
#prpl-settings-license-form {
425424

426425
label {
427-
display: block;
426+
display: grid;
427+
grid-template-columns: 1fr 3fr;
428+
margin-bottom: 0.5em;
429+
gap: var(--prpl-padding);
428430
}
429431

430432
p {
@@ -457,13 +459,16 @@ button.prpl-info-icon {
457459
}
458460
}
459461

460-
#prpl-settings-license-form {
461-
462-
label {
463-
display: grid;
464-
grid-template-columns: 1fr 3fr;
465-
margin-bottom: 0.5em;
466-
gap: var(--prpl-padding);
462+
/*------------------------------------*\
463+
External link accessibility helper.
464+
\*------------------------------------*/
465+
.prpl-external-link-icon {
466+
display: inline-flex;
467+
margin-inline-start: 0.25em;
468+
vertical-align: middle;
469+
470+
svg {
471+
width: 1em;
472+
height: 1em;
467473
}
468474
}
469-
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
.prpl-widget-wrapper.prpl-content-activity {
2+
3+
table {
4+
width: 100%;
5+
margin-bottom: 1em;
6+
}
7+
8+
th,
9+
td {
10+
border: none;
11+
padding: 0.5em;
12+
13+
&:not(:first-child) {
14+
text-align: center;
15+
}
16+
}
17+
18+
th {
19+
text-align: start;
20+
}
21+
22+
tbody th {
23+
font-weight: 400;
24+
}
25+
26+
thead {
27+
28+
th,
29+
td {
30+
border-bottom: 1px solid var(--prpl-color-gray-3);
31+
text-align: start;
32+
}
33+
}
34+
35+
tfoot {
36+
37+
th,
38+
td {
39+
border-top: 1px solid var(--prpl-color-gray-3);
40+
text-align: start;
41+
}
42+
}
43+
44+
tr:nth-child(even) {
45+
background-color: #f9fafb;
46+
}
47+
48+
tr:last-child td {
49+
border-bottom: none;
50+
}
51+
}

assets/css/page-widgets/published-content.css

Lines changed: 0 additions & 30 deletions
This file was deleted.

assets/css/page-widgets/suggested-tasks.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@
102102
display: flex;
103103
}
104104

105+
.prpl-no-suggested-tasks {
106+
display: none;
107+
}
108+
105109
hr {
106110
display: block;
107111
}
@@ -111,6 +115,12 @@
111115
hr {
112116
display: none;
113117
}
118+
119+
.prpl-no-suggested-tasks {
120+
display: block;
121+
background-color: var(--prpl-background-green);
122+
padding: calc(var(--prpl-padding) / 2);
123+
}
114124
}
115125

116126
.prpl-suggested-tasks-list {

assets/css/page-widgets/whats-new.css

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,22 @@
1010

1111
li {
1212

13-
> a {
14-
color: var(--prpl-color-gray-6);
15-
text-decoration: none;
16-
17-
h3 {
18-
margin-top: 0;
19-
font-size: 1.15em;
20-
font-weight: 600;
21-
22-
&::after {
23-
content: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="UTF-8"%3F><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><path fill="%23currentcolor" d="M6 1h5v5L8.86 3.85 4.7 8 4 7.3l4.15-4.16zM2 3h2v1H2v6h6V8h1v2a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"/></svg>');
24-
margin-left: 0.25em;
25-
width: 0.75em;
26-
height: 0.75em;
27-
display: inline-block;
13+
h3 {
14+
margin-top: 0;
15+
font-size: 1.15em;
16+
font-weight: 600;
17+
18+
> a {
19+
color: var(--prpl-color-headings);
20+
text-decoration: none;
21+
22+
.prpl-external-link-icon {
23+
margin-inline-start: 0.15em;
2824
}
2925
}
3026
}
3127

28+
3229
img {
3330
width: 100%;
3431
}
@@ -37,14 +34,6 @@
3734
.prpl-widget-footer {
3835
display: flex;
3936
justify-content: flex-end;
40-
41-
a::after {
42-
content: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="UTF-8"%3F><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><path fill="%23currentcolor" d="M6 1h5v5L8.86 3.85 4.7 8 4 7.3l4.15-4.16zM2 3h2v1H2v6h6V8h1v2a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"/></svg>');
43-
margin-left: 0.25em;
44-
width: 1em;
45-
height: 1em;
46-
display: inline-block;
47-
}
4837
}
4938
}
5039

0 commit comments

Comments
 (0)