rename admin data to school data

This commit is contained in:
rebuilt 2023-03-21 15:43:25 -07:00
parent 25f839e728
commit 1595c3a58c
8 changed files with 194 additions and 194 deletions

View file

@ -7,7 +7,7 @@ class AdminDataPresenter < DataItemPresenter
end
def title
'School admin data'
"School data"
end
def id
@ -15,13 +15,13 @@ class AdminDataPresenter < DataItemPresenter
end
def reason_for_insufficiency
'limited availability'
"limited availability"
end
def descriptions_and_availability
@admin_data_items.map do |admin_data_item|
DataAvailability.new(admin_data_item.admin_data_item_id, admin_data_item.description,
admin_data_item.admin_data_values.where(school:, academic_year:).count > 0)
admin_data_item.admin_data_values.where(school:, academic_year:).count > 0)
end
end
end

View file

@ -5,11 +5,11 @@ module Analyze
module Column
class AllAdmin < GroupedBarColumnPresenter
def label
'All Admin'
"School data"
end
def basis
'admin data'
"school data"
end
def show_irrelevancy_message?
@ -23,7 +23,7 @@ module Analyze
end
def insufficiency_message
['data not', 'available']
["data not", "available"]
end
def score(year_index)

View file

@ -59,7 +59,7 @@ class VarianceChartRowPresenter
[].tap do |sources|
sources << 'teacher survey results' if @measure.includes_teacher_survey_items? && !@meets_teacher_threshold
sources << 'student survey results' if @measure.includes_student_survey_items? && !@meets_student_threshold
sources << 'administrative data' if @measure.includes_admin_data_items?
sources << 'school data' if @measure.includes_admin_data_items?
end
end

View file

@ -8,7 +8,7 @@
<div class="modal-body">
<p>Were unable to display results for the selected school and school year due to: </p>
<ul>
<li>Limited availability of school admin data</li>
<li>Limited availability of school data</li>
<li> Teacher and student survey response rates below 25% </li>
</ul>
<p> You may continue to explore the structure of the HALS School Quality Measures Framework, but we recommend selecting a different school and/or a different school year for the best experience.</p>

View file

@ -4,16 +4,16 @@
<% if displayed_presenters.none? %>
<p class="caption mb-5">Note: No measures can be displayed due to limited availability of school admin data and/or low survey response rates.</p>
<% elsif not_displayed_presenters.present? %>
<p class="caption mb-5">Note: The following measures are not displayed due to limited availability of school admin data and/or low survey response rates: <%= not_displayed_presenters.map(&:measure_name).join('; ') %>.</p>
<p class="caption mb-5">Note: The following measures are not displayed due to limited availability of school data and/or low survey response rates: <%= not_displayed_presenters.map(&:measure_name).join('; ') %>.</p>
<% end %>
<svg width="100%" height=<%= graph_height(displayed_presenters.size) %> xmlns="http://www.w3.org/2000/svg">
<filter id="inset-shadow" x="-50%" y="-50%" width="200%" height="200%">
<feComponentTransfer in=SourceAlpha>
<feFuncA type="table" tableValues="1 0"/>
<feFuncA type="table" tableValues="1 0" />
</feComponentTransfer>
<feGaussianBlur stdDeviation="4"/>
<feGaussianBlur stdDeviation="4" />
<feOffset dx="0" dy="0" result="offsetblur"/>
<feFlood flood-color="rgb(62, 58, 56, 0.25)" result="color"/>
<feComposite in2="offsetblur" operator="in"/>