Optimize fragments, add filters, fix search and clean up #439

Merged
6543 merged 10 commits from fragment-optimization-search-fixes-across-app into master 2020-04-23 20:40:37 +00:00
Owner

A rough PR which fixed few things along the way and added filter for pr and issues(need to redo).

PR filter should work flawlessly and need you guys opinoin on it. If it's fine I can proceed with further fixes and enhacements.

Waiting for your feedback on this.

Closes #414 #385

Ref issue #278

Edit: I will update this post to add the related issues to be closed/addressed OR please add if you see one.

A rough PR which fixed few things along the way and added filter for pr and issues(need to redo). PR filter should work flawlessly and need you guys opinoin on it. If it's fine I can proceed with further fixes and enhacements. Waiting for your feedback on this. Closes #414 #385 Ref issue #278 **Edit: I will update this post to add the related issues to be closed/addressed OR please add if you see one.**
mmarif added the
Enhancement
Needs-feedback
labels 2020-04-22 16:37:12 +00:00
mmarif changed title from Fix searchs, add filters and clean up to Fix search, add filters and clean up 2020-04-22 16:37:24 +00:00
Member

There are multiple progress bars when issues are being loaded.

There are multiple progress bars when issues are being loaded.
Member

This is not a big problem, but in issues the list is empty while the progress bar spins. The opposite is true when pull requests are loading.

This is not a big problem, but in issues the list is empty while the progress bar spins. The opposite is true when pull requests are loading.
Member

It would be nice too, if we would have some kind of indication, whether we are currently looking at closed or open issues/pull requests. My idea would be to switch to a red filter icon (tint) when viewing closed items.

The color values i used in the screenshot are:

R: 175

G: 66

B: 66

Edit: Made color values a little bit brighter than in the screenshot.

It would be nice too, if we would have some kind of indication, whether we are currently looking at closed or open issues/pull requests. My idea would be to switch to a red filter icon (tint) when viewing closed items. The color values i used in the screenshot are: R: 175 G: 66 B: 66 Edit: Made color values a little bit brighter than in the screenshot.
Author
Owner

There are multiple progress bars when issues are being loaded.

I have only tested on issues using fastadapter. But it is not the focus right now as if PR works as I woulk like it to, I refactor issues to it too.

This is not a big problem, but in issues the list is empty while the progress bar spins. The opposite is true when pull requests are loading.

This need to be addressed, I will try to reproduce on my side.

It would be nice too, if we would have some kind of indication.

Yes, that's what I asked yesterday in the chat but good to know that you have posted a idea. I will try with that, just need to take care of the color in dark theme too.

> There are multiple progress bars when issues are being loaded. I have only tested on issues using fastadapter. But it is not the focus right now as if PR works as I woulk like it to, I refactor issues to it too. > This is not a big problem, but in issues the list is empty while the progress bar spins. The opposite is true when pull requests are loading. This need to be addressed, I will try to reproduce on my side. > It would be nice too, if we would have some kind of indication. Yes, that's what I asked yesterday in the chat but good to know that you have posted a idea. I will try with that, just need to take care of the color in dark theme too.
mmarif added the
Refactor
WIP
labels 2020-04-23 05:42:36 +00:00
mmarif changed title from Fix search, add filters and clean up to Optimize fragments, add filters, fix search and clean up 2020-04-23 05:45:00 +00:00
Author
Owner

@opyale this commit has addressed your points. 3074c477b0

Aside that, I have worked on PR screen at the moment and focus is on that. Once all done on PR screen and we are going to accept these changes. I will refactor issues too in this same PR.

I will remove fastadapter from issues and later from commits, which means no more use of the library. Less space for the app.

Just need thorough testing on PR screen to address all the issues and make sure it works, which can then lead us to refactor issues.

