Additionally, it refactors OrderableActivityTable to move the decision on what's the initial order direction for every column to every individual activity table.
Any table where the user's last activity is null, should allow to test this behavior.
It can also be faked by making sure some null students names are returned, by applying this diff, replacing <some-value> with the display name of some student in your local dev database:
This PR uses the logic introduced in https://github.com/hypothesis/frontend-shared/pull/1587 to make columns with value null be initially ordered last, and move first when the order direction changes.
Additionally, it refactors
OrderableActivityTable
to move the decision on what's the initial order direction for every column to every individual activity table.https://github.com/hypothesis/lms/assets/2719332/9a85da0f-10f3-4b7b-93c1-3fe619f3de51
Testing steps
Any table where the user's last activity is null, should allow to test this behavior.
It can also be faked by making sure some null students names are returned, by applying this diff, replacing
<some-value>
with the display name of some student in your local dev database: