Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Historical numbers and Interactive Labels #2405

Merged
merged 89 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
09a1c07
implementation for historical numbers
RK206 Jun 25, 2024
c591ee0
add banners text
amdomanska Jun 25, 2024
6fb37ae
add top banner
amdomanska Jun 25, 2024
f669080
tiny scss adjustment
amdomanska Jun 25, 2024
a7af522
generate banner text randomly
amdomanska Jun 25, 2024
95da7d0
read cms data from the template rather than directly
amdomanska Jun 25, 2024
88eb164
refactor the renderGroupInfo function in dashboard
amdomanska Jun 26, 2024
9912615
move activities to includes file
amdomanska Jun 28, 2024
ea73f56
add historical statistics
amdomanska Jun 28, 2024
8f02b97
remove js-yaml
amdomanska Jun 28, 2024
80d601c
remove commented out code
amdomanska Jun 28, 2024
7c36573
start testdrive implementation
amdomanska Jun 28, 2024
9dc508e
add helpers class
amdomanska Jul 1, 2024
79b2096
Add testdrive
amdomanska Jul 3, 2024
0a62647
add functional tests
amdomanska Jul 3, 2024
05aabde
small change to functional tests
amdomanska Jul 3, 2024
aadbed0
fixes to testdrive
amdomanska Jul 3, 2024
e5396d2
change name of variable
amdomanska Jul 3, 2024
594910b
Merge branch 'develop' into feature/3849_historical_numbers
amdomanska Jul 3, 2024
bcc2e95
fix tab behaviour
amdomanska Jul 9, 2024
1116bb1
remove accidental csv files
amdomanska Jul 9, 2024
1379328
remove accidental file
amdomanska Jul 9, 2024
b79d3e6
Merge branch 'develop' into feature/3849_historical_numbers
amdomanska Jul 29, 2024
fd29ab6
add unassigned fragment to 'by editor' list
amdomanska Jul 29, 2024
7536426
add interactive color legend
amdomanska Jul 29, 2024
06d70b0
simplify the progress-bar scss file and add title to the color legend…
amdomanska Jul 29, 2024
3ae0e37
add functional test
amdomanska Jul 29, 2024
e9a6135
Merge branch 'develop' into feature/3849_historical_numbers
richard-jones Sep 4, 2024
1b249f3
a bit of code tidy up
richard-jones Sep 5, 2024
6918646
minor wording change to motivational banner
richard-jones Sep 5, 2024
ec6536d
display 0 for groups with no apps
amdomanska Sep 12, 2024
5808c8e
remove package json files
amdomanska Sep 12, 2024
dfd8128
rm unnecessary file
amdomanska Sep 12, 2024
795d186
rm unnecessary file
amdomanska Sep 12, 2024
8bf5ee3
correct historical statistics functional test for admin
amdomanska Sep 12, 2024
0a0eea0
ensure index consistency in statistics testdrive
amdomanska Sep 12, 2024
bb47fb4
Refactor methods names
amdomanska Sep 12, 2024
7def99d
check for hs being none
amdomanska Sep 12, 2024
f0730ab
add mini tour to the colour legend links
amdomanska Sep 23, 2024
1b6ef34
Merge branch 'feature/3849_historical_numbers' into feature/3917_sear…
amdomanska Sep 23, 2024
6f4b5d0
add editor and remove assed from the new tour
amdomanska Oct 1, 2024
bcb1089
implementation for historical numbers
RK206 Jun 25, 2024
0e7b3c2
add banners text
amdomanska Jun 25, 2024
218884e
add top banner
amdomanska Jun 25, 2024
f73ff70
tiny scss adjustment
amdomanska Jun 25, 2024
3e2fbdf
generate banner text randomly
amdomanska Jun 25, 2024
c8517bd
read cms data from the template rather than directly
amdomanska Jun 25, 2024
a1703f8
refactor the renderGroupInfo function in dashboard
amdomanska Jun 26, 2024
ec85d0f
move activities to includes file
amdomanska Jun 28, 2024
44d84fb
add historical statistics
amdomanska Jun 28, 2024
5436de9
remove js-yaml
amdomanska Jun 28, 2024
ad23cfe
remove commented out code
amdomanska Jun 28, 2024
06fb3b3
start testdrive implementation
amdomanska Jun 28, 2024
c8d0ddb
add helpers class
amdomanska Jul 1, 2024
47dc49b
Add testdrive
amdomanska Jul 3, 2024
8910628
add functional tests
amdomanska Jul 3, 2024
0498269
small change to functional tests
amdomanska Jul 3, 2024
94134c1
fixes to testdrive
amdomanska Jul 3, 2024
0307794
change name of variable
amdomanska Jul 3, 2024
45a5953
fix tab behaviour
amdomanska Jul 9, 2024
898ac77
remove accidental csv files
amdomanska Jul 9, 2024
36d39cf
remove accidental file
amdomanska Jul 9, 2024
398524d
add unassigned fragment to 'by editor' list
amdomanska Jul 29, 2024
7adf2f2
a bit of code tidy up
richard-jones Sep 5, 2024
bdabd30
minor wording change to motivational banner
richard-jones Sep 5, 2024
1c66a71
display 0 for groups with no apps
amdomanska Sep 12, 2024
2ef0d53
remove package json files
amdomanska Sep 12, 2024
4fa5415
rm unnecessary file
amdomanska Sep 12, 2024
6543693
rm unnecessary file
amdomanska Sep 12, 2024
1a51957
correct historical statistics functional test for admin
amdomanska Sep 12, 2024
73b32a0
ensure index consistency in statistics testdrive
amdomanska Sep 12, 2024
9e051dc
Refactor methods names
amdomanska Sep 12, 2024
f8b920e
check for hs being none
amdomanska Sep 12, 2024
5c6a9a5
dont display the header of a by status graph if no applications and a…
amdomanska Oct 1, 2024
45ac7a2
fix the name vs id bug
amdomanska Oct 1, 2024
a8c00d0
move file
amdomanska Oct 1, 2024
6a616f0
merge
amdomanska Oct 1, 2024
e538f28
update
amdomanska Oct 1, 2024
4552530
move file back
amdomanska Oct 1, 2024
58becae
remove leftover colour legend
amdomanska Oct 16, 2024
f039774
fix editors names in historical statistics
amdomanska Oct 16, 2024
a319adb
display all open applications correctly
amdomanska Oct 16, 2024
c38fb8d
dont display the header of a by status graph if no applications and a…
amdomanska Oct 16, 2024
12ee4a1
fix assed name issue
amdomanska Oct 16, 2024
df58be3
remove unnecessary tour, update the text
amdomanska Oct 16, 2024
cf8d428
hide the historical stats header when not needed
amdomanska Oct 16, 2024
f867e2e
migrate template changes to new template structure
richard-jones Oct 23, 2024
efa0d96
Merge branch 'develop' into feature/3917_search_by_status
Steven-Eardley Nov 13, 2024
0f8565a
Merge branch 'develop' into feature/3917_search_by_status
Steven-Eardley Nov 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions cms/data/motivational_banners.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
banners:
zero_count:
- "You haven't completed any applications this year yet. Start by choosing one from
the list below."
positive_count:
- "Whoa! {{ COUNT }} applications already? You’re crushing it!"
- "{{ COUNT }} applications down already? You’re on fire! Keep it up, superstar!"
- "{{ COUNT }} applications down, many more to go! Keep rocking!"
- "{{ COUNT }} applications completed? You’re making it look easy!"
- "{{ COUNT }} applications down and still going strong!"
- "Wait, you’ve completed {{ COUNT }} applications this year already? You’re on fire!"
- "Impressive! You’ve already completed {{ COUNT }} applications this year!"
- "{{ COUNT }} applications in the bag this year! You’re smashing it!"
- "Congratulations, you have completed {{ COUNT }} applications this year so far! Keep it up!"
8 changes: 8 additions & 0 deletions cms/sass/components/_alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
border: 2px solid $grapefruit;
}