@opyale this commit has addressed your points. https://gitea.com/gitnex/GitNex/commit/3074c477b097a534c0340326a0b30e89a04db72a Aside that, I have worked on PR screen at the moment and focus is on that. Once all done on PR screen and we are going to accept these changes. I will refactor issues too in this same PR. I will remove fastadapter from issues and later from commits, which means no more use of the library. Less space for the app. Just need thorough testing on PR screen to address all the issues and make sure it works, which can then lead us to refactor issues.
Member

@mmarif This looks nice so far. The only bug i encountered was that if you swipe to another fragment after you've selected 'closed' on issues/prs and swipe back you will get a green filter icon though the content is still made up of closed views.

@mmarif This looks nice so far. The only bug i encountered was that if you swipe to another fragment after you've selected 'closed' on issues/prs and swipe back you will get a green filter icon though the content is still made up of closed views.
Member

@mmarif And there is another bug: The color of the filter icon doesnt change when calling for some closed issues.

@mmarif And there is another bug: The color of the filter icon doesnt change when calling for some closed issues.
Author
Owner

The only bug i encountered was that if you swipe to another fragment after you’ve selected ‘closed’ on issues/prs and swipe back you will get a green filter icon though the content is still made up of closed views.

Nice catch. Swipe even crash the app for me. Will fix that.

And there is another bug: The color of the filter icon doesnt change when calling for some closed issues.

Issues will be done later.

> The only bug i encountered was that if you swipe to another fragment after you’ve selected ‘closed’ on issues/prs and swipe back you will get a green filter icon though the content is still made up of closed views. Nice catch. Swipe even crash the app for me. Will fix that. > And there is another bug: The color of the filter icon doesnt change when calling for some closed issues. Issues will be done later.
Author
Owner

Fixed the swipe issue. c3e1cf48b0

Fixed the swipe issue. https://gitea.com/gitnex/GitNex/commit/c3e1cf48b0a6d6e43de7b67b6135ab0c47569151
mmarif added the
Feature
UI/UX
labels 2020-04-23 08:23:34 +00:00
Member

@mmarif Works fine now. Are you planning on fixing "issues" in this pr?

@mmarif Works fine now. Are you planning on fixing "issues" in this pr?
Author
Owner

Are you planning on fixing “issues” in this pr?

Yes

> Are you planning on fixing “issues” in this pr? Yes
mmarif added this to the 3.0.0 milestone 2020-04-23 09:05:10 +00:00
mmarif self-assigned this 2020-04-23 09:05:44 +00:00
Author
Owner

Refactored issues 141908ab49

Refactored issues https://gitea.com/gitnex/GitNex/commit/141908ab491542f205c943c5cc76ff5d86ef2c1a
Member

@mmarif Is this your last commit, because I would start reviewing then.

@mmarif Is this your last commit, because I would start reviewing then.
Author
Owner

Is this your last commit, because I would start reviewing then.

It litterly is as I can't find more things to add or fix.

> Is this your last commit, because I would start reviewing then. It litterly is as I can't find more things to add or fix.
mmarif added
LGTM-need
and removed
Needs-feedback
WIP
labels 2020-04-23 13:42:52 +00:00
opyale approved these changes 2020-04-23 18:50:31 +00:00
Dismissed
opyale left a comment
Member

Works fine. I didn't encounter any problems! 👍

Works fine. I didn't encounter any problems! :+1:
Author
Owner

@6543 do you want to try before I merge?

@6543 do you want to try before I merge?
Member

sure - give me 20min I'll merge If it works on my side

sure - give me 20min I'll merge If it works on my side
6543 merged commit 0ee5b43996 into master 2020-04-23 20:40:30 +00:00
6543 approved these changes 2020-04-23 20:40:38 +00:00
Dismissed
6543 deleted branch fragment-optimization-search-fixes-acros 2020-04-23 20:40:48 +00:00
6543 added
LGTM-done
and removed
LGTM-need
labels 2020-04-23 20:43:20 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No Assignees
3 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitnex/GitNex#439
No description provided.