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

Feature/outcome1/uasc #15

Closed
wants to merge 96 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
e0d70b8
Merge pull request #4 from dfe-analytical-services/main
yauemily Mar 12, 2024
4d520b4
Adding ons data for La codes, adding function to compare and remove o…
yauemily Mar 12, 2024
c1a8fbd
Merge pull request #6 from dfe-analytical-services/main
nataliepaterson Mar 13, 2024
042c9f8
Updated text for child wellbeing & development indicators
Mar 13, 2024
d18ccb4
Added outcomes absense data
Mar 13, 2024
97bc818
Read in outcomes absense data
Mar 13, 2024
84b9a36
Updated additional info
Mar 13, 2024
ed9f12d
Updated persistent absentee headline boxes
Mar 13, 2024
c333580
Added overall absence headline boxes
Mar 13, 2024
d6a12f6
Validation on empty dropdowns
yauemily Mar 14, 2024
dbf5c18
Ensuring enabler 2 is looking at the correct LA's
yauemily Mar 14, 2024
0559827
Removed additional text for enabler 2 old LA's
yauemily Mar 14, 2024
151ba8d
Ensuring outcome 1 is looking at new LA's
yauemily Mar 14, 2024
0a4e7b5
Read in ks2 and ks4 outcomes data for education attainment domain
Mar 14, 2024
f5f6b18
Removing old LA's from outcome 2
yauemily Mar 14, 2024
dec483e
Merge pull request #7 from dfe-analytical-services/bug_fix/old_la_data
yauemily Mar 15, 2024
ab2075b
added example of extra dropdown for child wellbeing domain
yauemily Mar 15, 2024
804d8e2
Added headline boxes for KS2 and Ks4
Mar 15, 2024
2c5606f
Merge branch 'outcome1/childwellbeing&development' of https://github.…
Mar 15, 2024
961cf32
updated headline boxes
Mar 15, 2024
b344fc6
Added additional information for KS2 and KS4
Mar 15, 2024
9e67488
adding stats neighbours file
yauemily Mar 15, 2024
c22b3fe
adding statistical neighbours read data function
yauemily Mar 15, 2024
63e3db5
Updated headline boxes
Mar 15, 2024
3b84bfe
Formatted year in headline boxes
Mar 18, 2024
ba3da4e
Adding stats neighbour file into gitignore and datafiles log
yauemily Mar 18, 2024
83e1371
error handling for all headline text boxes
yauemily Mar 18, 2024
dc6a5e7
Added overall absense chart
Mar 18, 2024
2f42496
Added absence alternative table
Mar 18, 2024
56f022f
amended timeperiod format to academic year
Mar 18, 2024
1dd6866
error handling for all plots
yauemily Mar 18, 2024
7439996
Adding validation checking to all of the tables
yauemily Mar 19, 2024
6bea80e
Changed validation message to say "location" rather than "breakdown"
yauemily Mar 19, 2024
783a77d
Added ks2 chart
Mar 19, 2024
30242f8
Fixing caseload headline stats error logic and removing old caseload …
yauemily Mar 19, 2024
353bc80
added KS2 table
Mar 19, 2024
03e4bf1
Css changes for error validation message: red, bold, 18
yauemily Mar 19, 2024
04e04eb
Merge branch 'development' into feature/error_handling
yauemily Mar 19, 2024
817be88
adding initial toggle radio button for stats neighbours chart
yauemily Mar 19, 2024
5841038
Updated max rate scale for average attainment chart
Mar 19, 2024
5b3b8f3
Testing trial
yauemily Mar 19, 2024
7c64edf
Merge branch 'feature/error_handling' of https://github.com/dfe-analy…
yauemily Mar 19, 2024
931bca5
Added absence rate regional table
Mar 19, 2024
f84956a
Adding stats neighbour plotting function
yauemily Mar 19, 2024
9c37efe
Organising contents page for server and adding first server side SN p…
yauemily Mar 19, 2024
fdf2272
Added regional absence chart and table
Mar 19, 2024
7b65d59
Updated alignment
Mar 19, 2024
d1cdc2a
adding the button logic and adding functionality to enabler2 page
yauemily Mar 19, 2024
193cc4c
Added ks2 regional charts and tables
Mar 20, 2024
059bde3
Added absence LA charts
Mar 20, 2024
2b798f0
Added ks2 and Ks4 LA chart and table
Mar 20, 2024
1165dde
Updated breakdown to say location in regional charts
Mar 20, 2024
1202904
Merge branch 'development' into outcome1/childwellbeing&development
nataliepaterson Mar 20, 2024
f4660aa
Merge pull request #9 from dfe-analytical-services/outcome1/childwell…
yauemily Mar 21, 2024
996386d
Merge branch 'development' into feature/error_handling
yauemily Mar 21, 2024
0d3cacd
Merge pull request #8 from dfe-analytical-services/feature/error_hand…
yauemily Mar 21, 2024
ddc32fa
updating renv file
yauemily Mar 21, 2024
6b70505
Change region chart xaxis labels angle
yauemily Mar 21, 2024
fbdb2c0
Read in stats neighbours data
yauemily Mar 21, 2024
8749acd
Adding function for SN table alternatives
yauemily Mar 21, 2024
c252ad0
Adding stats neighbours chart and table alternative to turnover rate
yauemily Mar 21, 2024
ac34d17
adding additional info holder
yauemily Mar 21, 2024
0541bed
Adding stats neighbours to agency worker rate
yauemily Mar 21, 2024
1be5c33
Merge branch 'feature/stats_neighbours' into development
yauemily Mar 21, 2024
fb8abfa
Update read_data.R
yauemily Mar 21, 2024
7d9a6ce
Updated attainment 8 headline boxes to remove %
Mar 21, 2024
44ea07e
Add stats neighbour dummy data
Mar 22, 2024
e6a86d5
Merge pull request #10 from dfe-analytical-services/development
nataliepaterson Mar 22, 2024
3838dd6
adding vacancy rate sn charts and toggle
yauemily Mar 22, 2024
a6ec947
Added validation to attandance and attainment headline boxes charts a…
Mar 22, 2024
e228da6
Fix vacancy toggle
yauemily Mar 22, 2024
ae16c75
Adding caseload SN charts and tables
yauemily Mar 22, 2024
6f212cd
Added numbers aswell as rate to CLA tables
Mar 22, 2024
99c2c12
Adding Outcome 2 SGO stats neighbours chart, table and toggle. Also a…
yauemily Mar 22, 2024
cc0f7b1
Adding outcome 2 CAO stats neighbours charts and tables
yauemily Mar 22, 2024
286fbec
Updated CLA rate data to not include old Dorset, Poole, Bournemouth a…
Mar 22, 2024
5869ddc
Updated notes from Cumbria, cumberland and Westmoorland
Mar 22, 2024
c24774a
Added social care group definitions near filter
Mar 22, 2024
c568c6b
Added stats neighbours to outcome 1 - family stability
yauemily Mar 22, 2024
abfc727
Adding in the rest of outcome 1 stats neighbours "in development" hol…
yauemily Mar 22, 2024
e9d8699
Merge pull request #11 from dfe-analytical-services/feature/stats_nei…
nataliepaterson Mar 25, 2024
2e87cdc
Addec capital to column name
Mar 25, 2024
c690af8
Added real statistical neighbours data in
Mar 25, 2024
6c59ff3
deleted dummy stats neighbour file
Mar 25, 2024
fe00f00
Added CIN number into tables with symbols in
Mar 25, 2024
928fd76
Updated stats neighbour formatting
Mar 25, 2024
7ba3fb0
Updated re-referall tables to show supression symbols
Mar 26, 2024
785848d
Merge pull request #12 from dfe-analytical-services/bug_fix/tables_sh…
nataliepaterson Mar 26, 2024
bb62d48
Added primary/secondary split for absence
Mar 26, 2024
50f1e56
Merge pull request #14 from dfe-analytical-services/outcome1/schoolty…
nataliepaterson Mar 27, 2024
e36cbac
Updated tests
Mar 28, 2024
b7b0702
Updated tests
Mar 28, 2024
85c206d
updated tests
Mar 28, 2024
e20cadc
Updated tests
Mar 28, 2024
8ba9815
Updated absence definitions
Mar 28, 2024
0024931
Updated AY formatting in LA chart text
Mar 28, 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
142 changes: 67 additions & 75 deletions R/enabler2_page.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,29 @@ enabler2_tab <- function() {
p("North Northamptonshire and West Northamptonshire submitted a joint workforce return in 2021 and onwards, and their data is reported together")
),
conditionalPanel(
condition = "(input.geographic_breakdown_e2 == 'Cumbria')",
p("To view 2023 and onwards data select ", strong("Cumberland"), "or", strong("Westmorland and Furness"), ". Cumbria local authority was replaced with two new unitary authorities, Cumberland and Westmorland and Furness, in April 2023.")
condition = "(input.geographic_breakdown_e2 == 'Cumberland')",
p(" Only 2023 data is available for Cumberland, because Cumbria local authority was replaced with two new unitary authorities, Cumberland and Westmorland and Furness, in April 2023.")
),
conditionalPanel(
condition = "(input.geographic_breakdown_e2 == 'Northamptonshire')",
p("To view 2021 and onwards data select ", strong("North Northamptonshire / West Northamptonshire"), ". Northamptonshire local authority was replaced with two new unitary authorities, North Northamptonshire and West Northamptonshire, in April 2021.")
),
conditionalPanel(
condition = "(input.geographic_breakdown_e2 == 'Poole')",
p("To view 2019 and onwards data select ", strong("Bournemouth, Christchurch and Poole"), ". Bournemouth, Christchurch and Poole local authority was formed in April 2019.")
),
conditionalPanel(
condition = "(input.geographic_breakdown_e2 == 'Bournemouth')",
p("To view 2019 and onwards data select ", strong("Bournemouth, Christchurch and Poole"), ". Bournemouth, Christchurch and Poole local authority was formed in April 2019.")
condition = "(input.geographic_breakdown_e2 == 'Westmorland and Furness')",
p(" Only 2023 data is available for Westmorland and Furness, because Cumbria local authority was replaced with two new unitary authorities, Cumberland and Westmorland and Furness, in April 2023.")
),
# conditionalPanel(
# condition = "(input.geographic_breakdown_e2 == 'Cumbria')",
# p("To view 2023 and onwards data select ", strong("Cumberland"), "or", strong("Westmorland and Furness"), ". Cumbria local authority was replaced with two new unitary authorities, Cumberland and Westmorland and Furness, in April 2023.")
# ),
# conditionalPanel(
# condition = "(input.geographic_breakdown_e2 == 'Northamptonshire')",
# p("To view 2021 and onwards data select ", strong("North Northamptonshire / West Northamptonshire"), ". Northamptonshire local authority was replaced with two new unitary authorities, North Northamptonshire and West Northamptonshire, in April 2021.")
# ),
# conditionalPanel(
# condition = "(input.geographic_breakdown_e2 == 'Poole')",
# p("To view 2019 and onwards data select ", strong("Bournemouth, Christchurch and Poole"), ". Bournemouth, Christchurch and Poole local authority was formed in April 2019.")
# ),
# conditionalPanel(
# condition = "(input.geographic_breakdown_e2 == 'Bournemouth')",
# p("To view 2019 and onwards data select ", strong("Bournemouth, Christchurch and Poole"), ". Bournemouth, Christchurch and Poole local authority was formed in April 2019.")
# ),
# p(htmlOutput("enabler2_choice_text2")),
br(),
div(
Expand Down Expand Up @@ -171,7 +179,7 @@ enabler2_tab <- function() {
),
gov_row(
h2("Turnover rates by region"),
p("This is a static chart and will not react to geographical level and breakdown selected in the filters at the top."),
p("This is a static chart and will not react to geographical level and location selected in the filters at the top."),
br(),
plotlyOutput("plot_turnover_reg"),
br(),
Expand All @@ -186,19 +194,15 @@ enabler2_tab <- function() {
),
gov_row(
h2("Turnover rates by local authority"),
p("This chart is reactive to the Local Authority and Regional filters at the top and will not react to the National filter. The chart will display all Local Authorities overall or every Local Authority in the selected Region."),
p(sprintf("The graph represents data from %s.", max(workforce_data$time_period))),
br(),
plotlyOutput("plot_turnover_la"),
br(),
br(),
details(
inputId = "tbl_turnover_la",
label = "View chart as a table",
help_text = (
dataTableOutput("table_turnover_la")
)
p(sprintf("The charts below represent data from %s.", max(workforce_data$time_period))),
# Radio button for Stats neighbours
radioGroupButtons(
"turnover_stats_toggle",
label = NULL,
choices = c("All local authorities", "10 Statistical Neighbours"),
selected = "All local authorities"
),
uiOutput("SN_turnover"),
),
),
accordion_panel(
Expand Down Expand Up @@ -238,7 +242,7 @@ enabler2_tab <- function() {
),
gov_row(
h2("Agency rates by region"),
p("This is a static chart and will not react to geographical level and breakdown selected in the filters at the top."),
p("This is a static chart and will not react to geographical level and location selected in the filters at the top."),
br(),
plotlyOutput("plot_agency_reg"),
br(),
Expand All @@ -253,19 +257,14 @@ enabler2_tab <- function() {
),
gov_row(
h2("Agency rates by local authority"),
p("This chart is reactive to the Local Authority and Regional filters at the top and will not react to the National filter. The chart will display all Local Authorities overall or every Local Authority in the selected Region."),
p(sprintf("The graph represents data from %s.", max(workforce_data$time_period))),
br(),
plotlyOutput("plot_agency_rate_la"),
br(),
br(),
details(
inputId = "tbl_agency_rate_la",
label = "View chart as a table",
help_text = (
dataTableOutput("table_agency_rate_la")
)
p(sprintf("The charts below represent data from %s.", max(workforce_data$time_period))),
radioGroupButtons(
"agency_stats_toggle",
label = NULL,
choices = c("All local authorities", "10 Statistical Neighbours"),
selected = "All local authorities"
),
uiOutput("SN_agency"),
),
),
accordion_panel(
Expand Down Expand Up @@ -310,7 +309,7 @@ enabler2_tab <- function() {
),
gov_row(
h2("Vacancy rates by region"),
p("This is a static chart and will not react to geographical level and breakdown selected in the filters at the top."),
p("This is a static chart and will not react to geographical level and location selected in the filters at the top."),
br(),
plotlyOutput("plot_vacancy_reg"),
br(),
Expand All @@ -325,19 +324,15 @@ enabler2_tab <- function() {
),
gov_row(
h2("Vacancy rates by local authority"),
p("This chart is reactive to the Local Authority and Regional filters at the top and will not react to the National filter. The chart will display all Local Authorities overall or every Local Authority in the selected Region."),
p(sprintf("The graph represents data from %s.", max(workforce_data$time_period))),
br(),
plotlyOutput("plot_vacancy_rate_la"),
br(),
br(),
details(
inputId = "tbl_vacancy_rate_la",
label = "View chart as a table",
help_text = (
dataTableOutput("table_vacancy_rate_la")
)
# p("This chart is reactive to the Local Authority and Regional filters at the top and will not react to the National filter. The chart will display all Local Authorities overall or every Local Authority in the selected Region."),
p(sprintf("The charts below represent data from %s.", max(workforce_data$time_period))),
radioGroupButtons(
"vacancy_stats_toggle",
label = NULL,
choices = c("All local authorities", "10 Statistical Neighbours"),
selected = "All local authorities"
),
uiOutput("SN_vacancy"),
),
),
open = FALSE
Expand All @@ -358,9 +353,6 @@ enabler2_tab <- function() {
),
)
),
# fluidRow(
# column(
# width = 12,
accordion(
accordion_panel(
"Social worker caseloads",
Expand Down Expand Up @@ -398,7 +390,7 @@ enabler2_tab <- function() {
),
gov_row(
h2("Social worker caseloads by region"),
p("This is a static chart and will not react to geographical level and breakdown selected in the filters at the top."),
p("This is a static chart and will not react to geographical level and location selected in the filters at the top."),
br(),
plotlyOutput("plot_caseload_reg"),
br(),
Expand All @@ -413,19 +405,26 @@ enabler2_tab <- function() {
),
gov_row(
h2("Social worker caseloads by local authority"),
p("This chart is reactive to the Local Authority and Regional filters at the top and will not react to the National filter. The chart will display all Local Authorities overall or every Local Authority in the selected Region."),
p(sprintf("The graph represents data from %s.", max(workforce_data$time_period))),
br(),
plotlyOutput("plot_caseload_la"),
br(),
br(),
details(
inputId = "tbl_caseload_la",
label = "View chart as a table",
help_text = (
dataTableOutput("table_caseload_la")
)
)
# p("This chart is reactive to the Local Authority and Regional filters at the top and will not react to the National filter. The chart will display all Local Authorities overall or every Local Authority in the selected Region."),
p(sprintf("The charts below represent data from %s.", max(workforce_data$time_period))),
# br(),
# plotlyOutput("plot_caseload_la"),
# br(),
# br(),
# details(
# inputId = "tbl_caseload_la",
# label = "View chart as a table",
# help_text = (
# dataTableOutput("table_caseload_la")
# )
# )
radioGroupButtons(
"caseload_stats_toggle",
label = NULL,
choices = c("All local authorities", "10 Statistical Neighbours"),
selected = "All local authorities"
),
uiOutput("SN_caseload"),
)
),
open = FALSE
Expand All @@ -439,13 +438,6 @@ enabler2_tab <- function() {
br(),
),
fluidRow(
# column(
# width = 6,
# value_box(
# title = "Social Worker White Ethnic Group",
# value = htmlOutput("white_ethnicity_txt")
# )
# ),
column(
width = 6,
value_box(
Expand Down
Loading
Loading