[FEATURE REQUEST] Pull to refresh in the member list#4801
[FEATURE REQUEST] Pull to refresh in the member list#4801rohan-jadhav-dev wants to merge 1 commit intoowncloud:masterfrom
Conversation
|
hi @rohan-jadhav-dev !! you can apply here the 4800 learnings to improve and be alligned with the repo structure and merging requirements. In this PR, our static code analyzer (Detekt) is also red ❌ . By checking the log, this is the problem:
There is one function that overflows the maximum number of lines (100), so, that needs some refactor. Let us know if you need help with that or any other task. Detekt is a required check to pass for merging. Thanks for your engagement!! |
c3adf72 to
01230a9
Compare
01230a9 to
df25ba6
Compare
joragua
left a comment
There was a problem hiding this comment.
Well done @rohan-jadhav-dev! 👍🏻 Thanks for your contribution! Some comments and suggestions about your PR
-
Missing changelog file. You can take a look at TEMPLATE.md to follow the guidelines and keep the changelog consistent. I'd use the
chore:prefix for the commit. -
Be careful with Detekt workflow. As you can see at the end of the PR, Detekt workflow is failing ❌ and it's required for merging. You can check the logs, but there is an unused import in
SpaceMembersFragment.kt -
Since this is not a fix (the issue is marked with [FEATURE REQUEST] label), I'd use
feat:prefix for the commit instead offix:
There was a problem hiding this comment.
Missing blank line at the end of the file (Detekt is also reporting this)
| binding.swipeRefreshMembers.setOnRefreshListener { | ||
| spaceMembersViewModel.getSpaceMembers() | ||
| } |
There was a problem hiding this comment.
Did you take into account that permissions also need to be refreshed? That means the user role can change while the refreshing is happening. For example, if a user changes from Manager to Viewer, actions icons such as trash, edit or add should no longer be displayed. 🤔
There was a problem hiding this comment.
Check the indentation of the layouts: NestedScrollView should be the parent of LinearLayout. The XML structure should look like this:
<SwipeRefreshLayout>
<NestedScrollView>
<LinearLayout>
...
</LinearLayout>
</NestedScrollView>
</SwipeRefreshLayout>
Summary
Fixes #4773
Changes
Testing
Screenshots
refresh.action.Video.mp4