saber icon indicating copy to clipboard operation
saber copied to clipboard

feat: Sort notes and folders

Open Edgiest05 opened this issue 1 year ago • 5 comments

Introduced a button SortButton located at the top-right of the UI in recent and browse pages (near the syncing one): button

When pressed it shows a dropdown for a predetermined selection, provided in the static class SortNotes. Such selection is preserved as a preference and is kept on app restart. dropdown

Sdk version change is not related to my own implementation, but instead is a workaround to compilation errors that made it impossible to test on android emulator.

Edgiest05 avatar Dec 01 '24 14:12 Edgiest05

Codecov Report

Attention: Patch coverage is 15.00000% with 102 lines in your changes missing coverage. Please review.

Project coverage is 45.67%. Comparing base (c873848) to head (8c45153).

Files with missing lines Patch % Lines
lib/components/home/sort_button.dart 13.82% 81 Missing :warning:
lib/pages/home/browse.dart 0.00% 18 Missing :warning:
lib/pages/home/recent_notes.dart 62.50% 3 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1408      +/-   ##
==========================================
- Coverage   46.09%   45.67%   -0.42%     
==========================================
  Files         117      118       +1     
  Lines        8683     8794     +111     
==========================================
+ Hits         4002     4017      +15     
- Misses       4681     4777      +96     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Dec 01 '24 14:12 codecov[bot]

Thank you for Your code, I merged it to my personal Saber.

QubaB avatar Feb 16 '25 19:02 QubaB

I like to sort folders by Name and files by date. Can this be implemented?

QubaB avatar Jul 16 '25 13:07 QubaB

@QubaB it is possible to implement and it is quite easy to do so given that I already handle files and directories separately when sorting, unfortunately I personally don't need this level of fine tuning and I probably won't be working on that

Edgiest05 avatar Jul 29 '25 13:07 Edgiest05

OK, I will customize it to my needs. Thank you for the very nice improvement.

QubaB avatar Jul 29 '25 16:07 QubaB