Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Profile Heatmap Additions #2353
Who is this PR for?
What does this PR do?
Makes the incident history and profile heatmap more prominent in the student profile page and makes heatmap reflect the clean slate filter. Also improves the heatmap tooltip and restores a missing spec for the heatmap component.
Screenshot (if adding a client-side feature)
Which features or pages does this PR touch?
Does this PR use tests to help verify we can deploy these changes quickly and confidently?
kevinrobinson left a comment •
@edavidsonsawyer awesome, great catch!
Also, the checkboxes on the pull request description are blank, is there more to do here or is this just about ready to
EDIt: oh sorry if I jumped the gun, just got excited :)
@edavidsonsawyer Ah yeah I just realized the time range is probably counter-intuitive for the chart here, and the copy might be confusing. It says "this page only includes one year of data by default" since that was made right at the start of the school year. So regardless of the time of year, it includes everything for the current school year, and for the previous school year. This makes more sense for the feed of text, but less sense for something aggregating the whole time period like the chart.
One idea is, maybe we add another filter on top of the "clean slate" filtering, so that the chart only gets events in the current school year, and then make that explicit in the title of the chart.
What do you think? We should probably also clarify the "clean slate" copy too.
@kevinrobinson I'm not sure. When I look at the screen I think I'd expect the chart reflects the incidents I see in the feed. I do see why it might not be meaningful to look for patterns across a year + school year to date. Do you think it might make sense to change the "clean slate" filter to just begin at the school year beginning?
@edavidsonsawyer I think there's three good reasons to update the chart to show the current school year. First, I think the strong default assumption for everything is "this school year" unless there are places where we really explicitly call that out (eg, past 45 days). I don't think anyone who's trying to dig into discipline incidents is going to read the "clean slate" copy and notice what it says :) Second, students' schedules often change significantly from year to year; for students transitioning schools (say 8th grade to HS) it will be completely different. This means showing two years will hide any patterns that there might be related to the schedule or school day in the current year. Third, patterns from the current school year are the only thing that's potentially actionable.
So my vote would be to make the chart reflect the school year and label that explicitly like 2018-2019 school year.
Separately, it also seems like a good idea to clarify the clean slate message so it's clearer that it's the current and previous school year.