&--success {
border: 2px solid $dark-green;
}

&--info {
border: 2px solid $dark-grey;
}

code {
background-color: rgba($dark-grey, 0.1);
}
Expand Down
13 changes: 13 additions & 0 deletions cms/sass/components/_motivational-banner.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.motivational-banner {
width: 100%;

h3 {
text-align: center;
margin-bottom: 0;

.tag {
margin: 0 $spacing-02;
}
}

}
33 changes: 2 additions & 31 deletions cms/sass/components/_progress-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,10 @@
align-items: center;
padding: 0 $spacing-03;
height: 50px;
text-decoration: none;
color: $warm-black;
// truncate text if it’s too long — user will need to hover to see full info
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: inherit;
text-decoration: inherit;
}
}

.progress-bar__bar--pending {
background-color: $yellow;
}

.progress-bar__bar--in-progress {
background-color: $light-green;
}

.progress-bar__bar--completed {
background-color: $mid-green;

.progress-bar__link {
color: $white;
}
}

.progress-bar__bar--ready {
background-color: $dark-green;

.progress-bar__link {
color: $white;
}
}

.progress-bar__bar--on-hold {
background-color: $light-grey;
}
4 changes: 3 additions & 1 deletion cms/sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"components/loading",
"components/logo",
"components/modal",
"components/motivational-banner",
"components/notifications",
"components/numbered-table",
"components/pager-buttons",
Expand Down Expand Up @@ -72,5 +73,6 @@

"themes/dashboard",
"themes/editorial-form",
"themes/timeline"
"themes/timeline",
"themes/activity-section"
;
54 changes: 54 additions & 0 deletions cms/sass/themes/_activity-section.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@

.activity-section {

.status {

text-decoration: none;

&--link {
&:hover,
&:focus,
&:active {
color: $grapefruit;
text-decoration: none;
}
}

&--pending {
background-color: $yellow;
color: $warm-black;
}

&--in-progress {
background-color: $light-green;
color: $warm-black;
}

&--completed {
background-color: $mid-green;
color: $warm-black;
}

&--ready {
background-color: $dark-green;
color: $white;
}

&--on-hold {
background-color: $light-grey;
color: $warm-black;
}
}

.color-legend {
font-size: 18px;

li:not(:first-child) {
margin-left: $spacing-01;
}

a {
padding: $spacing-02;
}
}
}
13 changes: 13 additions & 0 deletions cms/tours/application_by_status.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
steps:
- selector: '#color-legend'
title: Colour legend links
content:
<p>
<strong>Each label in the colour legend now works as a link!</strong><br />
Clicking a label will take you to the search page, filtered by the currently viewed group
and the specific application status.
</p>

