-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sort groups alphabetically instead of by amount of contacts #1461
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1461 +/- ##
============================================
+ Coverage 62.31% 67.16% +4.84%
- Complexity 0 15 +15
============================================
Files 4 5 +1
Lines 69 67 -2
============================================
+ Hits 43 45 +2
+ Misses 26 22 -4
Continue to review full report at Codecov.
|
Great! :) Thanks again, super great having awesome contributors like you! 🤗 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments :)
yay, lets hope the PR does what it should do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting a different console error now, navigation not showing up either ;)
|
i tried to detect the null with a nor but i should have used a nand |
mmm this needs debugging but idk how to compile this. The weird part is that the only thing that should be pulled up first is |
Hmm, actually "recently contacted" doesn't show in the list at all. Did I miss anything except checking out the branch and |
No idea honestly, been trying to figure it out myself |
Any idea @nextcloud/contacts? |
For reference: If I delete that group, the next one from the end of the alphabet is shown there. "Recently contacted" is not there, and I’m guessing the bug has to do with that. |
if there is no group with the name Recently Contacted then findIndex should be returning -1, slice shouldnt do anything with -1 tho. |
@ImUrX very nice, works well now! :) Could you squash your commits into one, and also sign the commit? (You can sign the commit retroactively via |
And @call-me-matt could you also look over the code? :) @ImUrX we have a chat channel for Contacts app contributors, would you like to be invited there? :) |
yeah sure |
Signed-off-by: ImUrX <urielfontan2002@gmail.com> Fixes #1598 and #1599 Signed-off-by: ImUrX <urielfontan2002@gmail.com> object is not a string Signed-off-by: ImUrX <urielfontan2002@gmail.com> use an and not an or Signed-off-by: ImUrX <urielfontan2002@gmail.com> check if findIndex gives -1 Signed-off-by: ImUrX <urielfontan2002@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works very nicely design-wise, but needs a code review @nextcloud/contacts :)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Hey! |
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Just redid the branch of #1451 because accidentaly deleted package-lock.json
This PR should fix #522
I still would like to test this on windows, I dont know how to do so, I just been reading the code a lot to see if I'm doing something wrong :p