ECP-206 Delete the 3 info boxes for each sub-category on the Browse page

This commit is contained in:
rebuilt 2025-10-30 13:32:39 -07:00
parent aa39303dfc
commit b6675c2516
15 changed files with 43 additions and 63 deletions

View file

@ -69,6 +69,6 @@ module AnalyzeHelper
def base_url
analyze_subcategory_link(district: @district, school: @school, academic_year: @academic_year, category: @presenter.category,
subcategory: @presenter.subcategory)
subcategory: @presenter.subcategory)
end
end

View file

@ -2,7 +2,7 @@ class Benefit < ApplicationRecord
scope :by_designation, -> { all.map { |benefits| [benefits.designation, benefits] }.to_h }
def self.to_designation(benefits)
return "Unknown" if benefits.blank? or benefits.nil?
return "Unknown" if benefits.blank? || benefits.nil?
case benefits
in /^1$/i

View file

@ -2,7 +2,7 @@ class Education < ApplicationRecord
scope :by_designation, -> { all.map { |education| [education.designation, education] }.to_h }
def self.to_designation(education)
return "Unknown" if education.blank? or education.nil?
return "Unknown" if education.blank? || education.nil?
case education
in /^1$/i

View file

@ -2,7 +2,7 @@ class Employment < ApplicationRecord
scope :by_designation, -> { all.map { |employment| [employment.designation, employment] }.to_h }
def self.to_designation(employment)
return "Unknown" if employment.blank? or employment.nil?
return "Unknown" if employment.blank? || employment.nil?
case employment
in /^1$|^1100$/i

View file

@ -11,7 +11,7 @@ module Analyze
end
def label
["#{ell.designation}"]
[ell.designation.to_s]
end
def basis

View file

@ -11,7 +11,7 @@ module Analyze
end
def label
["#{gender.designation}"]
[gender.designation.to_s]
end
def basis

View file

@ -11,7 +11,7 @@ module Analyze
end
def label
["#{grade}"]
[grade.to_s]
end
def basis

View file

@ -11,7 +11,7 @@ module Analyze
end
def label
["#{sped.designation}"]
[sped.designation.to_s]
end
def basis

View file

@ -49,7 +49,7 @@ class SurveyResponsesDataLoader
workers = pool_size.times.map do
Thread.new do
while slice = jobs.pop(true)
while (slice = jobs.pop(true))
slice.each do |line|
survey_item_responses = []

View file

@ -13,32 +13,6 @@
<div class="d-flex flex-column mx-7">
<p class="body-large "><%= subcategory.description %></p>
<div class="d-flex justify-content-start">
<div
class="body-large text-center response-rate"
data-bs-toggle="popover"
data-bs-trigger="hover focus"
data-bs-content="The number of publicly available school data sources, often collected from the MA Department of Elementary and Secondary Education."
data-bs-placement="bottom"
>
<p class="response-rate-percentage"><%= subcategory.admin_collection_rate.first %> / <%= subcategory.admin_collection_rate.last %></p>
<p>school data sources</p>
</div>
<div
class="body-large mx-3 text-center response-rate"
data-bs-toggle="popover"
data-bs-trigger="hover focus"
data-bs-content="The student survey response rate for this sub-category. This number differs from the overall response rate because each individual student receives 44 of 67 total questions, in order to avoid survey fatigue. This number is also adjusted to reflect any instances where a student has decided to skip a survey question."
data-bs-placement="bottom"
>
<p class="response-rate-percentage"><%= subcategory.student_response_rate %></p>
<p>of students responded</p>
</div>
<div class="body-large text-center response-rate" >
<p class="response-rate-percentage"><%= subcategory.teacher_response_rate %></p>
<p>of teachers responded</p>
</div>
</div>
</div>
</div>
</div>