- selector: '#feature_tour_nav'
title: Want to see this tip again?
content: Take the tour again by selecting it from the Feature Tours menu.
7 changes: 7 additions & 0 deletions doajtest/testbook/dashboard/editorial_group_status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ tests:
to this group.
- The number of search results is the same as shown on the dashboard
- step: Go back to the dashboard page
- step: Click on one of the statuses in the colour legend under "Open Applications" header (you may want to
right click to keep the dashboard tab open during this test)
results:
- You are taken to the application search which shows the open applications in
that status
- The number of search results is the same as shown on the dashboard
- step: Go back to the dashboard page
- step: Click on an editor's name
results:
- A mail window opens in your mail client
Expand Down
94 changes: 94 additions & 0 deletions doajtest/testbook/dashboard/historical_stats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
suite: Dashboard
testset: Historical Statistics
tests:
- title: Historical Statistics Display - Managing Editor with 3 groups
context:
role: admin
testdrive: statistics
steps:
- step: Navigate to "/testdrive/statistics" and wait for the page to load slowly. This should be done once at the beginning of the test session and not refreshed between individual tests.
- step: Log in with provided managing_editor credentials.
results:
- User dashboard is displayed.
- step: Verify historical statistics in the Activity section at the bottom.
results:
- Three groups are displayed.
- Only associate editors are shown in the Activity section for each group.
- Each group has the correct statistics for the current year.
- The number of READY/COMPLETED applications matches the "additional information" table.
- step: Log out.
- step: (Optional) Click the link at the bottom of the testdrive page to free resources after finishing this test session.
- title: Historical Statistics Display - Editor with 2 groups
context:
role: editor
testdrive: statistics
steps:
- step: Navigate to "/testdrive/statistics" and wait for the page to load slowly. This should be done once at the beginning of the test session and not refreshed between individual tests.
- step: Log in with provided editor_1 credentials.
results:
- User dashboard is displayed.
- step: Verify the motivational banner at the top of the dashboard (green) and check number of finished applications.
results:
- The motivational banner is GREEN and shows the correct sum of applications finished in both groups.
- step: Verify historical statistics in the Activity section at the bottom.
results:
- Two groups are displayed.
- Only associate editors are shown in the Activity section for each group.
- Each group has the correct statistics for the current year.
- The number of READY/COMPLETED applications matches the "additional information" table.
- step: Log out.
- step: (Optional) Click the link at the bottom of the testdrive page to free resources after finishing this test session.
- title: Historical Statistics Display - Editor with 1 group
context:
role: editor
testdrive: statistics
steps:
- step: Navigate to "/testdrive/statistics" and wait for the page to load slowly. This should be done once at the beginning of the test session and not refreshed between individual tests.
- step: Log in with provided editor_2 credentials.
results:
- User dashboard is displayed.
- step: Verify the motivational banner at the top of the dashboard (green) and check number of finished applications.
results:
- The motivational banner is GREEN and shows the correct sum of applications finished in the group.
- step: Verify historical statistics in the Activity section at the bottom.
results:
- One group is displayed.
- Only associate editors are shown in the Activity section for the group.
- The group has the correct statistics for the current year.
- The number of READY/COMPLETED applications matches the "additional information" table.
- step: Log out.
- step: (Optional) Click the link at the bottom of the testdrive page to free resources after finishing this test session.
- title: Historical Statistics Display - Associate Editors with 0 finished applications
context:
role: associate editor
testdrive: statistics
steps:
- step: Navigate to "/testdrive/statistics" and wait for the page to load slowly. This should be done once at the beginning of the test session and not refreshed between individual tests.
- step: Log in with provided associate_editor_1 credentials.
results:
- User dashboard is displayed.
- step: Verify the motivational banner at the top of the dashboard (grey).
results:
- The motivational banner is GREY with appropriate information about no finished applications.
- step: Verify no statistics are displayed at the bottom of the page.
results:
- No statistics are displayed in the Activity section.
- step: Log out.
- step:
- title: Historical Statistics Display - Associate Editor 2
context:
role: associate editor
testdrive: statistics
steps:
- step: Navigate to "/testdrive/statistics" and wait for the page to load slowly. This should be done once at the beginning of the test session and not refreshed between individual tests.
- step: Log in with provided associate_editor_2 credentials.
results:
- User dashboard is displayed.
- step: Verify the motivational banner at the top of the dashboard (green).
results:
- The motivational banner is GREEN.
- step: Verify no statistics are displayed at the bottom of the page.
results:
- No statistics are displayed in the Activity section.
- step: Log out.
- step: (Optional) Click the link at the bottom of the testdrive page to free resources after finishing this test session.
Loading
Loading