camino-school / lanttern

Lanttern project repo
MIT License
1 stars 1 forks source link

reporting -- filtro de "select a class" não segue o filtro de strands e não se adapta conforme mudamos a expedição (i.e., precisamos sempre mudar o filtro manualmente) #94

Open gabrielabonicio opened 7 months ago

endoooo commented 7 months ago

currently, all filters (year, subject, classes, and cycles) are global — e.g. if you select a grade 2A class in the context of a grade 2 strand, the same filter will apply even if you go to a grade 10 strand.

what we should have is a contextualized (more intelligent) filter — it makes sense to list grade 2A students in the context of the grade 2 strand, and the grade 10 students in the context of a grade 10 strand.

in order to do this, I need to investigate where a global filter can be more useful than a contextualized filter, before implementing this feature.


quick note about the current implementation for documentation: the global filters exist because I was focused in the elementary teacher persona — they'll mostly want to look at the same students, no matter the context

andrematui commented 6 months ago

I believe the filters should be global and remain stored in the Strands tab ( lanttern.org/strands/ ) since specialist teachers will often want the same filters applied all the time (e.g. Grade 6 / Grade 7 / Grade 8, Science).

In the strand page, the filter should not be global and could be pre applied (and probably not stored) following the grade level tag. I.e. when you open a strand page that has the tag Grade 6, the filter is applied to show only and all Grade 6 classes. Error handling: if the strand doesn't have a grade tag, don't show any classes, forcing the user to apply the filter manually. Related Entry: #74

endoooo commented 6 months ago

I created a new issue (#127) to implement the isolation of the class filters between strands. it's not as smart as the one you suggested @andrematui (there's no automatic initial selection) but I think it's better than the previous implementation — let's see if it improves the UX, and we can continue this discussion latter on