Harry-Chen / Learn-Helper

清华大学网络学堂助手
https://chrome.google.com/webstore/detail/learn-helper/mdehapphdlihjjgkhmoiknmnhcjpjall
MIT License
208 stars 37 forks source link

[feature request] 优化作业页面排序 #148

Closed HustreLiny closed 11 months ago

HustreLiny commented 12 months ago

希望能把未完成作业排在“所有作业”的最前面 按DDL剩余时间排序导致前面都是已完成的作业,十分迷惑。

Harry-Chen commented 12 months ago

根据排序逻辑,的确是这样的:

https://github.com/Harry-Chen/Learn-Helper/blob/fd478be689c4352deb492057e1e9f8e92bc29a2f/src/redux/actions.ts#L334-L348

@AsakuraMizu 看一下为何不符合预期?

AsakuraMizu commented 11 months ago

根据排序逻辑,的确是这样的:

https://github.com/Harry-Chen/Learn-Helper/blob/fd478be689c4352deb492057e1e9f8e92bc29a2f/src/redux/actions.ts#L334-L348

@AsakuraMizu 看一下为何不符合预期?

他的意思是加一个按作业的 submitted 排序。祖传下来的排序逻辑并没有考虑这个